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

Disassembly:
mov eax, 0x44b304
call fcn.00449da8
sub esp, 0x2b0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov bl, cl
lea ecx, [ebp - 0x4c]
call fcn.004021b9
or dword [ebp - 0x18], 0xffffffff
test bl, bl
je 0x40549c
mov edx, 0x4585fc
lea ecx, [ebp + 0x20]
call fcn.00406497
test al, al
je 0x40549c
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 8]
push eax
call fcn.00405d49
lea ecx, [ebp - 0x34]
call fcn.00412c75
add esp, 0x18
push eax
lea ecx, [ebp + 0x20]
call fcn.00405c7f
lea ecx, [ebp - 0x34]
call fcn.004034ef
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 8]
push eax
call fcn.00405d49
lea ecx, [ebp - 0x34]
call fcn.00412cb1
add esp, 0x18
push eax
lea ecx, [ebp + 0x20]
call fcn.00405c6d
lea ecx, [ebp - 0x34]
call fcn.004034ef
push 0x458688
lea ecx, [ebp + 8]
call fcn.00405c64
and dword [ebp - 4], 0
lea eax, [ebp - 0x2b4]
push eax
push 0x458668
lea edx, [ebp + 8]
lea ecx, [ebp - 0x34]
call fcn.0040632d
pop ecx
mov ecx, eax
call fcn.00404386
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x34]
call fcn.004034ef
cmp esi, 0xffffffff
jne 0x405524
mov dword [ebp - 0x1c], 2
push 0x460d08
lea eax, [ebp - 0x1c]
push eax
call fcn.0042db64
lea eax, [ebp - 0x2b4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x405687
cmp byte [0x464a71], 0
jne 0x4056c9
test byte [ebp - 0x2b4], 0x10
je 0x405631
mov ecx, 0x4585a4
lea eax, [ebp - 0x288]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405585
test dx, dx
je 0x405581
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405585
add eax, 4
add ecx, 4
test dx, dx
jne 0x40555f
xor eax, eax
jmp 0x40558a
sbb eax, eax
or eax, 1
test eax, eax
je 0x405524
mov ecx, 0x45868c
lea eax, [ebp - 0x288]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4055bf
test dx, dx
je 0x4055bb
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4055bf
add eax, 4
add ecx, 4
test dx, dx
jne 0x405599
xor eax, eax
jmp 0x4055c4
sbb eax, eax
or eax, 1
test eax, eax
je 0x405524
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x64]
call fcn.004034f9
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x34]
call fcn.00406430
pop ecx
lea ecx, [ebp - 0x64]
call fcn.004034ef
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 0x38]
push eax
call fcn.004021d0
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 0x20]
push eax
call fcn.00405d49
sub esp, 0x18
mov ecx, esp
lea eax, [ebp - 0x34]
push eax
call fcn.00405d49
mov cl, bl
call fcn.00405439
add esp, 0x48
lea ecx, [ebp - 0x34]
call fcn.004034ef
jmp 0x405524
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 0x38]
push eax
call fcn.004021d0
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 0x20]
push eax
call fcn.00405d49
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x34]
call fcn.004034f9
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x64]
call fcn.00406430
sub esp, 0x14
mov ecx, esp
push eax
call fcn.00405cf2
mov cl, bl
call fcn.004056fc
add esp, 0x48
lea ecx, [ebp - 0x64]
call fcn.004034ef
jmp 0x405624
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x4c]
call fcn.00402081
lea ecx, [ebp + 8]
call fcn.004034ef
lea ecx, [ebp + 0x20]
call fcn.004034ef
lea ecx, [ebp + 0x38]
call fcn.00402081
mov al, 1
jmp 0x4056eb
lea ecx, [ebp - 0x4c]
call fcn.00402081
lea ecx, [ebp + 8]
call fcn.004034ef
lea ecx, [ebp + 0x20]
call fcn.004034ef
lea ecx, [ebp + 0x38]
call fcn.00402081
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret