Function at 0x598d30
Capabilities:
Copy file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa7c
mov eax, dword [0x673f64]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0xa75], 1
mov dword [ebp - 0xa7c], 0xffffffff
push 0x63097c
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x61c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x630980
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0xa74]
push ecx
lea edx, [ebp - 0x61c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa7c], eax
cmp dword [ebp - 0xa7c], 0xffffffff
jne 0x598daf
mov byte [ebp - 0xa75], 0
jmp 0x59903a
mov eax, dword [ebp + 8]
push eax
call fcn.00597920
mov ecx, dword [ebp + 0xc]
push ecx
push 0x104
lea edx, [ebp - 0x414]
push edx
call fcn.005b1d6f
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call fcn.005b1d6f
add esp, 0xc
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x414]
push ecx
push 0x104
lea edx, [ebp - 0x61c]
push edx
call fcn.005b1d6f
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea ecx, [ebp - 0x824]
push ecx
call fcn.005b1d6f
add esp, 0xc
mov byte [ebp - 0xa76], 1
movzx edx, byte [ebp - 0xa76]
test edx, edx
je 0x599024
lea eax, [ebp - 0xa74]
push eax
mov ecx, dword [ebp - 0xa7c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x598feb
mov edx, 2
imul eax, edx, 0
movzx ecx, word [ebp + eax - 0xa48]
cmp ecx, 0x2e
jne 0x598ebd
mov edx, 2
shl edx, 0
movzx eax, word [ebp + edx - 0xa48]
test eax, eax
je 0x598ebb
mov ecx, 2
shl ecx, 0
movzx edx, word [ebp + ecx - 0xa48]
cmp edx, 0x2e
jne 0x598ebd
mov eax, 2
shl eax, 1
movzx ecx, word [ebp + eax - 0xa48]
test ecx, ecx
jne 0x598ebd
jmp 0x598e3f
lea edx, [ebp - 0xa48]
push edx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0xa48]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [ebp - 0xa74]
and eax, 0x10
je 0x598f77
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.00598d30
movzx eax, al
test eax, eax
jne 0x598f33
mov ecx, dword [ebp - 0xa7c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0xa7c], 0xffffffff
mov byte [ebp - 0xa75], 0
jmp 0x599024
lea edx, [ebp - 0x20c]
push edx
call fcn.00597920
lea eax, [ebp - 0x61c]
push eax
push 0x104
lea ecx, [ebp - 0x414]
push ecx
call fcn.005b1d6f
add esp, 0xc
lea edx, [ebp - 0x824]
push edx
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.005b1d6f
add esp, 0xc
jmp 0x598fe9
push 0
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x598fb3
mov eax, dword [ebp - 0xa7c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0xa7c], 0xffffffff
mov byte [ebp - 0xa75], 0
jmp 0x599024
lea ecx, [ebp - 0x61c]
push ecx
push 0x104
lea edx, [ebp - 0x414]
push edx
call fcn.005b1d6f
add esp, 0xc
lea eax, [ebp - 0x824]
push eax
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call fcn.005b1d6f
add esp, 0xc
jmp 0x59901f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x598fff
mov byte [ebp - 0xa76], 0
jmp 0x59901f
mov edx, dword [ebp - 0xa7c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0xa7c], 0xffffffff
mov byte [ebp - 0xa75], 0
jmp 0x599024
jmp 0x598e3f
cmp dword [ebp - 0xa7c], 0xffffffff
je 0x59903a
mov eax, dword [ebp - 0xa7c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [ebp - 0xa75]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058a7e9
mov esp, ebp
pop ebp
ret 8