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

Disassembly:
push 0xffffffffffffffff
push 0x5d006a
mov eax, dword fs:[0]
push eax
sub esp, 0x364
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x360], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4e4]
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 0x50496e
cmp byte [eax], 0
je 0x50496e
cmp esi, ebp
je 0x50496e
cmp byte [esi], 0
je 0x50496e
push eax
lea ecx, [esp + 0x21c]
call fcn.0040be30
push esi
lea ecx, [esp + 0x200]
mov dword [esp + 0x384], ebp
call fcn.0040be30
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x21c]
mov byte [esp + 0x384], 1
call fcn.00425e40
mov ecx, eax
call fcn.00426430
cmp byte [eax], 0x5c
je 0x504397
push 0x5c
push 1
lea ecx, [esp + 0x220]
call fcn.00406df0
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x200]
call fcn.00425e40
mov ecx, eax
call fcn.00426430
cmp byte [eax], 0x5c
je 0x5043c4
push 0x5c
push 1
lea ecx, [esp + 0x204]
call fcn.00406df0
mov eax, dword [esp + 0x200]
mov edi, 0x10
cmp dword [esp + 0x214], edi
jae 0x5043e0
lea eax, [esp + 0x200]
push eax
call fcn.00501ea0
add esp, 4
test eax, eax
jne 0x5044a3
push 1
push 2
lea ecx, [esp + 0x68]
call fcn.0040b040
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.00409b60
add esp, 8
push eax
call fcn.00409240
add esp, 8
push eax
call fcn.00409b60
add esp, 8
mov ecx, eax
call fcn.004024e0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x64]
call fcn.004094f0
cmp dword [eax + 0x18], edi
mov byte [esp + 0x380], 3
jb 0x504465
mov eax, dword [eax + 4]
jmp 0x504468
add eax, 4
push eax
push str.BaseLib::CDirectoryCopy::Copy
push 0xa13
push str..common_function.cpp
push 0xf0000000
call fcn.00409860
mov ecx, eax
call fcn.004fb930
lea ecx, [esp + 0x1c]
call fcn.0040bf30
lea ecx, [esp + 0x60]
mov byte [esp + 0x380], 1
call fcn.00409dd0
push 1
push 2
lea ecx, [esp + 0x184]
call fcn.0040b040
push 0x5f42d8
lea edx, [esp + 0x21c]
push edx
lea eax, [esp + 0x184]
push eax
mov byte [esp + 0x38c], 4
call fcn.00409240
add esp, 8
push eax
call fcn.00409b60
add esp, 8
lea ecx, [esp + 0x160]
push ecx
lea ecx, [esp + 0x180]
call fcn.004094f0
cmp dword [eax + 0x18], edi
jb 0x5044ff
mov eax, dword [eax + 4]
jmp 0x504502
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.0040bf30
cmp esi, 0xffffffff
jne 0x504560
lea ecx, [esp + 0x17c]
mov byte [esp + 0x380], 1
call fcn.00409dd0
lea ecx, [esp + 0x1fc]
call fcn.0040bf30
lea ecx, [esp + 0x218]
call fcn.0040bf30
mov eax, 1
jmp 0x504971
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 2
lea ecx, [esp + 0xe8]
call fcn.0040b040
push 1
push 2
lea ecx, [esp + 0x68]
mov byte [esp + 0x388], 5
call fcn.0040b040
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.00409240
add esp, 8
push eax
call fcn.00409b60
add esp, 8
lea eax, [esp + 0x260]
push eax
lea ecx, [esp + 0x200]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.00409240
add esp, 8
push eax
call fcn.00409b60
mov eax, dword [esp + 0x23c]
and eax, edi
add esp, 8
cmp al, 0x10
jne 0x5047a5
cmp byte [esp + 0x260], 0x2e
jne 0x50465c
lea ecx, [esp + 0xac]
mov byte [esp + 0x380], 5
call fcn.00409e00
lea ecx, [esp + 0xac]
mov ebx, vtable.std::ios_base.0
push ecx
mov dword [esp + 0xb0], ebx
call fcn.005cdcde
add esp, 4
lea ecx, [esp + 0x12c]
mov byte [esp + 0x380], 4
call fcn.00409e00
lea edx, [esp + 0x12c]
push edx
mov dword [esp + 0x130], ebx
call fcn.005cdcde
jmp 0x504948
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x64]
call fcn.004094f0
mov esi, eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0xe4]
mov byte [esp + 0x384], 7
call fcn.004094f0
cmp dword [esi + 0x18], edi
mov byte [esp + 0x380], 8
jb 0x504697
mov esi, dword [esi + 4]
jmp 0x50469a
add esi, 4
cmp dword [eax + 0x18], edi
jb 0x5046a4
mov eax, dword [eax + 4]
jmp 0x5046a7
add eax, 4
mov ecx, dword [esp + 0x14]
push esi
push eax
call fcn.005042d0
test eax, eax
lea ecx, [esp + 0x1c]
setl bl
call fcn.0040bf30
lea ecx, [esp + 0x38]
mov byte [esp + 0x380], 6
call fcn.0040bf30
test bl, bl
je 0x5048ec
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x64]
call fcn.004094f0
mov esi, eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x384], 9
call fcn.004094f0
cmp dword [esi + 0x18], edi
mov byte [esp + 0x380], 0xa
jb 0x504714
mov esi, dword [esi + 4]
jmp 0x504717
add esi, 4
cmp dword [eax + 0x18], edi
jb 0x504721
mov eax, dword [eax + 4]
jmp 0x504724
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.0040bf30
lea ecx, [esp + 0x38]
call fcn.0040bf30
test ebp, ebp
jge 0x5048ec
lea ecx, [esp + 0x60]
mov byte [esp + 0x380], 5
call fcn.00409dd0
lea ecx, [esp + 0xe0]
mov byte [esp + 0x380], 4
call fcn.00409dd0
lea ecx, [esp + 0x17c]
mov byte [esp + 0x380], 1
call fcn.00409dd0
lea ecx, [esp + 0x1fc]
call fcn.0040bf30
lea ecx, [esp + 0x218]
call fcn.0040bf30
mov eax, ebp
jmp 0x504971
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x64]
call fcn.004094f0
mov esi, eax
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0xe4]
mov byte [esp + 0x384], 0xb
call fcn.004094f0
cmp dword [esi + 0x18], edi
jb 0x5047d8
mov esi, dword [esi + 4]
jmp 0x5047db
add esi, 4
cmp dword [eax + 0x18], edi
jb 0x5047e5
mov eax, dword [eax + 4]
jmp 0x5047e8
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 0x50480a
mov eax, dword [esp + 0x3c]
push eax
call fcn.00595eb8
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 0x50483a
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00595eb8
add esp, 4
test bl, bl
je 0x5048b4
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x64]
call fcn.004094f0
mov esi, eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x384], 0xc
call fcn.004094f0
cmp dword [esi + 0x18], edi
mov byte [esp + 0x380], 0xd
jb 0x504879
mov esi, dword [esi + 4]
jmp 0x50487c
add esi, 4
cmp dword [eax + 0x18], edi
jb 0x504886
mov eax, dword [eax + 4]
jmp 0x504889
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.0040bf30
lea ecx, [esp + 0x38]
call fcn.0040bf30
test ebp, ebp
jl 0x50474d
jmp 0x5048ec
mov ecx, dword [esp + 0x14]
test byte [ecx + 4], 1
je 0x5048ec
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0xe4]
call fcn.004094f0
cmp dword [eax + 0x18], edi
jb 0x5048d9
mov eax, dword [eax + 4]
jmp 0x5048dc
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x1c]
call fcn.0040bf30
lea ecx, [esp + 0xac]
mov byte [esp + 0x380], 5
call fcn.00409e00
lea eax, [esp + 0xac]
mov esi, vtable.std::ios_base.0
push eax
mov dword [esp + 0xb0], esi
call fcn.005cdcde
add esp, 4
lea ecx, [esp + 0x12c]
mov byte [esp + 0x380], 4
call fcn.00409e00
lea ecx, [esp + 0x12c]
push ecx
mov dword [esp + 0x130], esi
call fcn.005cdcde
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 0x504560
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x504772
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.005b1988
add esp, 0x370
ret 8