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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x5e
push 0
push 0
dec ecx
jne 0x4597bc
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x459c4c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x4640c4], 0
jne 0x459bb7
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00430c58
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x280]
mov ecx, 0x459c64
mov edx, dword [ebp - 4]
call fcn.00404c98
mov eax, dword [ebp - 0x280]
call fcn.00404c1c
push eax
call sub.kernel32.dll_FindFirstFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x459bb7
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x250]
mov ecx, 0x104
call fcn.00404bf0
push 0x459c68
mov eax, dword [ebp - 0x10]
call fcn.00404c1c
mov esi, eax
push esi
call sub.kernel32.dll_lstrcmpW
test eax, eax
je 0x459b9c
push 0x459c6c
push esi
call sub.kernel32.dll_lstrcmpW
test eax, eax
je 0x459b9c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x278]
push eax
call sub.kernel32.dll_FileTimeToLocalFileTime
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x18]
call fcn.00434f24
lea eax, [ebp - 0x284]
push eax
movzx eax, word [ebp - 0x26]
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 0x2a8], 0
movzx eax, word [ebp - 0x2a]
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 0x2a0], 0
movzx eax, word [ebp - 0x2c]
mov dword [ebp - 0x29c], eax
mov byte [ebp - 0x298], 0
movzx eax, word [ebp - 0x24]
mov dword [ebp - 0x294], eax
mov byte [ebp - 0x290], 0
movzx eax, word [ebp - 0x22]
mov dword [ebp - 0x28c], eax
mov byte [ebp - 0x288], 0
lea edx, [ebp - 0x2ac]
mov ecx, 4
mov eax, 0x459c7c
call fcn.00409338
mov edx, dword [ebp - 0x284]
lea eax, [ebp - 8]
call fcn.00404c0c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x268]
push eax
call sub.kernel32.dll_FileTimeToLocalFileTime
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x18]
call fcn.00434f24
lea eax, [ebp - 0x2b0]
push eax
movzx eax, word [ebp - 0x26]
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 0x2a8], 0
movzx eax, word [ebp - 0x2a]
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 0x2a0], 0
movzx eax, word [ebp - 0x2c]
mov dword [ebp - 0x29c], eax
mov byte [ebp - 0x298], 0
movzx eax, word [ebp - 0x24]
mov dword [ebp - 0x294], eax
mov byte [ebp - 0x290], 0
movzx eax, word [ebp - 0x22]
mov dword [ebp - 0x28c], eax
mov byte [ebp - 0x288], 0
lea edx, [ebp - 0x2ac]
mov ecx, 4
mov eax, 0x459c7c
call fcn.00409338
mov edx, dword [ebp - 0x2b0]
lea eax, [ebp - 0xc]
call fcn.00404c0c
test byte [ebp - 0x27c], 0x10
je 0x459ab0
lea edx, [ebp - 0x2b4]
mov eax, dword [ebp - 0x10]
call fcn.00408168
mov eax, dword [ebp - 0x2b4]
push eax
lea edx, [ebp - 0x2b8]
mov eax, edi
call fcn.00408168
mov eax, dword [ebp - 0x2b8]
pop edx
call fcn.00430c9c
test eax, eax
jle 0x459a67
lea eax, [ebp - 0x2c8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00404c98
mov eax, dword [ebp - 0x2c8]
lea edx, [ebp - 0x2c4]
call fcn.004322e8
lea eax, [ebp - 0x2c4]
mov edx, 0x459ca0
call fcn.004046d0
mov edx, dword [ebp - 0x2c4]
lea eax, [ebp - 0x2c0]
call fcn.00404c0c
push dword [ebp - 0x2c0]
push dword [ebp - 8]
push 0x459ca8
push dword [ebp - 0xc]
push 0x459ca8
push 0x459cb0
lea eax, [ebp - 0x2bc]
mov edx, 6
call fcn.00404d00
mov edx, dword [ebp - 0x2bc]
lea eax, [ebp - 0x1c]
call fcn.00404690
mov dx, 0x40a
mov eax, dword [ebp - 0x1c]
call fcn.00426250
lea edx, [ebp - 0x2cc]
mov eax, dword [ebp - 4]
call fcn.00408168
mov edx, dword [ebp - 0x2cc]
mov eax, 0x459cc8
call fcn.00430c9c
test eax, eax
jg 0x459b9c
lea eax, [ebp - 0x2d0]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00404c98
mov eax, dword [ebp - 0x2d0]
mov edx, edi
call fcn.004597b4
jmp 0x459b9c
mov esi, dword [ebp - 0x25c]
lea edx, [ebp - 0x2d4]
mov eax, dword [ebp - 0x10]
call fcn.00408168
mov eax, dword [ebp - 0x2d4]
push eax
lea edx, [ebp - 0x2d8]
mov eax, edi
call fcn.00408168
mov eax, dword [ebp - 0x2d8]
pop edx
call fcn.00430c9c
test eax, eax
jle 0x459b9c
lea eax, [ebp - 0x2e8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00404c98
mov eax, dword [ebp - 0x2e8]
lea edx, [ebp - 0x2e4]
call fcn.004322e8
lea eax, [ebp - 0x2e4]
mov edx, 0x459ca0
call fcn.004046d0
mov edx, dword [ebp - 0x2e4]
lea eax, [ebp - 0x2e0]
call fcn.00404c0c
push dword [ebp - 0x2e0]
push dword [ebp - 8]
push 0x459ca8
push dword [ebp - 0xc]
push 0x459ce4
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x2f0]
call fcn.00408608
mov edx, dword [ebp - 0x2f0]
lea eax, [ebp - 0x2ec]
call fcn.00404c0c
push dword [ebp - 0x2ec]
push 0x459ca8
lea eax, [ebp - 0x2dc]
mov edx, 7
call fcn.00404d00
mov edx, dword [ebp - 0x2dc]
lea eax, [ebp - 0x1c]
call fcn.00404690
mov dx, 0x40a
mov eax, dword [ebp - 0x1c]
call fcn.00426250
lea eax, [ebp - 0x27c]
push eax
push ebx
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x459825
push ebx
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459c56
lea eax, [ebp - 0x2f0]
call fcn.004043ec
lea eax, [ebp - 0x2ec]
mov edx, 2
call fcn.00404aa4
lea eax, [ebp - 0x2e4]
call fcn.004043ec
lea eax, [ebp - 0x2e0]
mov edx, 7
call fcn.00404aa4
lea eax, [ebp - 0x2c4]
call fcn.004043ec
lea eax, [ebp - 0x2c0]
mov edx, 4
call fcn.00404aa4
lea eax, [ebp - 0x2b0]
call fcn.004043ec
lea eax, [ebp - 0x284]
call fcn.004043ec
lea eax, [ebp - 0x280]
call fcn.00404a8c
lea eax, [ebp - 0x1c]
call fcn.004043ec
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404aa4
ret