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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6ac
mov eax, dword [0x4b7f10]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x68c], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x68c]
push eax
push edi
mov dword [ebp - 0x6a4], ebx
mov dword [ebp - 0x6a8], edi
call fcn.00403721
cmp dword [ebp - 0x68c], 0
pop ecx
pop ecx
jne 0x4038fa
push edi
call fcn.00403753
pop ecx
push ebx
lea ecx, [ebp - 0x434]
call fcn.004018f6
mov eax, dword [ebp - 0x420]
dec eax
push eax
lea ecx, [ebp - 0x434]
call fcn.00412486
cmp word [eax], 0x5c
je 0x40392f
push 0x4a7b78
lea ecx, [ebp - 0x434]
call fcn.0040197d
push 0x4a7cbc
lea ecx, [ebp - 0x434]
call fcn.0040197d
cmp dword [ebp - 0x41c], 8
mov eax, dword [ebp - 0x430]
jae 0x403954
lea eax, [ebp - 0x430]
lea ecx, [ebp - 0x688]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x690], eax
cmp eax, 0xffffffff
jne 0x403990
xor esi, esi
inc esi
push 0
push 1
lea ecx, [ebp - 0x434]
call fcn.00401a58
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046cc2a
leave
ret
mov edi, 0x208
push edi
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0046cbb0
add esp, 0xc
push edi
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.0046cbb0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push 0x4a7b20
lea eax, [ebp - 0x65c]
push eax
call edi
test eax, eax
je 0x403b43
push 0x4a7b70
lea eax, [ebp - 0x65c]
push eax
call edi
test eax, eax
je 0x403b43
lea eax, [ebp - 0x65c]
push eax
push dword [ebp - 0x6a4]
lea eax, [ebp - 0x210]
push eax
call ebx
lea eax, [ebp - 0x65c]
push eax
push dword [ebp - 0x6a8]
lea eax, [ebp - 0x418]
push eax
call ebx
test byte [ebp - 0x688], 0x10
je 0x403a44
push 1
push esi
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004038a9
add esp, 0x10
jmp 0x403b43
xor edi, edi
cmp dword [ebp + 0x14], edi
jne 0x403a72
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x68c], edi
call fcn.004036ef
pop ecx
pop ecx
cmp dword [ebp - 0x68c], edi
jne 0x403b43
cmp esi, edi
je 0x403b24
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x403b24
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push esi
push dword [esi + 0xc]
lea ecx, [ebp - 0x698]
mov edi, eax
call fcn.00403dfb
jmp 0x403afd
lea ecx, [ebp - 0x698]
call fcn.0040e19a
cmp dword [eax + 0x18], 8
jb 0x403ac4
mov eax, dword [eax + 4]
jmp 0x403ac7
add eax, 4
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x403b43
xor eax, eax
cmp dword [ebp + 0x14], eax
sete al
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00403b71
add esp, 0xc
lea ecx, [ebp - 0x698]
call fcn.00403d8e
push esi
push dword [esi + 0x10]
lea ecx, [ebp - 0x6a0]
call fcn.00403dfb
lea eax, [ebp - 0x6a0]
push eax
lea ecx, [ebp - 0x698]
call fcn.00403dbd
test al, al
je 0x403aae
jmp 0x403b43
xor eax, eax
cmp dword [ebp + 0x14], edi
sete al
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00403b71
add esp, 0xc
lea eax, [ebp - 0x688]
push eax
push dword [ebp - 0x690]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4039bf
push dword [ebp - 0x690]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
jmp 0x403970