Function at 0x539319
Capabilities:
Enumerate files on windows

Disassembly:
push 0x628
mov eax, 0x56703a
call fcn.004cd176
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push esi
mov dword [ebp - 0x634], eax
call fcn.00505376
test al, al
jne 0x539365
push esi
push str.GetDirectories:_search_path__s_does_not_exist
push 0x22
lea ecx, [ebp - 0x630]
call fcn.004c423f
push 0x5d6094
lea eax, [ebp - 0x630]
push eax
call fcn.004cea74
push dword [ebp - 0x634]
push edi
push dword [edi + 4]
push dword [edi]
call fcn.00412174
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 4], eax
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ecx
cmp eax, esi
je 0x5393a2
push 0xffffffffffffffff
push ecx
push esi
mov ecx, eax
call fcn.0040799b
push 0x56d030
lea ecx, [ebp - 0x40]
call fcn.00406337
push 1
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00406e2b
mov bl, al
mov byte [ebp - 4], 0
push 0
neg bl
lea ecx, [ebp - 0x40]
push 1
sbb bl, bl
call fcn.0040779d
add bl, 1
je 0x539405
push 0x56d030
lea ecx, [ebp - 0x40]
call fcn.00406337
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004077ef
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0040779d
push 0xffffffffffffffff
push 0
push dword [ebp - 0x634]
lea ecx, [ebp - 0x28]
call fcn.004077ef
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x634], ebx
cmp ebx, 0xffffffff
jne 0x53946d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x53957c
cmp eax, 2
je 0x53957c
push str.directory_search_failed
push eax
push 0xf
lea ecx, [ebp - 0x630]
call fcn.005150b6
jmp 0x539354
push 0x58c3d4
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x53955f
push 0x5c70bc
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x53955f
test byte [ebp - 0x2a8], 0x10
je 0x53955f
push esi
lea ecx, [ebp - 0x40]
call fcn.004062e4
push 0x56d030
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.00406337
push 1
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
call fcn.00406e2b
mov bl, al
mov byte [ebp - 4], 3
push 0
neg bl
lea ecx, [ebp - 0x58]
push 1
sbb bl, bl
call fcn.0040779d
add bl, 1
je 0x539521
push 0x56d030
lea ecx, [ebp - 0x58]
call fcn.00406337
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.004077ef
push 0
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.0040779d
lea eax, [ebp - 0x27c]
push eax
call fcn.00407e75
pop ecx
push eax
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x40]
call fcn.004078f8
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.0051b459
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0040779d
mov ebx, dword [ebp - 0x634]
lea eax, [ebp - 0x2a8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x53946d
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040779d
call fcn.004cd128
ret 0xc