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

Disassembly:
push 0xffffffffffffffff
push 0x5cf00a
mov eax, dword fs:[0]
push eax
sub esp, 0x364
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x360], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65b4e4]
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 0x50394e
cmp byte [eax], 0
je 0x50394e
cmp esi, ebp
je 0x50394e
cmp byte [esi], 0
je 0x50394e
push eax
lea ecx, [esp + 0x21c]
call fcn.0040bf50
push esi
lea ecx, [esp + 0x200]
mov dword [esp + 0x384], ebp
call fcn.0040bf50
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x21c]
mov byte [esp + 0x384], 1
call fcn.00425330
mov ecx, eax
call fcn.004258b0
cmp byte [eax], 0x5c
je 0x503377
push 0x5c
push 1
lea ecx, [esp + 0x220]
call fcn.00407090
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x200]
call fcn.00425330
mov ecx, eax
call fcn.004258b0
cmp byte [eax], 0x5c
je 0x5033a4
push 0x5c
push 1
lea ecx, [esp + 0x204]
call fcn.00407090
mov eax, dword [esp + 0x200]
mov edi, 0x10
cmp dword [esp + 0x214], edi
jae 0x5033c0
lea eax, [esp + 0x200]
push eax
call fcn.00500e80
add esp, 4
test eax, eax
jne 0x503483
push 1
push 2
lea ecx, [esp + 0x68]
call fcn.0040b160
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.00409c80
add esp, 8
push eax
call fcn.00409360
add esp, 8
push eax
call fcn.00409c80
add esp, 8
mov ecx, eax
call fcn.004024e0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x64]
call fcn.00409610
cmp dword [eax + 0x18], edi
mov byte [esp + 0x380], 3
jb 0x503445
mov eax, dword [eax + 4]
jmp 0x503448
add eax, 4
push eax
push str.BaseLib::CDirectoryCopy::Copy
push 0xa13
push str..common_function.cpp
push 0xf0000000
call fcn.00409980
mov ecx, eax
call fcn.004fa910
lea ecx, [esp + 0x1c]
call fcn.0040c050
lea ecx, [esp + 0x60]
mov byte [esp + 0x380], 1
call fcn.00409ef0
push 1
push 2
lea ecx, [esp + 0x184]
call fcn.0040b160
push 0x5f32d8
lea edx, [esp + 0x21c]
push edx
lea eax, [esp + 0x184]
push eax
mov byte [esp + 0x38c], 4
call fcn.00409360
add esp, 8
push eax
call fcn.00409c80
add esp, 8
lea ecx, [esp + 0x160]
push ecx
lea ecx, [esp + 0x180]
call fcn.00409610
cmp dword [eax + 0x18], edi
jb 0x5034df
mov eax, dword [eax + 4]
jmp 0x5034e2
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.0040c050
cmp esi, 0xffffffff
jne 0x503540
lea ecx, [esp + 0x17c]
mov byte [esp + 0x380], 1
call fcn.00409ef0
lea ecx, [esp + 0x1fc]
call fcn.0040c050
lea ecx, [esp + 0x218]
call fcn.0040c050
mov eax, 1
jmp 0x503951
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 2
lea ecx, [esp + 0xe8]
call fcn.0040b160
push 1
push 2
lea ecx, [esp + 0x68]
mov byte [esp + 0x388], 5
call fcn.0040b160
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.00409360
add esp, 8
push eax
call fcn.00409c80
add esp, 8
lea eax, [esp + 0x260]
push eax
lea ecx, [esp + 0x200]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.00409360
add esp, 8
push eax
call fcn.00409c80
mov eax, dword [esp + 0x23c]
and eax, edi
add esp, 8
cmp al, 0x10
jne 0x503785
cmp byte [esp + 0x260], 0x2e
jne 0x50363c
lea ecx, [esp + 0xac]
mov byte [esp + 0x380], 5
call fcn.00409f20
lea ecx, [esp + 0xac]
mov ebx, vtable.std::ios_base.0
push ecx
mov dword [esp + 0xb0], ebx
call fcn.005cccbe
add esp, 4
lea ecx, [esp + 0x12c]
mov byte [esp + 0x380], 4
call fcn.00409f20
lea edx, [esp + 0x12c]
push edx
mov dword [esp + 0x130], ebx
call fcn.005cccbe
jmp 0x503928
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x64]
call fcn.00409610
mov esi, eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0xe4]
mov byte [esp + 0x384], 7
call fcn.00409610
cmp dword [esi + 0x18], edi
mov byte [esp + 0x380], 8
jb 0x503677
mov esi, dword [esi + 4]
jmp 0x50367a
add esi, 4
cmp dword [eax + 0x18], edi
jb 0x503684
mov eax, dword [eax + 4]
jmp 0x503687
add eax, 4
mov ecx, dword [esp + 0x14]
push esi
push eax
call fcn.005032b0
test eax, eax
lea ecx, [esp + 0x1c]
setl bl
call fcn.0040c050
lea ecx, [esp + 0x38]
mov byte [esp + 0x380], 6
call fcn.0040c050
test bl, bl
je 0x5038cc
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x64]
call fcn.00409610
mov esi, eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x384], 9
call fcn.00409610
cmp dword [esi + 0x18], edi
mov byte [esp + 0x380], 0xa
jb 0x5036f4
mov esi, dword [esi + 4]
jmp 0x5036f7
add esi, 4
cmp dword [eax + 0x18], edi
jb 0x503701
mov eax, dword [eax + 4]
jmp 0x503704
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.0040c050
lea ecx, [esp + 0x38]
call fcn.0040c050
test ebp, ebp
jge 0x5038cc
lea ecx, [esp + 0x60]
mov byte [esp + 0x380], 5
call fcn.00409ef0
lea ecx, [esp + 0xe0]
mov byte [esp + 0x380], 4
call fcn.00409ef0
lea ecx, [esp + 0x17c]
mov byte [esp + 0x380], 1
call fcn.00409ef0
lea ecx, [esp + 0x1fc]
call fcn.0040c050
lea ecx, [esp + 0x218]
call fcn.0040c050
mov eax, ebp
jmp 0x503951
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x64]
call fcn.00409610
mov esi, eax
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0xe4]
mov byte [esp + 0x384], 0xb
call fcn.00409610
cmp dword [esi + 0x18], edi
jb 0x5037b8
mov esi, dword [esi + 4]
jmp 0x5037bb
add esi, 4
cmp dword [eax + 0x18], edi
jb 0x5037c5
mov eax, dword [eax + 4]
jmp 0x5037c8
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 0x5037ea
mov eax, dword [esp + 0x3c]
push eax
call fcn.00594e98
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 0x50381a
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00594e98
add esp, 4
test bl, bl
je 0x503894
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x64]
call fcn.00409610
mov esi, eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x384], 0xc
call fcn.00409610
cmp dword [esi + 0x18], edi
mov byte [esp + 0x380], 0xd
jb 0x503859
mov esi, dword [esi + 4]
jmp 0x50385c
add esi, 4
cmp dword [eax + 0x18], edi
jb 0x503866
mov eax, dword [eax + 4]
jmp 0x503869
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.0040c050
lea ecx, [esp + 0x38]
call fcn.0040c050
test ebp, ebp
jl 0x50372d
jmp 0x5038cc
mov ecx, dword [esp + 0x14]
test byte [ecx + 4], 1
je 0x5038cc
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0xe4]
call fcn.00409610
cmp dword [eax + 0x18], edi
jb 0x5038b9
mov eax, dword [eax + 4]
jmp 0x5038bc
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x1c]
call fcn.0040c050
lea ecx, [esp + 0xac]
mov byte [esp + 0x380], 5
call fcn.00409f20
lea eax, [esp + 0xac]
mov esi, vtable.std::ios_base.0
push eax
mov dword [esp + 0xb0], esi
call fcn.005cccbe
add esp, 4
lea ecx, [esp + 0x12c]
mov byte [esp + 0x380], 4
call fcn.00409f20
lea ecx, [esp + 0x12c]
push ecx
mov dword [esp + 0x130], esi
call fcn.005cccbe
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 0x503540
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x503752
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.005b0968
add esp, 0x370
ret 8