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

Disassembly:
push 0xffffffffffffffff
push 0x5db5ea
mov eax, dword fs:[0]
push eax
sub esp, 0x364
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x360], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x66d4f4]
xor eax, esp
push eax
lea eax, [esp + 0x378]
mov dword fs:[0], eax
mov eax, dword [esp + 0x388]
mov esi, dword [esp + 0x38c]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x14], ecx
je 0x50c2ee
cmp byte [eax], 0
je 0x50c2ee
cmp esi, ebp
je 0x50c2ee
cmp byte [esi], 0
je 0x50c2ee
push eax
lea ecx, [esp + 0x21c]
call fcn.0040b540
push esi
lea ecx, [esp + 0x200]
mov dword [esp + 0x384], ebp
call fcn.0040b540
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x21c]
mov byte [esp + 0x384], 1
call fcn.004252f0
mov ecx, eax
call fcn.00425780
cmp byte [eax], 0x5c
je 0x50bd17
push 0x5c
push 1
lea ecx, [esp + 0x220]
call fcn.00406640
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x200]
call fcn.004252f0
mov ecx, eax
call fcn.00425780
cmp byte [eax], 0x5c
je 0x50bd44
push 0x5c
push 1
lea ecx, [esp + 0x204]
call fcn.00406640
mov eax, dword [esp + 0x200]
mov edi, 0x10
cmp dword [esp + 0x214], edi
jae 0x50bd60
lea eax, [esp + 0x200]
push eax
call fcn.00509820
add esp, 4
test eax, eax
jne 0x50be23
push 1
push 2
lea ecx, [esp + 0x68]
call fcn.0040a750
mov byte [esp + 0x380], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error:
lea edx, [esp + 0x204]
push edx
lea eax, [esp + 0x6c]
push str.CreateDirectory:
push eax
call fcn.00409270
add esp, 8
push eax
call fcn.00408950
add esp, 8
push eax
call fcn.00409270
add esp, 8
mov ecx, eax
call fcn.00419990
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x64]
call fcn.00408c00
cmp dword [eax + 0x18], edi
mov byte [esp + 0x380], 3
jb 0x50bde5
mov eax, dword [eax + 4]
jmp 0x50bde8
add eax, 4
push eax
push str.BaseLib::CDirectoryCopy::Copy
push 0x9a2
push str..common_function.cpp
push 0xf0000000
call fcn.00408f70
mov ecx, eax
call fcn.00512650
lea ecx, [esp + 0x1c]
call fcn.0040b640
lea ecx, [esp + 0x60]
mov byte [esp + 0x380], 1
call fcn.004094e0
push 1
push 2
lea ecx, [esp + 0x184]
call fcn.0040a750
push 0x60123c
lea edx, [esp + 0x21c]
push edx
lea eax, [esp + 0x184]
push eax
mov byte [esp + 0x38c], 4
call fcn.00408950
add esp, 8
push eax
call fcn.00409270
add esp, 8
lea ecx, [esp + 0x160]
push ecx
lea ecx, [esp + 0x180]
call fcn.00408c00
cmp dword [eax + 0x18], edi
jb 0x50be7f
mov eax, dword [eax + 4]
jmp 0x50be82
add eax, 4
lea edx, [esp + 0x234]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
lea ecx, [esp + 0x160]
mov dword [esp + 0x18], esi
call fcn.0040b640
cmp esi, 0xffffffff
jne 0x50bee0
lea ecx, [esp + 0x17c]
mov byte [esp + 0x380], 1
call fcn.004094e0
lea ecx, [esp + 0x1fc]
call fcn.0040b640
lea ecx, [esp + 0x218]
call fcn.0040b640
mov eax, 1
jmp 0x50c2f1
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 2
lea ecx, [esp + 0xe8]
call fcn.0040a750
push 1
push 2
lea ecx, [esp + 0x68]
mov byte [esp + 0x388], 5
call fcn.0040a750
lea eax, [esp + 0x260]
push eax
lea ecx, [esp + 0x21c]
push ecx
lea edx, [esp + 0xe8]
push edx
mov byte [esp + 0x38c], 6
call fcn.00408950
add esp, 8
push eax
call fcn.00409270
add esp, 8
lea eax, [esp + 0x260]
push eax
lea ecx, [esp + 0x200]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.00408950
add esp, 8
push eax
call fcn.00409270
mov eax, dword [esp + 0x23c]
and eax, edi
add esp, 8
cmp al, 0x10
jne 0x50c125
cmp byte [esp + 0x260], 0x2e
jne 0x50bfdc
lea ecx, [esp + 0xac]
mov byte [esp + 0x380], 5
call fcn.00409510
lea ecx, [esp + 0xac]
mov ebx, vtable.std::ios_base.0
push ecx
mov dword [esp + 0xb0], ebx
call fcn.005d9cc4
add esp, 4
lea ecx, [esp + 0x12c]
mov byte [esp + 0x380], 4
call fcn.00409510
lea edx, [esp + 0x12c]
push edx
mov dword [esp + 0x130], ebx
call fcn.005d9cc4
jmp 0x50c2c8
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x64]
call fcn.00408c00
mov esi, eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0xe4]
mov byte [esp + 0x384], 7
call fcn.00408c00
cmp dword [esi + 0x18], edi
mov byte [esp + 0x380], 8
jb 0x50c017
mov esi, dword [esi + 4]
jmp 0x50c01a
add esi, 4
cmp dword [eax + 0x18], edi
jb 0x50c024
mov eax, dword [eax + 4]
jmp 0x50c027
add eax, 4
mov ecx, dword [esp + 0x14]
push esi
push eax
call fcn.0050bc50
test eax, eax
lea ecx, [esp + 0x1c]
setl bl
call fcn.0040b640
lea ecx, [esp + 0x38]
mov byte [esp + 0x380], 6
call fcn.0040b640
test bl, bl
je 0x50c26c
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x64]
call fcn.00408c00
mov esi, eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x384], 9
call fcn.00408c00
cmp dword [esi + 0x18], edi
mov byte [esp + 0x380], 0xa
jb 0x50c094
mov esi, dword [esi + 4]
jmp 0x50c097
add esi, 4
cmp dword [eax + 0x18], edi
jb 0x50c0a1
mov eax, dword [eax + 4]
jmp 0x50c0a4
add eax, 4
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push esi
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x1c]
mov ebp, eax
call fcn.0040b640
lea ecx, [esp + 0x38]
call fcn.0040b640
test ebp, ebp
jge 0x50c26c
lea ecx, [esp + 0x60]
mov byte [esp + 0x380], 5
call fcn.004094e0
lea ecx, [esp + 0xe0]
mov byte [esp + 0x380], 4
call fcn.004094e0
lea ecx, [esp + 0x17c]
mov byte [esp + 0x380], 1
call fcn.004094e0
lea ecx, [esp + 0x1fc]
call fcn.0040b640
lea ecx, [esp + 0x218]
call fcn.0040b640
mov eax, ebp
jmp 0x50c2f1
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x64]
call fcn.00408c00
mov esi, eax
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0xe4]
mov byte [esp + 0x384], 0xb
call fcn.00408c00
cmp dword [esi + 0x18], edi
jb 0x50c158
mov esi, dword [esi + 4]
jmp 0x50c15b
add esi, 4
cmp dword [eax + 0x18], edi
jb 0x50c165
mov eax, dword [eax + 4]
jmp 0x50c168
add eax, 4
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
sete bl
cmp dword [esp + 0x50], edi
jb 0x50c18a
mov eax, dword [esp + 0x3c]
push eax
call fcn.005a1b1d
add esp, 4
cmp dword [esp + 0x34], edi
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
mov byte [esp + 0x380], 6
jb 0x50c1ba
mov ecx, dword [esp + 0x20]
push ecx
call fcn.005a1b1d
add esp, 4
test bl, bl
je 0x50c234
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x64]
call fcn.00408c00
mov esi, eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x384], 0xc
call fcn.00408c00
cmp dword [esi + 0x18], edi
mov byte [esp + 0x380], 0xd
jb 0x50c1f9
mov esi, dword [esi + 4]
jmp 0x50c1fc
add esi, 4
cmp dword [eax + 0x18], edi
jb 0x50c206
mov eax, dword [eax + 4]
jmp 0x50c209
add eax, 4
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push esi
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
mov ebp, eax
call fcn.0040b640
lea ecx, [esp + 0x38]
call fcn.0040b640
test ebp, ebp
jl 0x50c0cd
jmp 0x50c26c
mov ecx, dword [esp + 0x14]
test byte [ecx + 4], 1
je 0x50c26c
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0xe4]
call fcn.00408c00
cmp dword [eax + 0x18], edi
jb 0x50c259
mov eax, dword [eax + 4]
jmp 0x50c25c
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x1c]
call fcn.0040b640
lea ecx, [esp + 0xac]
mov byte [esp + 0x380], 5
call fcn.00409510
lea eax, [esp + 0xac]
mov esi, vtable.std::ios_base.0
push eax
mov dword [esp + 0xb0], esi
call fcn.005d9cc4
add esp, 4
lea ecx, [esp + 0x12c]
mov byte [esp + 0x380], 4
call fcn.00409510
lea ecx, [esp + 0x12c]
push ecx
mov dword [esp + 0x130], esi
call fcn.005d9cc4
mov esi, dword [esp + 0x1c]
add esp, 4
lea edx, [esp + 0x234]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x50bee0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x50c0f2
or eax, 0xffffffff
mov ecx, dword [esp + 0x378]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x360]
xor ecx, esp
call fcn.005bd2d7
add esp, 0x370
ret 8