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

Disassembly:
sub esp, 0x760
push ebx
push ebp
push esi
mov dword [esp + 0xc], ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x25d]
mov byte [esp + 0x25c], 0
mov ebp, dword [esp + 0x774]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0x41
stosb byte es:[edi], al
xor eax, eax
lea edi, [esp + 0x25c]
rep stosd dword es:[edi], eax
push ebp
call esi
mov cl, byte [eax + ebp - 1]
mov ebx, 0x1002c374
cmp cl, 0x5c
jne 0x10004d4c
mov ebx, 0x1002f678
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x361]
mov byte [esp + 0x360], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebp
stosb byte es:[edi], al
call esi
mov esi, eax
sub esi, 2
test esi, esi
jle 0x10004da2
cmp byte [esi + ebp], 0x5c
je 0x10004d80
dec esi
test esi, esi
jg 0x10004d73
jmp 0x10004da2
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea edi, [esp + 0x360]
sub ecx, esi
add esi, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x778]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
stosw word es:[edi], ax
lea ecx, [esp + 0x360]
stosb byte es:[edi], al
push ecx
push edx
lea eax, [esp + 0x20]
push str._s_s_
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.10003830
push ebx
push ebp
lea edx, [esp + 0x264]
push str._s_s.
push edx
call esi
add esp, 0x10
lea eax, [esp + 0x11c]
lea ecx, [esp + 0x25c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x10004f33
cmp byte [esp + 0x148], 0x2e
je 0x10004f11
test byte [esp + 0x11c], 0x10
je 0x10004e8b
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x66d]
mov byte [esp + 0x66c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x148]
push edx
push ebx
stosb byte es:[edi], al
push ebp
lea eax, [esp + 0x678]
push str._s_s_s
push eax
call esi
add esp, 0x14
lea ecx, [esp + 0x18]
lea edx, [esp + 0x66c]
push ecx
mov ecx, dword [esp + 0x14]
push edx
call fcn.10004cf0
jmp 0x10004f11
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x465]
mov byte [esp + 0x464], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x148]
lea ecx, [esp + 0x464]
push eax
push ebx
push ebp
push str._s_s_s
push ecx
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x57d]
mov byte [esp + 0x57c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0x15c]
lea eax, [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x584]
push 0x1002c384
push ecx
call esi
add esp, 0x24
lea edx, [esp + 0x568]
lea eax, [esp + 0x464]
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x11c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10004e21
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x760
ret 8