Function at 0x408730
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414aac
mov eax, dword fs:[0]
push eax
sub esp, 0x4e0
mov eax, dword [0x41b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4e8], edx
mov edi, ecx
mov dword [ebp - 0x4e4], edi
mov dword [ebp - 0x4e0], edi
mov dword [ebp - 0x4ec], edi
mov dword [ebp - 0x4dc], 1
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
add eax, ecx
mov dword [ebp - 0x4dc], 1
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x23c]
call fcn.004096b0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x23c]
cmp dword [ebp - 0x228], 8
mov edx, 0x104
mov esi, dword [ebp - 0x23c]
cmovae eax, esi
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x4d8], eax
lea eax, [ebp + 8]
jb 0x40881e
mov eax, dword [ebp + 8]
test eax, eax
je 0x4088c1
mov ebx, edx
cmp word [eax], 0
je 0x40882e
add eax, 2
sub ebx, 1
jne 0x408820
mov eax, edx
mov ecx, ebx
sub eax, ebx
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [ebp - 0x4e0], ecx
mov ecx, dword [ebp - 0x228]
test ebx, ebx
je 0x4088c1
cmp dword [ebp - 0x4e0], 0x101
jbe 0x4088c1
cmp ecx, 8
jb 0x40888a
lea ecx, [ecx*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x408880
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408e45
push ecx
push esi
call fcn.0041342f
add esp, 8
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
cmp eax, 0x10
jb 0x408a15
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x4088ba
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408e45
push edx
push ecx
jmp 0x408a0d
lea ecx, [ebp - 0x218]
mov ebx, edx
mov eax, ecx
sub dword [ebp - 0x4d8], eax
mov edi, dword [ebp - 0x4d8]
nop word [eax + eax]
lea eax, [ebx + 0x7ffffefa]
test eax, eax
je 0x4088fe
movzx eax, word [edi + ecx]
test ax, ax
je 0x4088fe
mov word [ecx], ax
add ecx, 2
sub ebx, 1
jne 0x4088e0
mov edi, dword [ebp - 0x4e4]
lea eax, [ecx - 2]
test ebx, ebx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov ecx, edx
lea eax, [ebp - 0x218]
nop dword [eax]
cmp word [eax], 0
je 0x40892e
add eax, 2
sub ecx, 1
jne 0x408920
mov eax, edx
mov ebx, ecx
sub eax, ecx
neg ebx
sbb ebx, ebx
and ebx, eax
test ecx, ecx
je 0x408984
lea ecx, [ebp - 0x218]
lea ecx, [ecx + ebx*2]
sub edx, ebx
je 0x408977
mov edi, dword [ebp - 0x4e8]
mov eax, 0x7ffffffe
sub edi, ecx
test eax, eax
je 0x408971
movzx ebx, word [edi + ecx]
test bx, bx
je 0x408971
mov word [ecx], bx
dec eax
add ecx, 2
sub edx, 1
jne 0x408958
mov edi, dword [ebp - 0x4e4]
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x4d4]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x4d8], eax
cmp eax, 0xffffffff
jne 0x408a33
mov edx, dword [ebp - 0x228]
cmp edx, 8
jb 0x4089e1
lea edx, [edx*2 + 2]
mov eax, esi
cmp edx, 0x1000
jb 0x4089d7
mov esi, dword [eax - 4]
add edx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408e45
push edx
push esi
call fcn.0041342f
add esp, 8
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x408a15
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408a0b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408e45
push ecx
push edx
call fcn.0041342f
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412ed8
mov esp, ebp
pop ebp
ret
test byte [ebp - 0x4d4], 0x10
je 0x408c53
cmp byte [ebp + 0x20], 0
je 0x408dae
lea ecx, [ebp - 0x4a8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408a53
mov ebx, dword [ebp - 0x22c]
sub ecx, edx
mov eax, 0x7ffffffe
sar ecx, 1
sub eax, ebx
cmp eax, ecx
jb 0x408e4b
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x4a8]
cmovae eax, esi
push ecx
push ebx
push eax
push ecx
push dword [ebp - 0x4ec]
lea ecx, [ebp - 0x254]
call fcn.00409b10
or dword [ebp - 0x4dc], 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x254]
cmp dword [ebp - 0x240], 8
mov eax, dword [ebp - 0x244]
cmovae ecx, dword [ebp - 0x254]
setae bl
test bl, bl
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x254]
cmovne ecx, dword [ebp - 0x254]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x284]
call fcn.004097d0
push 1
sub esp, 0x18
mov byte [ebp - 4], 4
lea eax, [ebp - 0x284]
mov ecx, esp
push eax
call fcn.004038e0
mov edx, dword [ebp - 0x4e8]
lea ecx, [ebp - 0x224]
call fcn.00408730
add esp, 0x1c
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x224]
mov ebx, dword [ebp - 0x220]
cmp esi, ebx
je 0x408bb5
nop
push esi
lea ecx, [ebp - 0x26c]
call fcn.004038e0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x26c]
mov eax, dword [edi + 4]
push ecx
cmp eax, dword [edi + 8]
je 0x408b5c
mov ecx, eax
call fcn.004038e0
add dword [edi + 4], 0x18
jmp 0x408b64
push eax
mov ecx, edi
call fcn.0040a5a0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x258]
cmp edx, 0x10
jb 0x408ba2
mov eax, dword [ebp - 0x26c]
inc edx
mov ecx, eax
cmp edx, 0x1000
jb 0x408b98
mov eax, dword [ecx - 4]
add edx, 0x23
sub ecx, eax
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x408e45
push edx
push eax
call fcn.0041342f
add esp, 8
add esi, 0x18
cmp esi, ebx
jne 0x408b30
mov ebx, dword [ebp - 0x220]
mov esi, dword [ebp - 0x224]
mov byte [ebp - 4], 4
test esi, esi
je 0x408c35
push ecx
mov edx, ebx
mov ecx, esi
call fcn.004099a0
mov ecx, dword [ebp - 0x21c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x224]
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 0x408c0d
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408e45
push ecx
push esi
call fcn.0041342f
add esp, 8
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x270]
cmp ecx, 0x10
jb 0x408d5e
mov edx, dword [ebp - 0x284]
jmp 0x408d35
lea ecx, [ebp - 0x4a8]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408c60
mov ebx, dword [ebp - 0x22c]
sub ecx, edx
mov eax, 0x7ffffffe
sar ecx, 1
sub eax, ebx
cmp eax, ecx
jb 0x408e4b
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x4a8]
cmovae eax, esi
push ecx
push ebx
push eax
push ecx
push dword [ebp - 0x4ec]
lea ecx, [ebp - 0x254]
call fcn.00409b10
or dword [ebp - 0x4dc], 2
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x254]
cmp dword [ebp - 0x240], 8
mov eax, dword [ebp - 0x244]
cmovae ecx, dword [ebp - 0x254]
setae bl
test bl, bl
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x254]
cmovne ecx, dword [ebp - 0x254]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x26c]
call fcn.004097d0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x26c]
mov eax, dword [edi + 4]
push ecx
cmp eax, dword [edi + 8]
je 0x408d18
mov ecx, eax
call fcn.004038e0
add dword [edi + 4], 0x18
jmp 0x408d20
push eax
mov ecx, edi
call fcn.0040a5a0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x258]
cmp ecx, 0x10
jb 0x408d5e
mov edx, dword [ebp - 0x26c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408d54
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408e45
push ecx
push edx
call fcn.0041342f
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x240]
cmp ecx, 8
jb 0x408da2
mov edx, dword [ebp - 0x254]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408d98
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408e45
push ecx
push edx
call fcn.0041342f
add esp, 8
mov esi, dword [ebp - 0x23c]
mov eax, dword [ebp - 0x4d8]
lea ecx, [ebp - 0x4d4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x408dcb
mov eax, dword [ebp - 0x4d8]
jmp 0x408a33
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x4d8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x228]
cmp edx, 8
jb 0x408e13
lea edx, [edx*2 + 2]
mov eax, esi
cmp edx, 0x1000
jb 0x408e09
mov esi, dword [eax - 4]
add edx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408e45
push edx
push esi
call fcn.0041342f
add esp, 8
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x408a15
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408a0b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408a0b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.00401480
int3