Function at 0x404740
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406568
mov eax, dword fs:[0]
push eax
mov eax, 0x1168
call fcn.004052b0
mov eax, dword [0x409004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1174], edi
mov dword [ebp - 0x115c], 0
push 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 0x114c], edi
mov dword [ebp - 0x1150], esi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00405250
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [edi], eax
lea eax, [ebp - 0x1158]
mov dword [ebp - 4], 0
push eax
push 0x1000
lea eax, [ebp - 0x1114]
mov dword [ebp - 0x115c], 1
push eax
push esi
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x404b0a
xor ecx, ecx
test dword [ebp - 0x1158], 0xfffffffc
mov dword [ebp - 0x1154], ecx
jbe 0x404b0a
nop dword [eax + eax]
lea eax, [ebp - 0x1114]
lea eax, [eax + ecx*4]
push 0x104
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x1168], eax
push ecx
push dword [eax]
push esi
call sub.KERNEL32.dll_K32GetModuleFileNameExA
test eax, eax
je 0x404aec
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x1134], 0
mov dword [ebp - 0x1130], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x1144], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404860
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x1144]
call fcn.00402990
cmp dword [ebp - 0x1130], 0x10
lea edx, [ebp - 0x1144]
mov eax, dword [ebp - 0x1134]
cmovae edx, dword [ebp - 0x1144]
add eax, edx
mov dword [ebp - 4], 1
cmp dword [ebp - 0x1130], 0x10
lea edx, [ebp - 0x1144]
mov dword [ebp - 0x111c], 0
cmovae edx, dword [ebp - 0x1144]
mov dword [ebp - 0x1118], 0xf
mov byte [ebp - 0x112c], 0
cmp edx, eax
je 0x4048e1
sub eax, edx
lea ecx, [ebp - 0x112c]
push eax
push edx
call fcn.00402990
mov eax, dword [edi]
xor edi, edi
mov byte [ebp - 4], 2
mov dword [ebp - 0x1164], eax
mov dword [ebp - 0x1148], eax
mov esi, dword [eax + 4]
cmp byte [esi + 0xd], 0
jne 0x404968
nop
cmp dword [ebp - 0x1118], 0x10
lea ecx, [ebp - 0x112c]
mov dword [ebp - 0x1160], esi
lea edx, [esi + 0x10]
cmovae ecx, dword [ebp - 0x112c]
cmp dword [esi + 0x24], 0x10
jb 0x404926
mov edx, dword [esi + 0x10]
push dword [ebp - 0x111c]
push ecx
push dword [esi + 0x20]
push edx
call fcn.004023a0
shr eax, 0x1f
add esp, 0x10
test al, al
je 0x40494d
mov esi, dword [esi + 8]
xor edi, edi
mov eax, dword [ebp - 0x1148]
jmp 0x40495c
mov eax, esi
mov edi, 1
mov esi, dword [esi]
mov dword [ebp - 0x1148], eax
cmp byte [esi + 0xd], 0
je 0x404900
mov esi, dword [ebp - 0x1160]
cmp byte [eax + 0xd], 0
jne 0x4049ba
cmp dword [eax + 0x24], 0x10
lea ecx, [eax + 0x10]
mov edx, ecx
jb 0x40497b
mov edx, dword [ecx]
push dword [ecx + 0x10]
cmp dword [ebp - 0x1118], 0x10
lea eax, [ebp - 0x112c]
push edx
cmovae eax, dword [ebp - 0x112c]
push dword [ebp - 0x111c]
push eax
call fcn.004023a0
shr eax, 0x1f
add esp, 0x10
test al, al
jne 0x4049ba
mov ecx, dword [ebp - 0x1148]
mov edi, dword [ebp - 0x114c]
jmp 0x404a63
mov eax, dword [ebp - 0x114c]
cmp dword [eax + 4], 0x5d1745d
je 0x404b2d
mov dword [ebp - 0x1170], eax
push 0x2c
mov byte [ebp - 4], 3
mov dword [ebp - 0x116c], 0
call fcn.00405250
mov ecx, dword [ebp - 0x1164]
add esp, 4
mov dword [ebp - 0x116c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
movups xmm0, xmmword [ebp - 0x112c]
push eax
push edi
mov edi, dword [ebp - 0x114c]
movups xmmword [eax + 0x10], xmm0
push esi
movq xmm0, qword [ebp - 0x111c]
movq qword [eax + 0x20], xmm0
mov dword [ebp - 0x111c], 0
mov dword [ebp - 0x1118], 0xf
mov byte [ebp - 0x112c], 0
mov dword [eax + 0x28], 0
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, edi
mov word [eax + 0xc], 0
call fcn.00402760
mov ecx, eax
mov eax, dword [ebp - 0x1168]
mov byte [ebp - 4], 1
mov eax, dword [eax]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp - 0x1118]
cmp edx, 0x10
jb 0x404aac
mov ecx, dword [ebp - 0x112c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404aa2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404b27
push edx
push ecx
call fcn.00405231
add esp, 8
mov edx, dword [ebp - 0x1130]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x404ae6
mov ecx, dword [ebp - 0x1144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404adc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404b27
push edx
push ecx
call fcn.00405231
add esp, 8
mov esi, dword [ebp - 0x1150]
mov ecx, dword [ebp - 0x1154]
mov eax, dword [ebp - 0x1158]
inc ecx
shr eax, 2
mov dword [ebp - 0x1154], ecx
cmp ecx, eax
jb 0x404810
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040523f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.00402970
int3