Function at 0x408000
Capabilities:
Enumerate process modules

Disassembly:
push 0xffffffffffffffff
push 0x409711
mov eax, dword fs:[0]
push eax
mov eax, 0x1014
call fcn.004086f0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40d1f8]
xor eax, esp
push eax
lea eax, [esp + 0x1028]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x40d500]
mov edx, dword [eax + 0xc]
mov ecx, 0x40d500
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x1030], 0
mov dword [esp + 0x18], ebx
cmp dword [esi + 0x28], ebx
jne 0x4081fb
mov eax, dword [0x40d500]
mov edx, dword [eax + 0xc]
mov ecx, 0x40d500
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov byte [esp + 0x1034], 1
call fcn.00406cc0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1034], 2
call fcn.00403950
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x1030], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4080c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x4c]
cmp dword [eax - 0xc], 0
lea edi, [esi + 0x4c]
jne 0x4080e1
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.00403950
jmp 0x4080f7
mov edx, dword [esp + 0x14]
push eax
push edx
call dword [sym.imp.MSVCR90.dll__wcsicmp]
add esp, 8
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
test ebx, ebx
jne 0x40811d
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.00403950
mov ecx, esi
call fcn.00407ae0
push str.LoadIniFile_successful__r_n
mov ecx, 0x40d4ec
call fcn.00401950
lea ecx, [esp + 0x24]
push ecx
push 0x1000
lea edx, [esp + 0x30]
push edx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x40815b
mov ebp, dword [esp + 0x24]
shr ebp, 2
xor edi, edi
test ebp, ebp
jbe 0x40816a
cmp dword [esi + 0x28], 0
jne 0x40816a
mov eax, dword [esp + edi*4 + 0x28]
push eax
mov ecx, esi
call fcn.00406ea0
inc edi
cmp edi, ebp
jb 0x408142
jmp 0x40816a
push str.Create_Snapshot_failed__r_n
mov ecx, 0x40d4ec
call fcn.00401950
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, 0x4380
jne 0x4081be
mov ecx, dword [esi + 0x18]
mov ebp, dword [ecx + 4]
cmp byte [ebp + 0x15], 0
mov edi, ebp
jne 0x4081a6
mov edx, dword [edi + 8]
push edx
mov ecx, esi
call fcn.00404750
mov edi, dword [edi]
push ebp
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp byte [edi + 0x15], 0
mov ebp, edi
je 0x408188
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [eax], eax
mov eax, dword [esi + 0x18]
mov dword [eax + 8], eax
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x1030], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4081f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x28], 0
je 0x408063
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x1030], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408226
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1028]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1020
ret