Function at 0x50c9d0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bbf7b
mov eax, dword fs:[0]
push eax
mov eax, 0x147c
call fcn.00549c70
mov eax, dword [0x669404]
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 esi, ecx
xor ebx, ebx
mov dword [ebp - 0x47c], esi
mov edi, edx
mov dword [ebp - 0x480], ebx
mov dword [ebp - 4], 1
push ebx
xor eax, eax
push 0x610bf8
lea ecx, [ebp - 0x458]
mov dword [ebp - 0x444], 7
mov dword [ebp - 0x448], ebx
mov word [ebp - 0x458], ax
call fcn.00406180
mov byte [ebp - 4], 2
push edi
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x488], edi
cmp edi, ebx
jne 0x50cae8
xor ecx, ecx
mov edi, 7
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push ebx
mov word [esi], cx
push 0x610bf8
mov ecx, esi
call fcn.00406180
mov dword [ebp - 0x480], 1
mov byte [ebp - 4], 1
cmp dword [ebp - 0x444], 8
jb 0x50caaa
mov edx, dword [ebp - 0x458]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x444], edi
mov dword [ebp - 0x448], ebx
mov word [ebp - 0x458], ax
mov byte [ebp - 4], bl
cmp dword [ebp + 0x1c], 8
jb 0x50cad5
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], dx
mov eax, esi
jmp 0x50cdd1
lea eax, [ebp - 0x484]
push eax
push 0x1000
lea ecx, [ebp - 0x1488]
push ecx
push edi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x50cd44
test dword [ebp - 0x484], 0xfffffffc
mov dword [ebp - 0x478], ebx
jbe 0x50cd44
mov eax, dword [0x6255d8]
mov edx, dword [0x6255d4]
mov ecx, dword [0x6255dc]
push 0x1f8
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], edx
mov edx, dword [0x6255e0]
lea eax, [ebp - 0x208]
push ebx
push eax
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], edx
call sub.MSVCR100.dll_memset
mov edx, dword [ebp - 0x478]
mov eax, dword [ebp + edx*4 - 0x1488]
add esp, 0xc
push 0x208
lea ecx, [ebp - 0x218]
push ecx
push eax
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
xor ecx, ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x428], 7
mov dword [ebp - 0x42c], ebx
mov word [ebp - 0x43c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x50cba7
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x43c]
call fcn.00406180
mov byte [ebp - 4], 3
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x50cbd9
lea eax, [ebp + 8]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x42c]
push ecx
push eax
push edx
push ebx
lea ecx, [ebp - 0x43c]
call fcn.00416c10
test eax, eax
jne 0x50cc1a
mov ecx, dword [ebp - 0x478]
mov edx, dword [ebp + ecx*4 - 0x1488]
push 0x208
lea eax, [ebp - 0x420]
push eax
push edx
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
jne 0x50cc73
mov byte [ebp - 4], 2
cmp dword [ebp - 0x428], 8
jb 0x50cc37
mov eax, dword [ebp - 0x43c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x478]
mov edx, dword [ebp - 0x484]
inc eax
xor ecx, ecx
shr edx, 2
mov dword [ebp - 0x428], 7
mov dword [ebp - 0x42c], ebx
mov word [ebp - 0x43c], cx
mov dword [ebp - 0x478], eax
cmp eax, edx
jb 0x50cb20
jmp 0x50cd44
xor eax, eax
mov word [ebp - 0x474], ax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x460], 7
mov dword [ebp - 0x464], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x50cc95
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x474]
call fcn.00406180
mov byte [ebp - 4], 4
lea edi, [ebp - 0x474]
lea esi, [ebp - 0x458]
call fcn.00406850
mov byte [ebp - 4], 3
mov edi, 8
cmp dword [ebp - 0x460], edi
jb 0x50cced
mov edx, dword [ebp - 0x474]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 7
xor eax, eax
mov dword [ebp - 0x460], esi
mov dword [ebp - 0x464], ebx
mov word [ebp - 0x474], ax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x428], edi
jb 0x50cd23
mov ecx, dword [ebp - 0x43c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, dword [ebp - 0x488]
xor edx, edx
mov dword [ebp - 0x428], esi
mov esi, dword [ebp - 0x47c]
mov dword [ebp - 0x42c], ebx
mov word [ebp - 0x43c], dx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea edi, [ebp - 0x458]
mov word [esi], ax
call fcn.00406850
mov dword [ebp - 0x480], 1
mov byte [ebp - 4], 1
mov esi, 8
cmp dword [ebp - 0x444], esi
jb 0x50cd90
mov ecx, dword [ebp - 0x458]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, 7
xor edx, edx
mov dword [ebp - 0x444], edi
mov dword [ebp - 0x448], ebx
mov word [ebp - 0x458], dx
mov byte [ebp - 4], bl
cmp dword [ebp + 0x1c], esi
jb 0x50cdbf
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], cx
mov eax, dword [ebp - 0x47c]
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.00546bdc
mov esp, ebp
pop ebp
ret 0x1c