Function at 0x412770
Capabilities:
Copy file
Delete file
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43e53b
mov eax, dword fs:[0]
push eax
sub esp, 0x374
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x370], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x388]
mov dword fs:[0], eax
mov eax, dword [esp + 0x398]
mov ebp, dword [esp + 0x39c]
push 0xa00000
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ecx
call fcn.004133db
mov edx, dword [str.Tipray_LdSafe]
mov ecx, dword [0x447a74]
mov esi, dword [esp + 0x3a4]
mov edi, eax
mov eax, dword [0x447a70]
mov dword [esp + 0x170], edx
mov dx, word [0x447a78]
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x170], eax
mov dword [esp + 0x174], ecx
mov word [esp + 0x178], dx
call fcn.004133f1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41282e
push 0x80004005
call fcn.00409d60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x208
lea ecx, [esp + 0x180]
push 0
push ecx
mov dword [esp + 0x39c], 0
call fcn.00424c40
lea edx, [esp + 0x188]
add esp, 0xc
mov eax, ebp
sub edx, ebp
jmp 0x412870
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x412870
mov al, byte [0x453d04]
cmp al, 6
jne 0x4128af
lea eax, [esp + 0x17c]
dec eax
jmp 0x412890
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x412890
mov edx, dword [str..ldres]
mov cx, word [0x448e2c]
mov dword [eax], edx
mov dl, byte [0x448e2e]
jmp 0x412904
cmp al, 8
lea eax, [esp + 0x17c]
jne 0x4128e6
dec eax
jmp 0x4128c0
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4128c0
mov ecx, dword [str..ldres]
mov dx, word [0x448e2c]
mov dword [eax], ecx
mov cl, byte [0x448e2e]
mov word [eax + 4], dx
mov byte [eax + 6], cl
jmp 0x41290b
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4128e7
mov edx, dword [str..ldtmp]
mov cx, word [0x448e34]
mov dword [eax], edx
mov dl, byte [0x448e36]
mov word [eax + 4], cx
mov byte [eax + 6], dl
lea eax, [esp + 0x17c]
push 0x447a60
push eax
call fcn.00422167
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x412a8a
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004227eb
add esp, 4
test eax, eax
jne 0x4129d5
jmp 0x412945
mov esi, dword [esp + 0x1c]
mov ebp, 0xa00000
cmp esi, 0xa00000
ja 0x412954
mov ebp, esi
mov edx, dword [esp + 0x24]
push edx
push ebp
push 1
push edi
call fcn.00422af3
mov esi, eax
add esp, 0x10
test esi, esi
jle 0x4129c9
mov eax, dword [esp + 0x3a4]
and eax, 2
mov dword [esp + 0x390], 0
cmp al, 2
jne 0x412994
push esi
lea eax, [esp + 0x170]
call fcn.00412c30
add esp, 4
push ebx
push esi
push 1
push edi
call fcn.004223d3
add esp, 0x10
sub dword [esp + 0x1c], ebp
je 0x4129c9
mov ecx, dword [esp + 0x24]
push ecx
mov dword [esp + 0x394], 0
call fcn.004227eb
add esp, 4
test eax, eax
je 0x412941
jmp 0x4129d1
mov byte [esp + 0x390], 0
mov ebp, dword [esp + 0x20]
push ebx
call fcn.004221f5
mov ebx, dword [esp + 0x3a8]
add esp, 4
test bl, 2
je 0x412a00
test bl, 1
jne 0x412a00
push 0
push ebp
lea edx, [esp + 0x184]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
and ebx, 1
cmp bl, 1
jne 0x412a54
mov ebx, ebp
lea ecx, [esp + 0x17c]
call fcn.00413280
lea eax, [esp + 0x2c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x412a30
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x412a54
push ebp
lea ecx, [esp + 0x1c]
push str.OldSplitFile__DecompressFile____s__is__not__Exist
push ecx
call fcn.00409670
mov edx, dword [esp + 0x24]
add esp, 0xc
push 0
push edx
push 0x453d09
call fcn.0040d390
lea eax, [esp + 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 2
push ebp
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
test esi, esi
je 0x412abc
mov ecx, dword [esp + 0x28]
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
jmp 0x412abc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x180]
push edx
lea eax, [esp + 0x20]
push str.fopen_file__s__Error__d_
push eax
call fcn.00409670
mov ecx, dword [esp + 0x28]
add esp, 0x10
push 0
push ecx
push 0x453d09
call fcn.0040d390
push edi
call fcn.004133e6
mov dword [esp + 0x394], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412af0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x388]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x370]
xor ecx, esp
call fcn.0042179d
add esp, 0x380
ret