Function at 0x40d6a0
Capabilities:
Delete file
Move file
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43c33b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x44ccd0]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44ccd0]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x268]
mov esi, dword [esp + 0x258]
mov eax, dword [esp + 0x264]
mov ebp, dword [esp + 0x25c]
mov edx, ecx
and edx, 1
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
cmp dl, 1
jne 0x40d722
push ecx
push eax
mov eax, dword [esp + 0x268]
push eax
push ebp
push esi
call fcn.0040d200
add esp, 0x14
jmp 0x40daab
push 0x8000
call fcn.0041152f
mov edi, dword [esp + 0x264]
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
call fcn.004125a5
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d75a
push 0x80004005
call fcn.004011d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [str.Tipray_LdSafe]
mov edx, dword [0x43e578]
mov eax, dword [0x43e57c]
push 0x208
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ecx
mov cx, word [0x43e580]
lea edx, [esp + 0x40]
push 0
push edx
mov dword [esp + 0x25c], 0
mov dword [esp + 0x40], eax
mov word [esp + 0x44], cx
call fcn.00421360
lea edx, [esp + 0x48]
add esp, 0xc
mov eax, ebp
sub edx, ebp
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40d7c0
mov al, byte [0x44e3c4]
cmp al, 6
jne 0x40d7f7
lea eax, [esp + 0x3c]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d7d8
mov ecx, dword [str..ldres]
mov dx, word [0x43f47c]
mov dword [eax], ecx
mov cl, byte [0x43f47e]
jmp 0x40d844
cmp al, 8
lea eax, [esp + 0x3c]
jne 0x40d826
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d800
mov edx, dword [str..ldres]
mov cx, word [0x43f47c]
mov dword [eax], edx
mov dl, byte [0x43f47e]
mov word [eax + 4], cx
mov byte [eax + 6], dl
jmp 0x40d84b
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d827
mov ecx, dword [str..ldtmp]
mov dx, word [0x43f474]
mov dword [eax], ecx
mov cl, byte [0x43f476]
mov word [eax + 4], dx
mov byte [eax + 6], cl
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x18]
push str.SplitFile_szTmpFile__s__
push eax
call fcn.00401f40
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0
push ecx
mov ecx, 0x44e3c9
call fcn.0040be50
lea edx, [esp + 0x3c]
push 0x43e590
push edx
call fcn.00420f7d
add esp, 8
mov ebx, eax
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
test ebx, ebx
je 0x40da55
lea eax, [esp + 0x1c]
push str.SplitFile_fopen__path__s__GetLastError__d_
push eax
call fcn.00401f40
mov ecx, dword [esp + 0x24]
add esp, 0x10
push 0
push ecx
mov ecx, 0x44e3c9
call fcn.0040be50
mov edx, dword [esp + 0x24]
push edx
call fcn.00420b94
add esp, 4
test eax, eax
jne 0x40d9a9
jmp 0x40d8e8
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
push 0x8000
push 0
push esi
call fcn.00421360
add esp, 0xc
cmp edi, 0x8000
jbe 0x40d905
mov edi, 0x8000
mov eax, dword [esp + 0x24]
push eax
push edi
push 1
push esi
call fcn.00420e9c
mov esi, eax
add esp, 0x10
cmp esi, edi
jne 0x40d993
mov ecx, dword [esp + 0x268]
xor edi, edi
and ecx, 2
mov dword [esp + 0x250], edi
cmp cl, 2
jne 0x40d961
mov edi, dword [esp + 0x1c]
push 0xd
lea edx, [esp + 0x30]
push edx
push esi
push edi
call fcn.00411270
push ebx
push esi
push 1
push edi
call fcn.00420b12
add esp, 0x20
cmp esi, eax
je 0x40d976
mov dword [esp + 0x18], 0
jmp 0x40d9a9
mov eax, dword [esp + 0x1c]
push ebx
push esi
push 1
push eax
call fcn.00420b12
add esp, 0x10
cmp eax, esi
jne 0x40d9a5
sub dword [esp + 0x20], eax
je 0x40d9a9
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00420b94
add esp, 4
test eax, eax
je 0x40d8e0
jmp 0x40d9a9
mov dword [esp + 0x18], 0
mov byte [esp + 0x250], 0
jmp 0x40d9a9
mov dword [esp + 0x18], edi
push ebx
call fcn.00420934
push ebp
push 1
call fcn.00408bd0
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0xc
push ebp
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push ebp
lea edx, [esp + 0x1c]
push str.SplitFile_DeleteFile__s__GetLastError__d_
push edx
call fcn.00401f40
mov eax, dword [esp + 0x24]
add esp, 0x10
push 0
push eax
mov ecx, 0x44e3c9
call fcn.0040be50
push 1
push ebp
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
call edi
push eax
push ebp
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x20]
push str.SplitFile_MoveFileEx__s_To__s__GetLastError__d_
push eax
call fcn.00401f40
mov edi, dword [esp + 0x28]
add esp, 0x14
push 0
push edi
mov ecx, 0x44e3c9
call fcn.0040be50
lea ecx, [esp + 0x3c]
push ecx
call esi
cmp dword [esp + 0x18], 0
je 0x40da46
mov edx, dword [esp + 0x28]
push edx
push ebp
call fcn.004089c0
add esp, 8
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041153a
add esp, 4
jmp 0x40da80
lea ecx, [esp + 0x1c]
push str.fopen_error_path:_s_Error_code:__d
push ecx
call fcn.00401f40
mov edi, dword [esp + 0x24]
add esp, 0x10
push 0
push edi
mov ecx, 0x44e3c9
call fcn.0040be50
mov dword [esp + 0x18], 0
add edi, 0xfffffff0
mov dword [esp + 0x250], 0xffffffff
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40daa7
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0041f914
add esp, 0x240
ret