Function at 0x470c20
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a062b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x248
mov dword [ebp - 0x244], ecx
mov eax, dword [ebp - 0x244]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x1c0], ecx
cmp dword [ebp - 0x1c0], 0
jne 0x470c63
xor al, al
jmp 0x47102a
mov byte [ebp - 0x3d], 0
lea ecx, [ebp - 0x3c]
call fcn.00471f50
mov dword [ebp - 4], 0
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x44], eax
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.004236e0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x44], 0
je 0x470e1f
push str.CreateToolhelp32Snapshot
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x50], eax
push str.Process32First
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x54], eax
push str.Process32Next
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x48], eax
push str.Module32First
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x4c], eax
push str.Module32Next
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x50], 0
je 0x470e14
cmp dword [ebp - 0x54], 0
je 0x470e14
cmp dword [ebp - 0x48], 0
je 0x470e14
cmp dword [ebp - 0x4c], 0
je 0x470e14
cmp dword [ebp - 0x58], 0
je 0x470e14
mov dword [ebp - 0x188], 0
push 0
push 2
call dword [ebp - 0x50]
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0xffffffff
je 0x470e12
mov dword [ebp - 0x184], 0x128
lea ecx, [ebp - 0x184]
push ecx
mov edx, dword [ebp - 0x188]
push edx
call dword [ebp - 0x54]
test eax, eax
je 0x470e05
cmp dword [ebp - 0x17c], 0
jne 0x470d7c
jmp 0x470dec
mov eax, dword [ebp - 0x244]
cmp dword [eax + 0x18], 0x10
jb 0x470d99
mov ecx, dword [ebp - 0x244]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x248], edx
jmp 0x470da8
mov eax, dword [ebp - 0x244]
add eax, 4
mov dword [ebp - 0x248], eax
push 0
mov ecx, dword [ebp - 0x248]
push ecx
lea edx, [ebp - 0x160]
push edx
lea ecx, [ebp - 0x3c]
call fcn.00471fb0
movzx eax, al
test eax, eax
je 0x470dec
lea ecx, [ebp - 0x160]
push ecx
call fcn.0048bc60
add esp, 4
push eax
lea edx, [ebp - 0x160]
push edx
lea ecx, [ebp - 0x28]
call fcn.004241c0
mov byte [ebp - 0x3d], 1
jmp 0x470e05
lea eax, [ebp - 0x184]
push eax
mov ecx, dword [ebp - 0x188]
push ecx
call dword [ebp - 0x48]
test eax, eax
jne 0x470d71
mov edx, dword [ebp - 0x188]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x470e1f
push str.Failed_to_load_find_kernel32.dll_entry_points_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1cc], eax
cmp dword [ebp - 0x1cc], 0
je 0x470ffc
push 0xffffffffffffffff
mov ecx, dword [0x4b8b40]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 0x189], 0
mov edx, dword [0x4b8b48]
mov dword [ebp - 0x1d0], edx
mov eax, dword [ebp - 0x1d0]
mov dword [ebp - 0x190], eax
jmp 0x470e8c
mov ecx, dword [ebp - 0x190]
mov dword [ebp - 0x1d4], ecx
mov edx, dword [ebp - 0x190]
add edx, 0x20
mov dword [ebp - 0x190], edx
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0x194], eax
mov ecx, dword [0x4b8b4c]
mov dword [ebp - 0x1d8], ecx
mov edx, dword [ebp - 0x1d8]
mov dword [ebp - 0x198], edx
mov eax, dword [ebp - 0x190]
sub eax, dword [ebp - 0x198]
neg eax
sbb eax, eax
inc eax
movzx ecx, al
neg ecx
sbb ecx, ecx
inc ecx
movzx edx, cl
test edx, edx
je 0x470f59
mov eax, dword [ebp - 0x244]
cmp dword [eax + 0x18], 0x10
jb 0x470ee5
mov ecx, dword [ebp - 0x244]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x24c], edx
jmp 0x470ef4
mov eax, dword [ebp - 0x244]
add eax, 4
mov dword [ebp - 0x24c], eax
mov ecx, dword [ebp - 0x190]
cmp dword [ecx + 0x18], 0x10
jb 0x470f11
mov edx, dword [ebp - 0x190]
mov eax, dword [edx + 4]
mov dword [ebp - 0x250], eax
jmp 0x470f20
mov ecx, dword [ebp - 0x190]
add ecx, 4
mov dword [ebp - 0x250], ecx
push 0
mov edx, dword [ebp - 0x24c]
push edx
mov eax, dword [ebp - 0x250]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00471fb0
movzx ecx, al
test ecx, ecx
je 0x470f54
mov byte [ebp - 0x189], 1
mov edx, dword [ebp - 0x190]
mov al, byte [ebp - 0x3d]
mov byte [edx + 0x1c], al
jmp 0x470f59
jmp 0x470e65
movzx ecx, byte [ebp - 0x189]
test ecx, ecx
jne 0x470ff0
cmp dword [ebp - 0x10], 0x10
jb 0x470f79
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x1ec], edx
jmp 0x470f82
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1ec], eax
push 0
push 0
lea ecx, [ebp - 0x1b8]
call fcn.004236e0
mov ecx, dword [ebp - 0x1ec]
push ecx
call fcn.0048bc60
add esp, 4
push eax
mov edx, dword [ebp - 0x1ec]
push edx
lea ecx, [ebp - 0x1b8]
call fcn.004241c0
mov al, byte [ebp - 0x3d]
mov byte [ebp - 0x19c], al
lea ecx, [ebp - 0x1b8]
mov dword [ebp - 0x254], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x254]
push edx
mov ecx, 0x4b8b44
call fcn.004711b0
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x1b8]
call fcn.004236e0
mov eax, dword [0x4b8b40]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov cl, byte [ebp - 0x3d]
mov byte [ebp - 0x1b9], cl
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004236e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00471f70
mov al, byte [ebp - 0x1b9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret