Function at 0x40d0e0
Capabilities:
Delete file
Move file
Print debug messages
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43ba6b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x44bcd0]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44bcd0]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x268]
mov esi, dword [esp + 0x258]
mov edi, dword [esp + 0x264]
mov ebp, dword [esp + 0x25c]
mov eax, ebx
and eax, 1
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
cmp al, 1
jne 0x40d16c
push str._SplitFile_OldSplitFile
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x260]
push ebx
push edi
push ecx
push ebp
push esi
call fcn.0040cc40
add esp, 0x14
jmp 0x40d4ed
push 0x8000
call fcn.00410bca
mov edi, dword [esp + 0x264]
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
call fcn.00411c35
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d1a4
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 [0x43d578]
mov eax, dword [0x43d57c]
push 0x208
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ecx
mov cx, word [0x43d580]
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.00420a40
lea edx, [esp + 0x48]
add esp, 0xc
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40d204
mov al, byte [0x44d3c4]
cmp al, 6
jne 0x40d23f
lea eax, [esp + 0x3c]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d220
mov ecx, dword [str..ldres]
mov dx, word [0x43e394]
mov dword [eax], ecx
mov cl, byte [0x43e396]
jmp 0x40d28d
cmp al, 8
lea eax, [esp + 0x3c]
jne 0x40d26e
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d248
mov edx, dword [str..ldres]
mov cx, word [0x43e394]
mov dword [eax], edx
mov dl, byte [0x43e396]
mov word [eax + 4], cx
mov byte [eax + 6], dl
jmp 0x40d294
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d270
mov ecx, dword [str..ldtmp]
mov dx, word [0x43e38c]
mov dword [eax], ecx
mov cl, byte [0x43e38e]
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, 0x44d3c9
call fcn.0040bc50
lea edx, [esp + 0x3c]
push 0x43d590
push edx
call fcn.0042065d
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 0x40d497
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, 0x44d3c9
call fcn.0040bc50
mov edx, dword [esp + 0x24]
push edx
call fcn.00420274
add esp, 4
test eax, eax
jne 0x40d3eb
jmp 0x40d32a
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
push 0x8000
push 0
push esi
call fcn.00420a40
add esp, 0xc
cmp edi, 0x8000
jbe 0x40d347
mov edi, 0x8000
mov eax, dword [esp + 0x24]
push eax
push edi
push 1
push esi
call fcn.0042057c
mov esi, eax
add esp, 0x10
cmp esi, edi
jne 0x40d3d5
mov ecx, dword [esp + 0x268]
xor edi, edi
and ecx, 2
mov dword [esp + 0x250], edi
cmp cl, 2
jne 0x40d3a3
mov edi, dword [esp + 0x1c]
push 0xd
lea edx, [esp + 0x30]
push edx
push esi
push edi
call fcn.00410900
push ebx
push esi
push 1
push edi
call fcn.004201f2
add esp, 0x20
cmp esi, eax
je 0x40d3b8
mov dword [esp + 0x18], 0
jmp 0x40d3eb
mov eax, dword [esp + 0x1c]
push ebx
push esi
push 1
push eax
call fcn.004201f2
add esp, 0x10
cmp eax, esi
jne 0x40d3e7
sub dword [esp + 0x20], eax
je 0x40d3eb
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00420274
add esp, 4
test eax, eax
je 0x40d322
jmp 0x40d3eb
mov dword [esp + 0x18], 0
mov byte [esp + 0x250], 0
jmp 0x40d3eb
mov dword [esp + 0x18], edi
push ebx
call fcn.00420014
push ebp
push 1
call fcn.00408ee0
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, 0x44d3c9
call fcn.0040bc50
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, 0x44d3c9
call fcn.0040bc50
lea ecx, [esp + 0x3c]
push ecx
call esi
cmp dword [esp + 0x18], 0
je 0x40d488
mov edx, dword [esp + 0x28]
push edx
push ebp
call fcn.00408cd0
add esp, 8
mov eax, dword [esp + 0x1c]
push eax
call fcn.00410bbf
add esp, 4
jmp 0x40d4c2
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, 0x44d3c9
call fcn.0040bc50
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 0x40d4e9
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.0041eff4
add esp, 0x240
ret