Function at 0x401050
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
mov eax, dword [0x41c004]
xor eax, esp
mov dword [esp + 0x248], eax
movzx eax, byte [0x41a8a4]
movq xmm0, qword [str.BBCF.exe]
mov byte [esp + 0x244], al
movzx eax, word [0x41a8a8]
mov word [esp + 0x238], ax
movzx eax, byte [0x41a8aa]
push ebx
mov byte [esp + 0x23e], al
movzx eax, word [0x41a8ac]
push esi
mov word [esp + 0x23c], ax
movzx eax, byte [0x41a8ae]
push edi
push str.___BBCF_DCode_reset_tool____n_n
movq qword [esp + 0x24c], xmm0
mov byte [esp + 0x246], al
call fcn.00401010
add esp, 4
push str.__Press_Enter_to_begin._n
call fcn.00401010
add esp, 4
call fcn.004044b1
push str.__Step_1:_Launch_BBCF_from_Steam.__If_BBCF_is_already_running_then_restart_the_game.__n
call fcn.00401010
add esp, 4
push str.__Press_Enter_to_continue._n
call fcn.00401010
add esp, 4
call fcn.004044b1
lea eax, [esp + 0x248]
push eax
push str.__Looking_for_process__s_..._n
call fcn.00401010
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
add esp, 8
xor bl, bl
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x401195
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x401195
nop word [eax + eax]
lea eax, [esp + 0x248]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0040633d
add esp, 8
movzx ebx, bl
test eax, eax
mov eax, 1
cmove ebx, eax
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
je 0x401182
test bl, bl
je 0x401150
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
test bl, bl
je 0x401121
lea eax, [esp + 0x248]
push eax
push str.__Found_process__s_n
call fcn.00401010
add esp, 8
or ebx, 0xffffffff
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4011c2
or ebx, eax
jmp 0x401212
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x4011e0
or ebx, 0xffffffff
jmp 0x401212
lea eax, [esp + 0x248]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0040633d
add esp, 8
test eax, eax
je 0x401207
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x4011e0
jmp 0x40120b
mov ebx, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push str._tProcessID:__d_n
call fcn.00401010
add esp, 8
xor edi, edi
push ebx
push 0x18
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x401286
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x224
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
jne 0x401250
xor edi, edi
jmp 0x401286
lea eax, [esp + 0x248]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0040633d
add esp, 8
test eax, eax
je 0x40127b
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x401250
jmp 0x40127f
mov edi, dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push str._tBase:_0x_p_n
call fcn.00401010
lea esi, [edi + 0xa1de3]
push esi
push 0xa1de3
push edi
push str.__Mocking_at:__0x_p__0x_x___0x_p_..._n
call fcn.00401010
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
add esp, 0x18
push ebx
push 0
push 0x1fffff
call edi
cmp eax, 0xffffffff
je 0x40137f
lea ecx, [esp + 0x23c]
mov dword [esp + 0x23c], 0
push ecx
push 2
lea ecx, [esp + 0x248]
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40137f
cmp dword [esp + 0x23c], 2
jne 0x40137f
push str.__Success._n_n
call fcn.00401010
add esp, 4
push str.__Step_2:_You_can_now_log_into_Network_Mode_and_reset_your_DCode._n
call fcn.00401010
add esp, 4
push str.__Press_Enter_after_confirming_the_DCode_reset_ingame._n
call fcn.00401010
add esp, 4
call fcn.004044b1
push str.__Reverting_mocking..._n
call fcn.00401010
add esp, 4
push ebx
push 0
push 0x1fffff
call edi
cmp eax, 0xffffffff
je 0x40137f
lea ecx, [esp + 0x23c]
mov dword [esp + 0x23c], 0
push ecx
push 2
lea ecx, [esp + 0x24c]
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40137f
cmp dword [esp + 0x23c], 2
mov eax, str.__Done._n_n
je 0x401384
mov eax, str.FAILED._n_n
push eax
call fcn.00401010
add esp, 4
push str.__Press_Enter_to_exit._n
call fcn.00401010
add esp, 4
call fcn.004044b1
mov ecx, dword [esp + 0x254]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004013b6
mov esp, ebp
pop ebp
ret