Function at 0x451630
Capabilities:
Enumerate processes
Link many functions at runtime

Disassembly:
sub esp, 0x674
push ebx
push ebp
mov ebp, dword [esp + 0x680]
mov eax, dword [ebp + 0x28]
xor ebx, ebx
cmp eax, ebx
push esi
je 0x451652
push eax
call sub.msvcrt.dll_free
add esp, 4
push ebx
push 2
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x34], ebx
mov dword [ebp + 0x2c], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
push 0x228
lea eax, [esp + 0x250]
push ebx
push eax
mov dword [esp + 0x18], esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [esp + 0x248]
push ecx
push esi
mov dword [esp + 0x250], 0x22c
call sub.KERNEL32.dll_Process32FirstW
lea edx, [esp + 0x248]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x45192e
push edi
nop
mov eax, dword [esp + 0x254]
mov ecx, dword [esp + 0x264]
push eax
push ebx
push 0x410
mov word [esp + 0x28], bx
mov dword [esp + 0x238], ebx
mov dword [esp + 0x23c], ebx
mov dword [esp + 0x240], ebx
mov dword [esp + 0x244], ebx
mov dword [esp + 0x248], ebx
mov dword [esp + 0x24c], ebx
mov dword [esp + 0x250], ebx
mov dword [esp + 0x254], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x234], ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x45188a
push 0x208
lea edx, [esp + 0x47e]
push ebx
push edx
mov word [esp + 0x484], bx
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp], ebx
jne 0x45179a
mov ebx, str.psapi.dll
call fcn.00460340
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetModuleBaseNameW
push eax
mov dword [ebp], eax
call edi
mov dword [ebp + 4], eax
mov eax, dword [ebp]
push str.EnumProcessModules
push eax
call edi
mov ecx, dword [ebp]
push str.GetModuleFileNameExW
push ecx
mov dword [ebp + 8], eax
call edi
mov edx, dword [ebp]
push str.EnumProcesses
push edx
mov dword [ebp + 0x10], eax
call edi
mov dword [ebp + 0x14], eax
mov eax, dword [ebp]
push str.GetModuleInformation
push eax
call edi
mov dword [ebp + 0xc], eax
xor ebx, ebx
jmp 0x4517a0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4517b8
push 0x104
lea ecx, [esp + 0x47c]
push ecx
push ebx
push esi
call eax
cmp word [esp + 0x478], bx
jne 0x451814
cmp dword [0x47cb64], ebx
mov dword [esp + 0x14], 0x104
jne 0x4517fa
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x4517fa
push str.QueryFullProcessImageNameW
push eax
mov dword [0x47cb64], 1
call edi
mov dword [0x47cb68], eax
jmp 0x4517ff
mov eax, dword [0x47cb68]
cmp eax, ebx
je 0x451814
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x47c]
push ecx
push ebx
push esi
call eax
lea eax, [esp + 0x478]
lea ebx, [esp + 0x1c]
call fcn.00451400
cmp dword [0x47cb6c], 0
jne 0x451855
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x451855
push str.GetProcessTimes
push eax
mov dword [0x47cb6c], 1
call edi
mov dword [0x47cb70], eax
jmp 0x45185a
mov eax, dword [0x47cb70]
test eax, eax
je 0x451881
lea edx, [esp + 0x244]
push edx
lea ecx, [esp + 0x240]
push ecx
lea edx, [esp + 0x23c]
push edx
lea ecx, [esp + 0x238]
push ecx
push esi
call eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov edi, dword [ebp + 0x34]
cmp edi, ebx
jl 0x45190f
cmp edi, 0xffffffff
mov ecx, dword [ebp + 0x30]
jne 0x45189f
mov edx, dword [ebp + 0x28]
push edx
jmp 0x4518e6
mov ebx, dword [ebp + 0x2c]
cmp edi, ebx
jl 0x4518ee
mov esi, dword [ebp + 0x28]
lea esp, [esp]
add dword [ebp + 0x2c], ecx
mov eax, dword [ebp + 0x2c]
cmp edi, eax
jge 0x4518b0
imul eax, eax, 0x234
push eax
call sub.msvcrt.dll_malloc
add esp, 4
test ebx, ebx
mov dword [ebp + 0x28], eax
jle 0x4518ee
test eax, eax
je 0x4518e5
imul ebx, ebx, 0x234
push ebx
push esi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push esi
call sub.msvcrt.dll_free
add esp, 4
lea eax, [edi + 1]
cmp dword [ebp + 0x34], eax
jge 0x4518f9
mov dword [ebp + 0x34], eax
imul edi, edi, 0x234
add edi, dword [ebp + 0x28]
mov ecx, 0x8d
lea esi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x24c]
push eax
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4516b0
mov esi, dword [esp + 0x10]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
pop ebx
add esp, 0x674
ret 4