Function at 0x40f520
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 0x49b335
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x208
mov eax, dword [0x4c0008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 8]
xorps xmm0, xmm0
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x1d4], edi
mov dword [ebp - 0x1ac], 1
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [ebp - 0x1b4], edi
mov dword [ebp - 0x1e4], edx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
mov eax, accept
mov ecx, dword [edx + 0x10]
sub eax, ecx
mov dword [ebp - 0x1ac], 1
cmp eax, 2
jb 0x40fba9
cmp dword [edx + 0x14], 0x10
mov eax, edx
jb 0x40f5d3
mov eax, dword [edx]
push 2
push 0x4b901c
push ecx
push eax
push ecx
push dword [ebp - 0x1d4]
lea ecx, [ebp - 0x218]
call fcn.0040ee30
cmp dword [ebp - 0x204], 0x10
lea ecx, [ebp - 0x1a8]
lea eax, [ebp - 0x218]
mov esi, 0x21
cmovae eax, dword [ebp - 0x218]
push ecx
push eax
mov dword [ebp - 0x1ac], esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, dword [ebp - 0x204]
mov dword [ebp - 0x1b8], eax
cmp ecx, 0x10
jb 0x40f661
mov edx, dword [ebp - 0x218]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f651
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fbae
push ecx
push edx
call fcn.0041dd21
mov eax, dword [ebp - 0x1b8]
add esp, 8
mov dword [ebp - 0x208], 0
mov dword [ebp - 0x204], 0xf
mov byte [ebp - 0x218], 0
cmp eax, 0xffffffff
je 0x40fb82
nop word [eax + eax]
xorps xmm0, xmm0
mov dword [ebp - 0x1c0], 0
lea ecx, [ebp - 0x17c]
mov dword [ebp - 0x1bc], 0
movups xmmword [ebp - 0x1d0], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f6b7
sub ecx, edx
lea eax, [ebp - 0x17c]
push ecx
push eax
lea ecx, [ebp - 0x1d0]
call fcn.0040e870
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x1d0]
mov eax, dword [ebp - 0x1d0]
or esi, 2
cmp dword [ebp - 0x1bc], 0x10
mov edx, dword [ebp - 0x1c0]
push 1
cmovae ecx, eax
mov dword [ebp - 0x1ac], esi
push 0x4b9020
setae byte [ebp - 0x1ae]
mov dword [ebp - 0x1dc], eax
call fcn.0040f050
add esp, 8
test al, al
jne 0x40f7af
xorps xmm0, xmm0
mov dword [ebp - 0x1f0], 0
lea ecx, [ebp - 0x17c]
mov dword [ebp - 0x1ec], 0
movups xmmword [ebp - 0x200], xmm0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f750
sub ecx, edx
lea eax, [ebp - 0x17c]
push ecx
push eax
lea ecx, [ebp - 0x200]
call fcn.0040e870
mov edi, dword [ebp - 0x1ec]
lea ecx, [ebp - 0x200]
mov edx, dword [ebp - 0x1f0]
or esi, 4
cmp edi, 0x10
mov dword [ebp - 0x1ac], esi
mov esi, dword [ebp - 0x200]
push 2
cmovae ecx, esi
push 0x4b9024
call fcn.0040f050
add esp, 8
test al, al
jne 0x40f7bb
mov byte [ebp - 0x1ad], 1
jmp 0x40f7c2
mov edi, dword [ebp - 0x1ec]
mov esi, dword [ebp - 0x200]
mov byte [ebp - 0x1ad], 0
mov eax, dword [ebp - 0x1ac]
test al, 4
je 0x40f80b
and eax, 0xfffffffb
mov dword [ebp - 0x1ac], eax
cmp edi, 0x10
jb 0x40f80b
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x40f7fb
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fbae
push ecx
push esi
call fcn.0041dd21
mov eax, dword [ebp - 0x1ac]
add esp, 8
mov dword [ebp - 4], 0
test al, 2
je 0x40f85d
and eax, 0xfffffffd
cmp byte [ebp - 0x1ae], 0
mov dword [ebp - 0x1ac], eax
je 0x40f85d
mov ecx, dword [ebp - 0x1bc]
mov edx, dword [ebp - 0x1dc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f853
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fbae
push ecx
push edx
call fcn.0041dd21
add esp, 8
cmp byte [ebp - 0x1ad], 0
je 0x40fb4f
xorps xmm0, xmm0
mov dword [ebp - 0x58], 0
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x54], 0xf
movups xmmword [ebp - 0x4c], xmm0
mov byte [ebp - 0x68], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov edx, dword [ebp - 0x1e4]
mov eax, accept
mov dword [ebp - 4], 2
mov ecx, dword [edx + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x40fba9
cmp dword [edx + 0x14], 0x10
mov eax, edx
jb 0x40f8d9
mov eax, dword [edx]
push 1
push 0x4b8e6c
push ecx
push eax
push ecx
push dword [ebp - 0x1d4]
lea ecx, [ebp - 0x1d0]
call fcn.0040ee30
mov esi, dword [ebp - 0x1ac]
or esi, 8
mov dword [ebp - 0x1ac], esi
lea eax, [ebp - 0x17c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x1d0]
call fcn.0040e0e0
or esi, 0x10
mov dword [ebp - 0x1ac], esi
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x54]
movq qword [ebp - 0x1e0], xmm1
movups xmmword [ebp - 0x1f8], xmm0
cmp ecx, 0x10
jb 0x40f98d
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f974
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fbae
push ecx
push edx
call fcn.0041dd21
movups xmm0, xmmword [ebp - 0x1f8]
add esp, 8
movq xmm1, qword [ebp - 0x1e0]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1bc]
movq qword [ebp - 0x58], xmm1
movups xmmword [ebp - 0x68], xmm0
cmp ecx, 0x10
jb 0x40f9d4
mov edx, dword [ebp - 0x1d0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f9ca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fbae
push ecx
push edx
call fcn.0041dd21
add esp, 8
lea ecx, [ebp - 0x17c]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f9e0
sub ecx, edx
lea eax, [ebp - 0x17c]
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.0040e310
test byte [ebp - 0x1a8], 0x10
je 0x40fa0e
mov dword [ebp - 0x50], 0x10
jmp 0x40fad2
push ecx
push 0x4b9020
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x50], 1
call fcn.004107b0
cmp eax, 0xffffffff
je 0x40fad2
lea edx, [eax + 1]
mov dword [ebp - 0x1c0], 0
mov eax, dword [ebp - 0x24]
xorps xmm0, xmm0
mov dword [ebp - 0x1bc], 0
movups xmmword [ebp - 0x1d0], xmm0
cmp eax, edx
jb 0x40fba4
sub eax, edx
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push ecx
add eax, edx
lea ecx, [ebp - 0x1d0]
push eax
call fcn.0040e870
mov ecx, dword [ebp - 0x38]
or esi, 0x40
mov dword [ebp - 0x1ac], esi
cmp ecx, 0x10
jb 0x40faba
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40fab0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fbae
push ecx
push edx
call fcn.0041dd21
add esp, 8
movups xmm0, xmmword [ebp - 0x1d0]
movups xmmword [ebp - 0x4c], xmm0
movq xmm0, qword [ebp - 0x1c0]
movq qword [ebp - 0x3c], xmm0
mov eax, dword [ebp - 0x1b4]
mov edi, dword [eax + 4]
cmp edi, dword [eax + 8]
je 0x40fb2f
lea eax, [ebp - 0x68]
mov dword [ebp - 0x1dc], edi
push eax
mov ecx, edi
call fcn.0040e210
mov byte [ebp - 4], 4
lea ecx, [edi + 0x1c]
mov eax, dword [ebp - 0x50]
mov dword [edi + 0x18], eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0040e210
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 5
push eax
lea ecx, [edi + 0x34]
call fcn.0040e210
mov edi, dword [ebp - 0x1b4]
lea ecx, [ebp - 0x68]
add dword [edi + 4], 0x4c
mov byte [ebp - 4], 0
call fcn.0040f0c0
jmp 0x40fb5b
lea ecx, [ebp - 0x68]
push ecx
push edi
mov ecx, eax
call fcn.00410a10
mov edi, dword [ebp - 0x1b4]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0
call fcn.0040f0c0
jmp 0x40fb5b
mov esi, dword [ebp - 0x1ac]
mov edi, dword [ebp - 0x1b4]
lea eax, [ebp - 0x1a8]
push eax
push dword [ebp - 0x1b8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40f690
push dword [ebp - 0x1b8]
call dword [sym.imp.KERNEL32.dll_FindClose]
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.0041d890
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.0040e480
call fcn.00407270
call fcn.0047a537
int3