Function at 0x401310
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402d10
mov eax, dword fs:[0]
push eax
mov eax, 0x1154
call fcn.00402cc0
mov eax, dword [0x405004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1150], edx
mov esi, ecx
mov dword [ebp - 0x1154], esi
lea eax, [ebp - 0x1130]
push eax
push 0x1000
lea eax, [ebp - 0x1114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x4015c0
mov ecx, dword [ebp - 0x1130]
xor eax, eax
shr ecx, 2
mov dword [ebp - 0x1160], ecx
mov dword [ebp - 0x1158], eax
test ecx, ecx
je 0x4015c0
lea ecx, [ebp - 0x1114]
lea eax, [ecx + eax*4]
push 0x104
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x115c], eax
push ecx
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
test eax, eax
je 0x4015a7
xorps xmm0, xmm0
mov dword [ebp - 0x111c], 0
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x1118], 0
movups xmmword [ebp - 0x112c], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4013e3
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x112c]
call fcn.00401e10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x112c]
cmp dword [ebp - 0x1118], 0x10
mov edi, dword [ebp - 0x112c]
mov esi, dword [ebp - 0x111c]
setae byte [ebp - 0x1149]
cmovae ecx, edi
mov edx, esi
push 1
sub esp, 8
call fcn.00401d50
add esp, 0xc
mov dword [ebp - 0x1138], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1134], 0
movups xmmword [ebp - 0x1148], xmm0
lea edx, [eax + 1]
cmp esi, edx
jb 0x40165a
sub esi, edx
lea eax, [ebp - 0x112c]
or ecx, 0xffffffff
cmp esi, 0xffffffff
cmovb ecx, esi
cmp byte [ebp - 0x1149], 0
push ecx
cmovne eax, edi
lea ecx, [ebp - 0x1148]
add eax, edx
push eax
call fcn.00401e10
mov eax, dword [ebp - 0x1150]
mov edx, eax
cmp dword [eax + 0x14], 0x10
jb 0x40149b
mov edx, dword [eax]
cmp dword [ebp - 0x1134], 0x10
lea eax, [ebp - 0x1148]
mov ecx, dword [ebp - 0x1150]
mov edi, dword [ebp - 0x1148]
setae byte [ebp - 0x1149]
mov esi, dword [ebp - 0x1138]
cmovae eax, edi
cmp esi, dword [ecx + 0x10]
mov ecx, dword [ebp - 0x1134]
jne 0x40152e
sub esi, 4
jb 0x4014e5
mov ecx, dword [eax]
cmp ecx, dword [edx]
jne 0x4014ea
add eax, 4
add edx, 4
sub esi, 4
jae 0x4014d4
cmp esi, 0xfffffffc
je 0x40151e
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x401517
cmp esi, 0xfffffffd
je 0x40151e
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x401517
cmp esi, 0xfffffffe
je 0x40151e
mov cl, byte [eax + 2]
cmp cl, byte [edx + 2]
jne 0x401517
cmp esi, 0xffffffff
je 0x40151e
mov al, byte [eax + 3]
cmp al, byte [edx + 3]
je 0x40151e
sbb eax, eax
or eax, 1
jmp 0x401520
xor eax, eax
test eax, eax
je 0x4015dd
mov ecx, dword [ebp - 0x1134]
cmp byte [ebp - 0x1149], 0
je 0x401560
inc ecx
mov eax, edi
cmp ecx, 0x1000
jb 0x401556
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401654
push ecx
push edi
call fcn.00401fb2
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1118]
cmp ecx, 0x10
jb 0x4015a1
mov edx, dword [ebp - 0x112c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401597
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401654
push ecx
push edx
call fcn.00401fb2
add esp, 8
mov esi, dword [ebp - 0x1154]
mov eax, dword [ebp - 0x1158]
inc eax
mov dword [ebp - 0x1158], eax
cmp eax, dword [ebp - 0x1160]
jl 0x401390
xor eax, eax
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.00401f74
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x115c]
mov eax, dword [ebp - 0x1134]
mov esi, dword [esi]
cmp eax, 0x10
jb 0x401617
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x40160d
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401654
push ecx
push edi
call fcn.00401fb2
add esp, 8
mov ecx, dword [ebp - 0x1118]
cmp ecx, 0x10
jb 0x40164d
mov edx, dword [ebp - 0x112c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401643
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401654
push ecx
push edx
call fcn.00401fb2
add esp, 8
mov eax, esi
jmp 0x4015c2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.00401af0
int3