Giter Site home page Giter Site logo

Comments (2)

wargio avatar wargio commented on May 19, 2024

just to know, have you tried to do Cs @ 0x401d30

from rz-ghidra.

XVilka avatar XVilka commented on May 19, 2024

Retested with the latest Rizin & Rz-ghidra (rizinorg/rizin@ead6016 and 0c9ab92 respectively) and it's definitely fixed:

void dbg.remove_fighter(void)
{
    undefined4 uVar1;
    int choice;
    
    // void remove_fighter();
    dbg.print_opt((int64_t)"Who do you want to remove from the competition?", 0x50);
    dbg.print_fighters();
    dbg.print_line(0x2d, 0x50);
    sym.imp.printf(data.00401c35);
    _obj.rbuf = 0;
    sym.imp.read(0, obj.rbuf, 4);
    uVar1 = sym.imp.atoi(obj.rbuf);
    // switch table (7 cases) at 0x401d60
    switch(uVar1) {
    case 1:
        if (_obj.MMA_init != 0) {
            _obj.MMA_init = 0;
            sym.imp.free(_obj.MMA_name);
            _obj.num_fighters = _obj.num_fighters + -1;
        }
        break;
    case 2:
        if (_obj.chuck_init != 0) {
            _obj.chuck_init = 0;
            sym.imp.free(_obj.chuck_name);
            _obj.num_fighters = _obj.num_fighters + -1;
        }
        break;
    case 3:
        if (_obj.boxing_init != 0) {
            _obj.boxing_init = 0;
            sym.imp.free(_obj.boxing_name);
            _obj.num_fighters = _obj.num_fighters + -1;
        }
        break;
    case 4:
        if (_obj.smash_init != 0) {
            _obj.smash_init = 0;
            sym.imp.free(_obj.smash_name);
            _obj.num_fighters = _obj.num_fighters + -1;
        }
        break;
    case 5:
        if (_obj.mortal_init != 0) {
            _obj.mortal_init = 0;
            sym.imp.free(_obj.mortal_name);
            _obj.num_fighters = _obj.num_fighters + -1;
        }
        break;
    case 6:
        if (_obj.WWE_init != 0) {
            _obj.WWE_init = 0;
            sym.imp.free(_obj.WWE_name);
            _obj.num_fighters = _obj.num_fighters + -1;
        }
    }
    return;
}

from rz-ghidra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.