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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445f78
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x45f4c8]
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 - 0x2ac], ecx
xor eax, eax
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push eax
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
lea eax, [ebp + 0x10]
mov dword [ebp - 0x14], 7
push eax
mov dword [ebp - 0x18], 0
call fcn.004040a0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x28]
cmp edx, 8
mov edi, dword [ebp - 0x18]
cmovae eax, esi
cmp word [eax + edi*2 - 2], 0x5c
jne 0x402555
cmp edx, 8
lea eax, [ebp - 0x28]
lea ecx, [edi - 1]
cmovae eax, esi
lea ecx, [eax + ecx*2]
lea eax, [ebp - 0x28]
cmovae eax, esi
test ecx, ecx
je 0x4024f1
sub ecx, eax
sar ecx, 1
cmp edi, ecx
jb 0x40254b
mov eax, edi
sub eax, ecx
cmp eax, 1
lea eax, [ebp - 0x28]
ja 0x40250e
cmp edx, 8
mov dword [ebp - 0x18], ecx
cmovae eax, esi
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x4024b2
cmp edx, 8
cmovae eax, esi
dec edi
lea ebx, [eax + ecx*2]
mov eax, edi
sub eax, ecx
je 0x402534
add eax, eax
push eax
lea eax, [ebx + 2]
push eax
push ebx
call fcn.0042f580
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov esi, dword [ebp - 0x28]
cmp edx, 8
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x28]
cmovae eax, esi
xor ecx, ecx
mov word [eax + edi*2], cx
jmp 0x4024b2
push str.invalid_string_position
call fcn.0042e9b6
push 0x4516d4
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.00403010
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x402570
mov eax, dword [eax]
lea ecx, [ebp - 0x2a8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp dword [ebp - 0x2c], 8
mov ebx, eax
jb 0x402591
push dword [ebp - 0x40]
call fcn.00420070
add esp, 4
mov esi, dword [ebp + 0xc]
xor eax, eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp ebx, 0xffffffff
je 0x4026c0
jmp 0x4025c0
mov ecx, 0x4516dc
lea eax, [ebp - 0x27c]
jmp 0x4025d0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4025f6
test dx, dx
je 0x4025f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4025f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4025d0
xor eax, eax
jmp 0x4025fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4026a3
mov eax, 0x4516e0
lea ecx, [ebp - 0x27c]
mov edi, edi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x402636
test dx, dx
je 0x402632
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x402636
add ecx, 4
add eax, 4
test dx, dx
jne 0x402610
xor eax, eax
jmp 0x40263b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4026a3
test byte [ebp - 0x2a8], 0x10
je 0x40269a
push 0x4516e8
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
call fcn.00403010
sub esp, 0x14
mov byte [ebp - 4], 2
lea edx, [ebp - 0x27c]
mov ecx, esp
push edx
mov edx, eax
call fcn.00403100
mov ecx, dword [ebp - 0x2ac]
add esp, 4
push esi
push edi
call fcn.00402450
mov byte [ebp - 4], 1
mov edi, eax
cmp dword [ebp - 0x44], 8
mov esi, edx
jb 0x4026a3
push dword [ebp - 0x58]
call fcn.00420070
add esp, 4
jmp 0x4026a3
add edi, dword [ebp - 0x288]
adc esi, 0
lea eax, [ebp - 0x2a8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4025c0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x14], 8
jb 0x4026d1
push dword [ebp - 0x28]
call fcn.00420070
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp + 0x24], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x4026f6
push dword [ebp + 0x10]
call fcn.00420070
add esp, 4
mov eax, edi
mov edx, esi
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.0042f51f
mov esp, ebp
pop ebp
ret 0x20