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

Disassembly:
push ebp
lea ebp, [esp - 0x5dc]
sub esp, 0x65c
mov eax, dword [0x517774]
xor eax, ebp
mov dword [ebp + 0x5d8], eax
mov eax, dword [ebp + 0x5e4]
push edi
mov edi, dword [ebp + 0x5e8]
push edi
mov dword [ebp - 0x80], eax
call fcn.0043879e
pop ecx
test eax, eax
jne 0x4388e7
mov eax, 0x10b
jmp 0x438a92
push ebx
push esi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp + 0x4d5]
push ebx
push eax
mov byte [ebp + 0x4d4], bl
call fcn.00497680
push esi
lea eax, [ebp + 0x3d1]
push ebx
push eax
mov byte [ebp + 0x3d0], bl
call fcn.00497680
push esi
lea eax, [ebp + 0xc5]
push ebx
push eax
mov byte [ebp + 0xc4], bl
call fcn.00497680
push esi
lea eax, [ebp + 0x2cd]
push ebx
push eax
mov byte [ebp + 0x2cc], bl
call fcn.00497680
push esi
lea eax, [ebp + 0x1c9]
push ebx
push eax
mov byte [ebp + 0x1c8], bl
call fcn.00497680
push dword [ebp - 0x80]
inc esi
lea eax, [ebp + 0x2cc]
push esi
push eax
call fcn.00497fe1
lea eax, [ebp + 0x2cc]
add esp, 0x48
push eax
call fcn.00410cf0
push edi
lea eax, [ebp + 0x1c8]
push esi
push eax
call fcn.00497fe1
lea eax, [ebp + 0x1c8]
push eax
call fcn.00410cf0
lea eax, [ebp + 0x2cc]
push eax
push 0x4def30
lea eax, [ebp + 0xc4]
push esi
push eax
call fcn.00497562
add esp, 0x24
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x80], eax
cmp eax, 0xffffffff
jne 0x4389cb
push 0x12
pop eax
jmp 0x438a90
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4d76fc
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x438a5f
push 0x4de234
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x438a5f
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0x2cc]
push eax
push str._s_s
lea eax, [ebp + 0x4d4]
push esi
push eax
call fcn.00497562
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0x1c8]
push eax
push str._s_s
lea eax, [ebp + 0x3d0]
push esi
push eax
call fcn.00497562
add esp, 0x28
test byte [ebp - 0x7c], 0x10
je 0x438a42
cmp dword [ebp + 0x5ec], ebx
jne 0x438aa8
push ebx
lea eax, [ebp + 0x3d0]
push eax
lea eax, [ebp + 0x4d4]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x438ae8
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4389d1
call edi
cmp eax, 0x12
je 0x438a85
cmp eax, ebx
je 0x4389d1
mov ebx, eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [ebp + 0x5d8]
xor ecx, ebp
pop edi
call fcn.004974ba
add ebp, 0x5dc
leave
ret
push dword [ebp + 0x5ec]
lea eax, [ebp + 0x3d0]
push eax
lea eax, [ebp + 0x4d4]
push eax
call fcn.004388a7
mov esi, eax
push esi
lea eax, [ebp + 0x3d0]
push eax
lea eax, [ebp + 0x4d4]
push eax
push str.CopyDirectory___s___s__failed_with__d_n
push 8
push 0x519518
call fcn.00402450
add esp, 0x24
jmp 0x438b0f
call edi
mov esi, eax
push esi
lea eax, [ebp + 0x3d0]
push eax
lea eax, [ebp + 0x4d4]
push eax
push str.CopyFile___s___s__failed_with__d_n
push 8
push 0x519518
call fcn.00402450
add esp, 0x18
mov eax, esi
jmp 0x438a90