Function at 0x10009640
Capabilities:
Enumerate process modules
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1008fde8
push 0x1005aa50
mov eax, dword fs:[0]
push eax
sub esp, 0x650
mov eax, dword [0x1009cbc0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x654], edx
mov ebx, ecx
mov dword [ebp - 0x650], ebx
mov dword [ebp - 0x65c], 0xffffffff
mov dword [ebp - 0x64c], 0
push 0x424
push 0
lea eax, [ebp - 0x648]
push eax
call fcn.10055aa0
add esp, 0xc
mov dword [ebp - 0x658], 0
mov dword [ebp - 4], 0
mov dword [ebp - 4], 1
call fcn.1003ccd0
test eax, eax
je 0x100096fb
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, ebx
call fcn.10009b10
mov esi, eax
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0x14
mov eax, esi
jmp 0x10009aeb
push ebx
push 0x18
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x65c], edi
cmp edi, 0xffffffff
jne 0x10009734
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
lea eax, [esi + 0x1e]
jmp 0x10009aeb
mov dword [ebp - 0x64c], 0x428
lea eax, [ebp - 0x64c]
push eax
push edi
mov esi, dword [sym.imp.KERNEL32.dll_Module32FirstW]
call esi
test eax, eax
jne 0x10009760
lea eax, [ebp - 0x64c]
push eax
push edi
call esi
test eax, eax
je 0x10009711
push 0x1964a
call fcn.1005218a
add esp, 4
mov esi, eax
mov dword [ebp - 0x658], esi
test esi, esi
jne 0x10009824
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x100097aa
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x10009807
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push 5
test eax, eax
jle 0x100097e6
mov byte [esi + 0xffff], 0
push esi
push str.MbaeLogProcessModules
push 1
mov edx, 0x462
mov ecx, str...ApiAuxNA.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x100097fe
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, 5
jmp 0x10009aeb
push dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push ebx
push dword [ebp - 0x654]
push dword [ebp - 0x644]
push str._tProcess_Info:_Pid:__d_Process_Name:__s_Address:_0x_08X_r_n
push 0x104
push esi
call fcn.1005211a
add esp, 0x1c
lea ebx, [ebx]
mov ecx, dword [ebp - 0x638]
mov eax, dword [ebp - 0x634]
add eax, ecx
mov edx, dword [ebp + 0xc]
test edx, edx
jb 0x100098aa
ja 0x100098aa
cmp ebx, ecx
jb 0x100098aa
test edx, edx
ja 0x100098aa
jb 0x10009875
cmp ebx, eax
ja 0x100098aa
push eax
push ecx
lea eax, [ebp - 0x62c]
push eax
push dword [ebp - 0x650]
push str._t_tPid:__d___t__LoadedModule:__s__tAddress:_0x_08X:0x_08X_r_n
lea eax, [ebp - 0x224]
push eax
call fcn.10004ed0
lea eax, [ebp - 0x224]
push eax
push 0xcb1f
push esi
call fcn.10051f45
add esp, 0x24
lea eax, [ebp - 0x64c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x10009850
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100098c1
sub ecx, edx
sar ecx, 1
xor eax, eax
mov word [esi + ecx*2 - 4], ax
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x1e
mov dword [ebp - 0x654], eax
mov dword [ebp - 0x660], 0
push 0x1000a
call fcn.1005218a
mov dword [ebp - 0x650], eax
push 0x2000a
call fcn.1005218a
add esp, 8
mov ebx, eax
cmp dword [ebp - 0x650], 0
je 0x100099c7
test ebx, ebx
je 0x100099c7
push esi
push 0x10086484
push 0xffff
push ebx
call fcn.1005211a
add esp, 0x10
test eax, eax
jle 0x100099ad
xor eax, eax
mov word [ebx + 0x1fffe], ax
push 0xfffffffffffffffe
push ebx
call fcn.10051b84
push 0xffffffffffffffff
push ebx
inc eax
push eax
push dword [ebp - 0x650]
lea eax, [ebp - 0x660]
push eax
call fcn.10052d14
add esp, 0x1c
test eax, eax
je 0x10009986
push dword [ebp - 0x654]
push ebx
push str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.10052604
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 0x654]
push dword [ebp - 0x650]
push str.MbaeLogProcessModules
push 4
mov edx, 0x47e
mov ecx, str...ApiAuxNA.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x100099df
push dword [ebp - 0x654]
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
jmp 0x100099d9
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x650]
test eax, eax
je 0x100099f2
push eax
call fcn.10052152
add esp, 4
test ebx, ebx
je 0x100099ff
push ebx
call fcn.10052152
add esp, 4
mov dword [ebp - 4], 0
call fcn.10009a25
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x10009aeb
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1005132c
mov esp, ebp
pop ebp
ret