Function at 0x473715
Capabilities:
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51efc9
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x59d300]
xor eax, esp
mov dword [esp + 0x2f8], eax
push ebx
push esi
push edi
mov eax, dword [0x59d300]
xor eax, esp
push eax
lea eax, [esp + 0x310]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [esp + 0x18], edi
cmp dword [eax + 0x18], 8
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], eax
jb 0x473774
mov eax, dword [eax + 4]
jmp 0x473777
add eax, 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x473797
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x473797
xor al, al
jmp 0x473a15
push dword [esp + 0x1c]
lea esi, [esp + 0x80]
mov byte [esp + 0x1b], 1
call fcn.0040be1c
mov dword [esp + 0x318], edi
mov edi, dword [esp + 0x90]
dec edi
mov eax, esi
call fcn.004241ce
cmp word [eax], 0x5c
je 0x4737d5
push 0x5418b4
mov eax, esi
push eax
call fcn.0040b547
push 0xffffffffffffffff
push 0
mov eax, ebx
lea ecx, [esp + 0x84]
call fcn.0040b405
mov eax, dword [esp + 0x80]
push 8
pop ebx
cmp dword [esp + 0x94], ebx
jae 0x473801
lea eax, [esp + 0x80]
lea ecx, [esp + 0xb4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x4739f7
cmp word [esp + 0xe0], 0x2e
je 0x4739dd
push dword [esp + 0x1c]
lea esi, [esp + 0x48]
call fcn.0040be1c
mov byte [esp + 0x318], 1
mov edi, dword [esp + 0x58]
dec edi
mov eax, esi
call fcn.004241ce
cmp word [eax], 0x5c
je 0x473860
push 0x5418b4
mov eax, esi
push eax
call fcn.0040b547
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0040b547
push dword [esp + 0x24]
lea esi, [esp + 0x64]
call fcn.0040be1c
mov byte [esp + 0x318], 2
mov edi, dword [esp + 0x74]
dec edi
mov eax, esi
call fcn.004241ce
cmp word [eax], 0x5c
je 0x4738a6
push 0x5418b4
mov eax, esi
push eax
call fcn.0040b547
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.0040b547
test byte [esp + 0xb4], 0x10
je 0x473980
xor edi, edi
xor eax, eax
mov dword [esp + 0xb0], 7
mov dword [esp + 0xac], edi
mov word [esp + 0x9c], ax
mov byte [esp + 0x318], 3
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x5c], ebx
jae 0x4738fa
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.004722ee
push 0x548724
lea esi, [esp + 0x2c]
call fcn.0040b812
lea eax, [esp + 0x60]
push eax
mov eax, esi
mov byte [esp + 0x31c], 4
or dword [esp + 0x1c], 1
push eax
lea ecx, [esp + 0xa0]
call fcn.00473715
test al, al
je 0x473947
cmp byte [esp + 0x17], 0
mov byte [esp + 0x17], 1
jne 0x47394c
mov byte [esp + 0x17], 0
mov dword [esp + 0x318], 3
test byte [esp + 0x18], 1
je 0x47396f
and dword [esp + 0x18], 0xfffffffe
push edi
push 1
lea esi, [esp + 0x30]
call fcn.0040dac5
push edi
push 1
lea esi, [esp + 0xa0]
call fcn.0040dac5
jmp 0x4739bb
mov ecx, dword [esp + 0x64]
cmp dword [esp + 0x78], ebx
jae 0x47398e
lea ecx, [esp + 0x64]
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x5c], ebx
jae 0x47399c
lea eax, [esp + 0x48]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
jne 0x4739b6
cmp byte [esp + 0x17], 0
mov byte [esp + 0x17], al
jne 0x4739bb
mov byte [esp + 0x17], 0
push 0
push 1
lea esi, [esp + 0x68]
call fcn.0040dac5
push 0
push 1
lea esi, [esp + 0x4c]
mov byte [esp + 0x320], 0
call fcn.0040dac5
lea eax, [esp + 0xb4]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47381d
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 1
lea esi, [esp + 0x84]
call fcn.0040dac5
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x310]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2f8]
xor ecx, esp
call fcn.004ffa47
mov esp, ebp
pop ebp
ret 8