Function at 0x4157a0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c580
mov eax, dword fs:[0]
push eax
sub esp, 0x67c
mov eax, dword [0x55c640]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x654], edi
xor ebx, ebx
mov dword [ebp - 0x64c], ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x650], esi
cmp esi, 0xffffffff
je 0x415834
push 0x424
lea eax, [ebp - 0x644]
push ebx
push eax
call fcn.00489f10
add esp, 0xc
mov dword [ebp - 0x648], 0x428
lea eax, [ebp - 0x648]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
jne 0x41583b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x415ab6
lea esi, [edi + 4]
jmp 0x415846
mov edi, dword [ebp - 0x654]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00489f10
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [ebp - 0x62c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
push 0x38
call fcn.00485891
mov edi, eax
add esp, 4
mov dword [ebp - 0x688], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x4159c8
xor eax, eax
mov dword [ebp - 0x670], 7
mov dword [ebp - 0x674], 0
mov word [ebp - 0x684], ax
cmp word [ebp - 0x218], ax
je 0x4158df
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4158d0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x684]
call fcn.00454a30
mov byte [ebp - 4], 1
xor eax, eax
or ebx, 1
mov dword [ebp - 0x658], 7
mov dword [ebp - 0x64c], ebx
mov dword [ebp - 0x65c], 0
mov word [ebp - 0x66c], ax
cmp word [ebp - 0x628], ax
jne 0x415929
xor ecx, ecx
jmp 0x415941
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415932
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x66c]
call fcn.00454a30
mov dword [ebp - 4], 2
or ebx, 2
mov ecx, dword [ebp - 0x630]
mov eax, dword [ebp - 0x62c]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], ecx
lea ecx, [edi + 8]
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x66c]
push eax
mov dword [ebp - 0x64c], ebx
call fcn.00451bc0
lea ecx, [edi + 0x20]
mov dword [ebp - 4], 3
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x684]
push eax
call fcn.00451bc0
jmp 0x4159ca
xor edi, edi
mov dword [ebp - 0x21c], edi
test bl, 2
je 0x415a0c
and ebx, 0xfffffffd
cmp dword [ebp - 0x658], 8
jb 0x4159ef
push dword [ebp - 0x66c]
call fcn.00485250
add esp, 4
xor eax, eax
mov dword [ebp - 0x658], 7
mov dword [ebp - 0x65c], 0
mov word [ebp - 0x66c], ax
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x415a32
and ebx, 0xfffffffe
cmp dword [ebp - 0x670], 8
jb 0x415a32
push dword [ebp - 0x684]
call fcn.00485250
add esp, 4
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x21c]
cmp ecx, eax
jae 0x415a6f
mov ecx, dword [esi]
lea edx, [ebp - 0x21c]
cmp ecx, edx
ja 0x415a6f
mov edi, edx
sub edi, ecx
sar edi, 2
cmp eax, dword [esi + 8]
jne 0x415a5f
push ecx
mov ecx, esi
call fcn.00453620
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x415a85
mov eax, dword [esi]
mov eax, dword [eax + edi*4]
mov dword [ecx], eax
jmp 0x415a85
cmp eax, dword [esi + 8]
jne 0x415a7c
push ecx
mov ecx, esi
call fcn.00453620
mov eax, dword [esi + 4]
test eax, eax
je 0x415a85
mov dword [eax], edi
mov edi, dword [ebp - 0x650]
lea eax, [ebp - 0x648]
add dword [esi + 4], 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x415840
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi]
xor eax, eax
cmp ecx, dword [esi + 4]
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00484516
mov esp, ebp
pop ebp
ret