Results 1 to 1 of 1
  1. #1
    loco123loco's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Posts
    0
    Reputation
    10
    Thanks
    1

    Question Finding function to toggle full console?

    Hey everyone,

    I'm sifting through the blackops release and I've reached a hurdle. In COD4:MW there was a function used by the game to toggle the full console (with the output screen): Con_ToggleConsoleOutput().

    This was triggered using shift + ~.

    It seems that almost all functions in black ops were obfuscated. Stuff like BG_WeaponFireRecoil(...) in COD4, is now sub_d870a. All functions are sub_pointer. So I've been finding most functions by finding a constant or set of constants I know are found in only that function, for example "CG_EntityEvent:%s\n" would bring me here:
    Code:
    00297a5d         mov        dword [ss:esp+0x4], 0x63c4f4                        ; "CG_EntityEvent:%s\\n", argument #2 for method sub_40c00b
    00297a65         mov        dword [ss:esp], 0x15                                ; argument #1 for method sub_40c00b
    00297a6c         call       sub_40c00b
    With sub_40c00b being a function I could be looking for. Does anybody know how I can find the offset of the function I can use to toggle the full console output?

    In COD4, Con_ToggleConsoleOutput() doesn't have any strings within it:
    Code:
                 __Z23Con_ToggleConsoleOutputv:        // Con_ToggleConsoleOutput()
    000a4fc0         push       ebp                                                 ; XREF=__Z11CL_KeyEventiiij+712
    000a4fc1         mov        ebp, esp
    000a4fc3         cmp        byte [ds:0xe4], 0x0                                 ; 0x4577e4
    000a4fca         sete       byte [ds:0xe4]                                      ; 0x4577e4
    000a4fd1         leave      
    000a4fd2         ret        
    000a4fd3         nop        word [ds:eax+eax]
    000a4fd9         nop        dword [ds:eax]
    And the cross-referenced CL_KeyEvent function here is absolutely massive, making it difficult to pin down the console toggle call in the obfuscated version of it.

    Thanks for any tips you guys may have!

    - - - Updated - - -

    Sure enough, shortly after I post this I find the function....

    Sorry mods, you can close this thread.

  2. The Following User Says Thank You to loco123loco For This Useful Post:

    hamidDZ (09-09-2019)

Similar Threads

  1. How to find function through call
    By NB81 in forum Assembly
    Replies: 3
    Last Post: 11-17-2013, 03:00 PM
  2. [Help] how to find functions with cheat engine debugger
    By iwiniwin in forum General Game Hacking
    Replies: 0
    Last Post: 03-02-2013, 03:32 PM
  3. [Help] I will find functions with olly but still dont know what else to do a hack HELP PLZ!!
    By lol382 in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 3
    Last Post: 05-16-2012, 09:44 PM
  4. [Preview] My pattern finding function
    By yodaliketaco in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 17
    Last Post: 08-04-2011, 05:47 AM
  5. [Tutorial]How to find ur ip using the console in alteriwnet
    By xbeatsszzx in forum Call of Duty Modern Warfare 2 Private Servers
    Replies: 26
    Last Post: 08-13-2010, 06:27 AM