Function at 0x4564e0
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10a0
call fcn.005b5230
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x418], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.005b4de0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x410], dx
push 0x1fe
push 0
lea eax, [ebp - 0x40e]
push eax
call fcn.005b4de0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x618], cx
push 0x1fe
push 0
lea edx, [ebp - 0x616]
push edx
call fcn.005b4de0
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x618]
push ecx
call fcn.005b4dbe
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
push 0x647428
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x647438
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x868]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x86c], eax
cmp dword [ebp - 0x86c], 0xffffffff
jne 0x4565d5
cmp dword [ebp - 0x418], 0
setne al
jmp 0x456971
mov edx, 1
test edx, edx
je 0x45695a
movzx eax, word [ebp - 0x83c]
cmp eax, 0x2e
je 0x456930
movzx ecx, word [ebp - 0x83a]
test ecx, ecx
je 0x456930
movzx edx, word [ebp - 0x83a]
cmp edx, 0x2e
jne 0x45661c
movzx eax, word [ebp - 0x838]
test eax, eax
je 0x456930
mov ecx, dword [ebp - 0x868]
and ecx, 0x10
je 0x456723
xor edx, edx
mov word [ebp - 0xa78], dx
push 0x206
push 0
lea eax, [ebp - 0xa76]
push eax
call fcn.005b4de0
add esp, 0xc
lea ecx, [ebp - 0x83c]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x647444
lea eax, [ebp - 0xa78]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
jne 0x4566eb
xor edx, edx
mov word [ebp - 0xc80], dx
push 0x206
push 0
lea eax, [ebp - 0xc7e]
push eax
call fcn.005b4de0
add esp, 0xc
lea ecx, [ebp - 0x410]
push ecx
lea edx, [ebp - 0x83c]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x647450
lea ecx, [ebp - 0xc80]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea edx, [ebp - 0xc80]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4566eb
mov dword [ebp - 0x418], 1
lea eax, [ebp - 0xc80]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.005b4dbe
add esp, 8
jmp 0x45695a
movzx edx, byte [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0xa78]
push edx
call fcn.004564e0
add esp, 0x10
movzx eax, al
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
je 0x45671e
jmp 0x45695a
jmp 0x456930
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
je 0x456895
lea edx, [ebp - 0x83c]
push edx
call fcn.005b50b1
add esp, 4
mov dword [ebp - 0xc84], eax
lea eax, [ebp - 0x618]
push eax
call fcn.005b50b1
add esp, 4
mov dword [ebp - 0xc88], eax
cmp dword [ebp - 0xc84], 0
jle 0x456890
cmp dword [ebp - 0xc88], 0
jle 0x456890
mov ecx, dword [ebp - 0xc84]
cmp ecx, dword [ebp - 0xc88]
jl 0x456890
mov byte [ebp - 0xc89], 0
lea edx, [ebp - 0x618]
push edx
call fcn.005b86e0
add esp, 4
push eax
lea eax, [ebp - 0x83c]
push eax
call fcn.005b86e0
add esp, 4
push eax
call fcn.0041c6e0
add esp, 8
test eax, eax
je 0x456813
mov byte [ebp - 0xc89], 1
mov dword [ebp - 0xc90], 0
jmp 0x4567da
mov ecx, dword [ebp - 0xc90]
add ecx, 1
mov dword [ebp - 0xc90], ecx
mov edx, dword [ebp - 0xc90]
cmp edx, dword [ebp - 0xc88]
jge 0x456813
mov eax, dword [ebp - 0xc90]
movzx ecx, word [ebp + eax*2 - 0x83c]
mov edx, dword [ebp - 0xc90]
movzx eax, word [ebp + edx*2 - 0x618]
cmp ecx, eax
je 0x456811
mov byte [ebp - 0xc89], 0
jmp 0x456813
jmp 0x4567cb
movzx ecx, byte [ebp - 0xc89]
test ecx, ecx
je 0x456890
xor edx, edx
mov word [ebp - 0xe98], dx
push 0x206
push 0
lea eax, [ebp - 0xe96]
push eax
call fcn.005b4de0
add esp, 0xc
lea ecx, [ebp - 0x83c]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x647460
lea eax, [ebp - 0xe98]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0xe98]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x456890
mov dword [ebp - 0x418], 1
lea edx, [ebp - 0xe98]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.005b4dbe
add esp, 8
jmp 0x45695a
jmp 0x456930
lea ecx, [ebp - 0x410]
push ecx
call fcn.005b86e0
add esp, 4
push eax
lea edx, [ebp - 0x83c]
push edx
call fcn.005b86e0
add esp, 4
push eax
call fcn.005b51f3
add esp, 8
test eax, eax
jne 0x456930
xor eax, eax
mov word [ebp - 0x10a0], ax
push 0x206
push 0
lea ecx, [ebp - 0x109e]
push ecx
call fcn.005b4de0
add esp, 0xc
lea edx, [ebp - 0x83c]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x64746c
lea ecx, [ebp - 0x10a0]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x10a0]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x456930
mov dword [ebp - 0x418], 1
lea eax, [ebp - 0x10a0]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.005b4dbe
add esp, 8
jmp 0x45695a
lea edx, [ebp - 0x868]
push edx
mov eax, dword [ebp - 0x86c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0
jne 0x456955
jmp 0x45695a
jmp 0x4565d5
mov ecx, dword [ebp - 0x86c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x418], 0
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret