Function at 0x411200
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x608514]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x208]
mov dword [ebp - 0x61c], ecx
push eax
push 0
push 0
mov dword [ebp - 0x208], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [sym.imp.PSAPI.DLL_EnumProcessModules]
push eax
call edi
mov esi, dword [ebp - 0x208]
test esi, esi
je 0x4112c4
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov eax, 0x60e1fc
mov dword [ebp - 0x620], ebx
test ebx, ebx
je 0x41126f
lock xadd dword [eax], esi
mov eax, dword [ebp - 0x208]
mov ecx, eax
shr ecx, 2
mov dword [ebp - 0x624], ecx
lea ecx, [ebp - 0x208]
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
jne 0x4112d7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapSize]
push ebx
push 0
mov esi, eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x4112c4
neg esi
mov eax, 0x60e1fc
lock xadd dword [eax], esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054bed3
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x61c]
mov ebx, dword [esi]
lea ecx, [esi + 8]
mov dword [ebp - 0x618], ecx
mov edi, dword [ebx]
cmp edi, ebx
je 0x411368
jmp 0x4112f6
mov ecx, dword [ebp - 0x618]
mov esi, dword [ecx]
lea eax, [edi + 0x10]
push eax
call fcn.0041d470
mov ecx, dword [ebp - 0x618]
push eax
add eax, 0x10
push eax
push esi
lea eax, [ebp - 0x628]
push eax
call fcn.0041d4f0
mov eax, dword [edi + 8]
cmp byte [eax + 0xd], 0
je 0x411344
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x411340
nop dword [eax + eax]
cmp edi, dword [eax + 8]
jne 0x411340
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x411330
mov edi, eax
jmp 0x41135c
mov edi, eax
mov ecx, dword [edi]
cmp byte [ecx + 0xd], 0
jne 0x41135c
nop
mov eax, dword [ecx]
mov edi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x411350
cmp edi, ebx
jne 0x4112f0
mov esi, dword [ebp - 0x61c]
mov ebx, dword [esi]
push dword [ebx + 4]
mov ecx, esi
call fcn.004167a0
mov eax, dword [esi]
mov dword [eax + 4], ebx
mov eax, dword [esi]
mov dword [eax], ebx
mov eax, dword [esi]
mov dword [eax + 8], ebx
mov dword [esi + 4], 0
xor esi, esi
cmp dword [ebp - 0x624], esi
jbe 0x4114ad
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov ebx, dword [sym.imp.PSAPI.DLL_GetModuleInformation]
push 0x404
lea eax, [ebp - 0x60c]
mov dword [ebp - 0x614], 0
push 0
push eax
mov dword [ebp - 0x610], 0
call sub.VCRUNTIME140.dll_memset
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x204]
push 0x200
push eax
mov eax, dword [ebp - 0x620]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strlwr]
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x408]
push 0x100
push eax
call edi
lea eax, [ebp - 0x204]
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_strrchr]
add esp, 0x18
test eax, eax
je 0x41143b
inc eax
jmp 0x411441
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x608]
push 0x100
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x614]
push 0xc
push eax
mov eax, dword [ebp - 0x620]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
mov ecx, dword [ebp - 0x618]
lea eax, [ebp - 0x614]
push eax
call fcn.00415150
push dword [ebp - 0x628]
lea eax, [ebp - 0x614]
push eax
push ecx
mov ecx, dword [ebp - 0x61c]
lea eax, [ebp - 0x62c]
push eax
call fcn.0041c040
inc esi
cmp esi, dword [ebp - 0x624]
jb 0x4113a1
mov ebx, dword [ebp - 0x620]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapSize]
push ebx
push 0
mov esi, eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x4114e2
neg esi
mov eax, 0x60e1fc
lock xadd dword [eax], esi
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054bed3
mov esp, ebp
pop ebp
ret