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

Disassembly:
push 0xffffffffffffffff
push 0x43ef2b
mov eax, dword fs:[0]
push eax
sub esp, 0x380
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x378], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x394]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3b0]
mov ebp, dword [esp + 0x3a4]
mov esi, ecx
push 0xa00000
mov dword [esp + 0x30], esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], 1
call fcn.00413bd6
mov edx, dword [str.Tipray_LdSafe]
mov ecx, dword [esp + 0x3b0]
mov ebx, dword [esp + 0x3ac]
mov edi, eax
mov eax, dword [0x44802c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x448030]
mov dword [esp + 0x178], edx
mov dx, word [0x448034]
add esp, 4
mov dword [esp + 0x178], eax
mov dword [esp + 0x17c], ecx
mov word [esp + 0x180], dx
call fcn.00413be1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x412fdf
push 0x80004005
call fcn.0040a000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x208
lea ecx, [esp + 0x188]
push 0
push ecx
mov dword [esp + 0x3a8], 0
call fcn.004253a0
lea edx, [esp + 0x190]
add esp, 0xc
mov eax, ebp
sub edx, ebp
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x413020
mov al, byte [0x453d0c]
cmp al, 6
jne 0x41305f
lea eax, [esp + 0x184]
dec eax
jmp 0x413040
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x413040
mov edx, dword [str..ldres]
mov cx, word [0x448fc8]
mov dword [eax], edx
mov dl, byte [0x448fca]
jmp 0x4130b4
cmp al, 8
lea eax, [esp + 0x184]
jne 0x413096
dec eax
jmp 0x413070
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x413070
mov ecx, dword [str..ldres]
mov dx, word [0x448fc8]
mov dword [eax], ecx
mov cl, byte [0x448fca]
mov word [eax + 4], dx
mov byte [eax + 6], cl
jmp 0x4130bb
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x413097
mov edx, dword [str..ldtmp]
mov cx, word [0x448fd0]
mov dword [eax], edx
mov dl, byte [0x448fd2]
mov word [eax + 4], cx
mov byte [eax + 6], dl
lea eax, [esp + 0x184]
push 0x447ed4
push eax
call fcn.004228cf
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
je 0x413275
push esi
call fcn.0042303e
add esp, 4
test eax, eax
jne 0x4131b4
jmp 0x4130f4
mov esi, dword [esp + 0x2c]
push 0xa00000
push 0
push edi
call fcn.004253a0
add esp, 0xc
cmp dword [esp + 0x28], 0
jl 0x41311c
jg 0x413115
cmp ebx, 0xa00000
jbe 0x41311c
mov ebp, 0xa00000
jmp 0x41311e
mov ebp, ebx
push esi
push ebp
push 1
push edi
call fcn.00423346
mov esi, eax
add esp, 0x10
test esi, esi
jle 0x4131a8
mov ecx, dword [esp + 0x3b4]
and ecx, 2
mov dword [esp + 0x39c], 0
cmp cl, 2
jne 0x413162
push esi
lea eax, [esp + 0x178]
call fcn.00413420
mov edx, dword [esp + 0x20]
add esp, 4
push edx
jmp 0x413167
mov eax, dword [esp + 0x1c]
push eax
push esi
push 1
push edi
call fcn.00422fbc
mov eax, ebp
cdq
add esp, 0x10
sub ebx, eax
sbb dword [esp + 0x28], edx
test ebx, ebx
jne 0x413186
cmp dword [esp + 0x28], ebx
je 0x4131a8
mov ecx, dword [esp + 0x2c]
push ecx
mov dword [esp + 0x3a0], 0
call fcn.0042303e
add esp, 4
test eax, eax
je 0x4130f0
jmp 0x4131b0
mov byte [esp + 0x39c], 0
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push edx
call fcn.0042295d
mov ebx, dword [esp + 0x3b8]
add esp, 4
test bl, 2
je 0x4131e3
test bl, 1
jne 0x4131e3
push 0
push ebp
lea eax, [esp + 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
and ebx, 1
cmp bl, 1
jne 0x41323f
mov ebx, ebp
lea ecx, [esp + 0x184]
call fcn.00413a70
lea ecx, [esp + 0x34]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x413213
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41323f
push ebp
lea edx, [esp + 0x18]
push str.OldSplitFile__DecompressFile____s__is__not__Exist
push edx
call fcn.00409910
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0
push eax
push 0x453d11
call fcn.0040d890
mov dword [esp + 0x20], 0xfffffffb
lea ecx, [esp + 0x184]
push ecx
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 0x4132af
mov edx, dword [esp + 0x30]
push edx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
jmp 0x4132af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x188]
push eax
lea ecx, [esp + 0x1c]
push str.fopen_file__s__Error__d_
push ecx
call fcn.00409910
mov edx, dword [esp + 0x24]
add esp, 0x10
push 0
push edx
push 0x453d11
call fcn.0040d890
mov dword [esp + 0x20], 0xffffffff
push edi
call fcn.00413bcb
mov dword [esp + 0x3a0], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4132e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x394]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x378]
xor ecx, esp
call fcn.00421f05
add esp, 0x38c
ret