Function at 0x403790
Capabilities:
Enumerate files on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421623
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x188
mov eax, dword [0x42c00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push ecx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.00409fa0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x3c]
mov eax, edx
mov ecx, dword [ebp - 0x40]
sub eax, ecx
push 2
push 0x42900c
cmp eax, 2
jb 0x403844
cmp edx, 0x10
lea esi, [ebp - 0x50]
lea eax, [ecx + 2]
cmovae esi, dword [ebp - 0x50]
add esi, ecx
mov dword [ebp - 0x40], eax
push esi
call fcn.0040f0f0
add esp, 0xc
mov byte [esi + 2], 0
jmp 0x40385b
mov byte [ebp - 0x194], 0
lea ecx, [ebp - 0x50]
push dword [ebp - 0x194]
push 2
call fcn.00402df0
cmp dword [ebp - 0x3c], 0x10
lea ecx, [ebp - 0x190]
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40395a
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop word [eax + eax]
lea eax, [ebp - 0x164]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
lea edx, [eax + 1]
mov byte [ebp - 0x38], 0
nop dword [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4038b0
sub eax, edx
lea ecx, [ebp - 0x38]
push eax
lea eax, [ebp - 0x164]
push eax
call fcn.00402bb0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], eax
je 0x4038fc
movups xmm0, xmmword [ebp - 0x38]
mov dword [eax + 0x10], 0
mov edx, 0xf
mov byte [ebp - 0x38], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x28]
movq qword [eax + 0x10], xmm0
add dword [ebp - 0x1c], 0x18
jmp 0x40390c
lea ecx, [ebp - 0x38]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.0040aaa0
mov edx, dword [ebp - 0x24]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x403941
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403937
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b25
push edx
push ecx
call fcn.0040c1fd
add esp, 8
lea eax, [ebp - 0x190]
push eax
push esi
call edi
test eax, eax
jne 0x403890
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x194], eax
cmp edi, eax
je 0x4039e4
nop word [eax + eax]
push edi
lea ecx, [ebp - 0x38]
call fcn.00409fa0
cmp dword [ebx + 0x1c], 0x10
lea eax, [ebx + 8]
push dword [ebx + 0x18]
cmovae eax, dword [ebx + 8]
lea ecx, [ebp - 0x38]
cmp dword [ebp - 0x24], 0x10
mov esi, dword [ebp - 0x38]
mov edx, dword [ebp - 0x28]
cmovae ecx, esi
push eax
push ecx
call fcn.00402d00
add esp, 0xc
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x24]
jne 0x403a12
cmp eax, 0x10
jb 0x4039d9
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x4039cf
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b25
push ecx
push esi
call fcn.0040c1fd
add esp, 8
add edi, 0x18
cmp edi, dword [ebp - 0x194]
jne 0x403970
xor edi, edi
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb 0x403a53
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403a49
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b20
jmp 0x403a49
cmp eax, 0x10
jb 0x403a42
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x403a38
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b25
push ecx
push esi
call fcn.0040c1fd
add esp, 8
mov edi, 1
jmp 0x4039e6
push edx
push ecx
call fcn.0040c1fd
add esp, 8
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
test ecx, ecx
je 0x403ad0
mov edx, dword [ebp - 0x1c]
push ecx
call fcn.0040ad70
mov ecx, dword [ebp - 0x18]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x20]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x403ab1
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b2a
push ecx
push esi
call fcn.0040c1fd
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov edx, dword [ebx + 0x1c]
cmp edx, 0x10
jb 0x403b00
mov ecx, dword [ebx + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403af6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b2f
push edx
push ecx
call fcn.0040c1fd
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040c096
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040fee0
call fcn.0040fee0
call fcn.0040fee0
call fcn.0040fee0
int3