Function at 0x47d290
Capabilities:
Copy file
Delete file
Move file
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5903ca
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x600f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x104]
xorps xmm0, xmm0
mov dword [ebp - 0x108], 0
or edi, 0xffffffff
movq qword [ebp - 0x104], xmm0
mov dword [ebp - 0xfc], 0
call fcn.0049af94
mov dword [ebp - 0x98], 0xf
mov dword [ebp - 0x9c], 0
mov byte [ebp - 0xac], 0
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
lea eax, [ebp + 8]
push edi
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004083b0
lea edx, [edi + 4]
lea ecx, [ebp - 0xf8]
call fcn.0047cda0
mov ecx, esp
mov byte [ebp - 4], 3
push edi
push 0
lea eax, [ebp + 8]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004083b0
lea edx, [edi + 2]
lea ecx, [ebp - 0xe0]
call fcn.0047cda0
mov ecx, esp
mov byte [ebp - 4], 4
push edi
push 0
lea eax, [ebp + 8]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004083b0
xor edx, edx
lea ecx, [ebp - 0xc8]
call fcn.0047cda0
add esp, 0x18
mov byte [ebp - 4], 5
lea eax, [ebp - 0xf8]
cmp dword [ebp - 0xe4], 0x10
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmovae eax, dword [ebp - 0xf8]
push 0x80
push eax
call esi
cmp dword [ebp - 0xe4], 0x10
lea ecx, [ebp - 0xf8]
push 0
cmovae ecx, dword [ebp - 0xf8]
lea eax, [ebp - 0xc8]
cmp dword [ebp - 0xb4], 0x10
push ecx
cmovae eax, dword [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
sub esp, 0x18
lea ebx, [ebp - 0x94]
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edi
push 0
lea eax, [ebp - 0xe0]
mov byte [ecx], 0
push eax
call fcn.004083b0
mov edx, ebx
lea ecx, [ebp - 0x108]
call fcn.0047cbf0
mov ebx, dword [ebp - 0x108]
add esp, 0x18
test eax, eax
je 0x47d44a
lea ebx, [edi - 1]
jmp 0x47d630
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004083b0
mov edx, 2
lea ecx, [ebp - 0x124]
call fcn.0047cda0
add esp, 0x18
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 6
cmp ecx, eax
je 0x47d498
push 0xffffffffffffffff
push 0
push eax
call fcn.004083b0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x110], 0x10
jb 0x47d4b3
push dword [ebp - 0x124]
call fcn.0053e195
add esp, 4
cmp dword [ebp - 0x98], 0x10
lea eax, [ebp - 0xac]
push 0x80
cmovae eax, dword [ebp - 0xac]
push eax
call esi
cmp dword [ebp - 0x98], 0x10
lea eax, [ebp - 0xac]
push 0
cmovae eax, dword [ebp - 0xac]
push 0x80
push 3
push 0
push 3
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x47d50d
mov ebx, 0xfffffffd
jmp 0x47d630
push 0
lea eax, [ebp - 0xb0]
push eax
push 0x80
lea eax, [ebp - 0x90]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47d535
lea ebx, [eax - 4]
jmp 0x47d630
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or edi, 0xffffffff
cmp dword [ebp - 0xb0], 0x80
je 0x47d553
lea ebx, [edi - 4]
jmp 0x47d630
push dword [ebp - 0x100]
mov esi, dword [ebp - 0x94]
lea eax, [ebp - 0x90]
push dword [ebp - 0xfc]
push esi
push ebx
push 0x80
push eax
call fcn.0049b33d
cmp eax, 1
je 0x47d587
mov ebx, 0xfffffffa
jmp 0x47d630
cmp dword [ebp - 0xb4], 0x10
lea ecx, [ebp - 0xc8]
cmovae ecx, dword [ebp - 0xc8]
call fcn.0046a4f0
mov ecx, eax
mov dword [ebp - 0x94], eax
call fcn.0046a140
cmp dword [ebp - 0xb4], 0x10
lea eax, [ebp - 0xc8]
push 0x80
cmovae eax, dword [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp - 0xb4], 0x10
lea eax, [ebp - 0xc8]
push 0
cmovae eax, dword [ebp - 0xc8]
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x47d608
mov ebx, 0xfffffff9
jmp 0x47d630
push 0
lea eax, [ebp - 0xb0]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x47d623
lea ebx, [eax - 8]
jmp 0x47d630
cmp dword [ebp - 0xb0], esi
je 0x47d69c
mov ebx, 0xfffffff7
cmp dword [ebp - 0xb4], 0x10
lea ecx, [ebp - 0xc8]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0xe0]
cmovae ecx, dword [ebp - 0xc8]
cmp dword [ebp - 0xcc], 0x10
push 5
cmovae eax, dword [ebp - 0xe0]
push ecx
push eax
call esi
cmp dword [ebp - 0x98], 0x10
lea eax, [ebp - 0xac]
push 4
cmovae eax, dword [ebp - 0xac]
push 0
push eax
call esi
cmp dword [ebp - 0xe4], 0x10
lea eax, [ebp - 0xf8]
cmovae eax, dword [ebp - 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x47d710
cmp dword [ebp - 0xcc], 0x10
lea eax, [ebp - 0xe0]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmovae eax, dword [ebp - 0xe0]
push 0x80
push eax
call ebx
cmp dword [ebp - 0x98], 0x10
lea eax, [ebp - 0xac]
push 0x80
cmovae eax, dword [ebp - 0xac]
push eax
call ebx
cmp dword [ebp - 0xcc], 0x10
lea eax, [ebp - 0xe0]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmovae eax, dword [ebp - 0xe0]
push eax
call esi
cmp dword [ebp - 0x98], 0x10
lea eax, [ebp - 0xac]
cmovae eax, dword [ebp - 0xac]
push eax
call esi
xor ebx, ebx
mov eax, dword [ebp - 0x108]
test eax, eax
je 0x47d72a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp edi, 0xffffffff
je 0x47d736
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x94]
call fcn.00469ac0
cmp dword [ebp - 0xb4], 0x10
jb 0x47d758
push dword [ebp - 0xc8]
call fcn.0053e195
add esp, 4
cmp dword [ebp - 0xcc], 0x10
mov dword [ebp - 0xb4], 0xf
mov dword [ebp - 0xb8], 0
mov byte [ebp - 0xc8], 0
jb 0x47d78a
push dword [ebp - 0xe0]
call fcn.0053e195
add esp, 4
cmp dword [ebp - 0xe4], 0x10
mov dword [ebp - 0xcc], 0xf
mov dword [ebp - 0xd0], 0
mov byte [ebp - 0xe0], 0
jb 0x47d7bc
push dword [ebp - 0xf8]
call fcn.0053e195
add esp, 4
cmp dword [ebp - 0x98], 0x10
mov dword [ebp - 0xe4], 0xf
mov dword [ebp - 0xe8], 0
mov byte [ebp - 0xf8], 0
jb 0x47d7ee
push dword [ebp - 0xac]
call fcn.0053e195
add esp, 4
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x100]
mov dword [ebp - 0x98], 0xf
mov dword [ebp - 0x9c], 0
mov byte [ebp - 0xac], 0
test edx, edx
je 0x47d837
mov ecx, dword [edx]
and ecx, 0x7fffffff
jle 0x47d828
mov edi, dword [edx + 4]
xor eax, eax
rep stosd dword es:[edi], eax
push edx
mov dword [edx], 0
call fcn.0053eb28
add esp, 4
mov edx, dword [ebp - 0xfc]
test edx, edx
je 0x47d861
mov ecx, dword [edx]
and ecx, 0x7fffffff
jle 0x47d852
mov edi, dword [edx + 4]
xor eax, eax
rep stosd dword es:[edi], eax
push edx
mov dword [edx], 0
call fcn.0053eb28
add esp, 4
call fcn.004a29fa
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0xa950c8]
mov esi, eax
mov edi, 0xa950cc
cmp ecx, esi
jne 0x47d885
mov eax, dword [0xa950c4]
inc eax
jmp 0x47d898
mov ecx, edi
call fcn.00440290
mov eax, 0xa950c8
xchg dword [eax], esi
mov eax, 1
dec dword [0x611a00]
mov dword [0xa950c4], eax
jne 0x47d8b6
push dword [0xa99c60]
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov eax, dword [0xa950c4]
dec eax
mov dword [0xa950c4], eax
jne 0x47d8f3
xor eax, eax
mov ecx, 0xa950c8
xchg dword [ecx], eax
mov eax, bind
lock xadd dword [edi], eax
test eax, 0x40000000
jne 0x47d8f3
cmp eax, 0x80000000
jle 0x47d8f3
lock bts dword [edi], 0x1e
jb 0x47d8f3
mov ecx, edi
call fcn.00406700
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebp + 0x1c], 0x10
jb 0x47d904
push dword [ebp + 8]
call fcn.0053e195
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret