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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441788
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x4563d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c0], ecx
xor eax, eax
mov dword [ebp - 4], eax
xor ecx, ecx
push eax
lea edx, [ebp + 8]
mov dword [ebp - 0x20], eax
mov word [ebp - 0x30], cx
push edx
or eax, 0xffffffff
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
call fcn.004043e0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x30]
mov ecx, edi
cmp ebx, 8
jae 0x402ac0
lea ecx, [ebp - 0x30]
cmp word [ecx + eax*2 - 2], 0x5c
lea ecx, [ecx + eax*2 - 2]
jne 0x402b5c
mov ecx, edi
cmp ebx, 8
jae 0x402ada
lea ecx, [ebp - 0x30]
lea ecx, [ecx + eax*2 - 2]
mov edx, edi
cmp ebx, 8
jae 0x402ae8
lea edx, [ebp - 0x30]
test ecx, ecx
je 0x402af0
sub ecx, edx
sar ecx, 1
mov esi, 1
cmp eax, ecx
jb 0x402b52
mov edx, eax
sub edx, ecx
cmp edx, esi
jae 0x402b0a
mov esi, edx
test esi, esi
je 0x402ab3
mov edi, dword [ebp - 0x30]
cmp ebx, 8
jae 0x402b4d
lea edi, [ebp - 0x30]
mov edx, edi
sub eax, esi
sub eax, ecx
add eax, eax
push eax
lea eax, [esi + ecx]
lea eax, [edi + eax*2]
push eax
lea ecx, [edx + ecx*2]
push ecx
call fcn.0042d550
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x30]
sub eax, esi
add esp, 0xc
cmp dword [ebp - 0x1c], 8
mov dword [ebp - 0x20], eax
jae 0x402b42
lea ecx, [ebp - 0x30]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x402aad
mov edx, dword [ebp - 0x30]
jmp 0x402b14
push str.invalid_string_position
call fcn.0042c66e
push 0x4494fc
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x4c]
push ecx
call fcn.00403ae0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x402b79
mov eax, dword [eax]
lea edx, [ebp - 0x2bc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, 8
mov esi, eax
cmp dword [ebp - 0x38], edi
jb 0x402b9f
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0042d224
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], cx
cmp esi, 0xffffffff
jne 0x402bf9
cmp dword [ebp - 0x1c], edi
jb 0x402bc9
mov edx, dword [ebp - 0x30]
push edx
call fcn.0042d224
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
cmp dword [ebp + 0x1c], edi
jb 0x402bee
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042d224
add esp, 4
mov eax, dword [ebp + 0x24]
mov edx, dword [ebp + 0x28]
jmp 0x402d46
mov ebx, dword [ebp + 0x28]
mov edi, dword [ebp + 0x24]
nop
mov ecx, 0x449504
lea eax, [ebp - 0x290]
jmp 0x402c10
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402c36
test dx, dx
je 0x402c32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402c36
add eax, 4
add ecx, 4
test dx, dx
jne 0x402c10
xor eax, eax
jmp 0x402c3b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402cea
mov ecx, 0x449508
lea eax, [ebp - 0x290]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402c76
test dx, dx
je 0x402c72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402c76
add eax, 4
add ecx, 4
test dx, dx
jne 0x402c50
xor eax, eax
jmp 0x402c7b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402cea
test byte [ebp - 0x2bc], 0x10
je 0x402ce1
push ebx
push edi
push 0x449510
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x68]
push eax
call fcn.00403ae0
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x2c4], esp
push eax
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 2
call fcn.00403bd0
mov ecx, dword [ebp - 0x2c0]
add esp, 4
call fcn.00402a50
mov byte [ebp - 4], 1
cmp dword [ebp - 0x54], 8
mov edi, eax
mov ebx, edx
jb 0x402cea
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.0042d224
add esp, 4
jmp 0x402cea
add edi, dword [ebp - 0x29c]
adc ebx, 0
lea edx, [ebp - 0x2bc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402c00
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 8
cmp dword [ebp - 0x1c], esi
jb 0x402d1d
mov eax, dword [ebp - 0x30]
push eax
call fcn.0042d224
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], cx
cmp dword [ebp + 0x1c], esi
jb 0x402d42
mov edx, dword [ebp + 8]
push edx
call fcn.0042d224
add esp, 4
mov eax, edi
mov edx, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042d215
mov esp, ebp
pop ebp
ret 0x24