Function at 0x50cdf0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5baa43
mov eax, dword fs:[0]
push eax
mov eax, 0x1234
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 eax, dword [ebp + 0x24]
mov dword [ebp - 0x240], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
push eax
push ebx
push 0x410
mov dword [ebp - 0x238], ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
jne 0x50ce6c
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 8
jb 0x50ce63
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
xor eax, eax
jmp 0x50d051
lea edx, [ebp - 0x23c]
push edx
push 0x1000
lea eax, [ebp - 0x1240]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x50d028
xor esi, esi
test dword [ebp - 0x23c], 0xfffffffc
jbe 0x50d028
mov edx, dword [0x6255d8]
mov ecx, dword [0x6255d4]
mov eax, dword [0x6255dc]
push 0x1f8
mov dword [ebp - 0x214], edx
mov dword [ebp - 0x218], ecx
mov ecx, dword [0x6255e0]
lea edx, [ebp - 0x208]
push ebx
push edx
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x20c], ecx
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp + esi*4 - 0x1240]
add esp, 0xc
push 0x208
lea eax, [ebp - 0x218]
push eax
push ecx
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
xor edx, edx
lea eax, [ebp - 0x218]
mov word [ebp - 0x234], dx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x50cf21
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.00406180
mov byte [ebp - 4], 1
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x50cf5c
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x50cf6f
lea eax, [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x50cf82
lea eax, [ebp + 8]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x224]
push ecx
push eax
push edx
push ebx
lea ecx, [ebp - 0x234]
call fcn.00416c10
test eax, eax
je 0x50cfe7
mov byte [ebp - 4], bl
cmp dword [ebp - 0x220], 8
jb 0x50cfba
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edx, dword [ebp - 0x23c]
xor ecx, ecx
inc esi
shr edx, 2
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], cx
cmp esi, edx
jb 0x50cea0
jmp 0x50d028
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x238], eax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x220], 8
jb 0x50d00f
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], dx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 8
jb 0x50d049
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x238]
xor ecx, ecx
mov word [ebp + 8], cx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], 7
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 0x20