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

Disassembly:
push 0xffffffffffffffff
push 0x439e5b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x449cd0]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x449cd0]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov eax, dword [esp + 0x25c]
mov esi, dword [esp + 0x254]
mov ebx, dword [esp + 0x250]
push 0xa00000
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
call fcn.0040f12f
mov ebp, dword [esp + 0x25c]
add esp, 4
mov dword [esp + 0x14], eax
call fcn.00410194
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ba9a
push 0x80004005
call fcn.00401330
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push 0x104
lea ecx, [esp + 0x13c]
push 0
push ecx
mov dword [esp + 0x254], 0
call fcn.0041ec20
lea edx, [esp + 0x144]
add esp, 0xc
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40bad7
mov al, byte [0x44b3c4]
cmp al, 6
jne 0x40bb11
lea eax, [esp + 0x138]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40baf2
mov edx, dword [str..ldres]
mov cx, word [0x43c1d4]
mov dword [eax], edx
mov dl, byte [0x43c1d6]
jmp 0x40bb64
cmp al, 8
lea eax, [esp + 0x138]
jne 0x40bb46
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40bb20
mov ecx, dword [str..ldres]
mov dx, word [0x43c1d4]
mov dword [eax], ecx
mov cl, byte [0x43c1d6]
mov word [eax + 4], dx
mov byte [eax + 6], cl
jmp 0x40bb6b
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40bb47
mov edx, dword [str..ldtmp]
mov cx, word [0x43c1cc]
mov dword [eax], edx
mov dl, byte [0x43c1ce]
mov word [eax + 4], cx
mov byte [eax + 6], dl
lea eax, [esp + 0x138]
push 0x43b580
push eax
call fcn.0041e83b
mov edi, eax
add esp, 8
test edi, edi
je 0x40be18
push ebx
call fcn.0041e452
add esp, 4
test eax, eax
jne 0x40bc01
mov esi, 0xa00000
cmp ebp, 0xa00000
ja 0x40bba6
mov esi, ebp
mov ecx, dword [esp + 0x14]
push ebx
push esi
push 1
push ecx
call fcn.0041e75a
add esp, 0x10
test eax, eax
jle 0x40bbf5
mov edx, dword [esp + 0x14]
push edi
push eax
push 1
push edx
mov dword [esp + 0x258], 0
call fcn.0041e3d0
add esp, 0x10
sub ebp, esi
je 0x40bbf5
push ebx
mov dword [esp + 0x24c], 0
call fcn.0041e452
add esp, 4
test eax, eax
je 0x40bb97
jmp 0x40bbfd
mov byte [esp + 0x248], 0
mov esi, dword [esp + 0x18]
push edi
call fcn.0041e1f2
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 4
push esi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileA]
push esi
lea eax, [esp + 0x13c]
push eax
call ebp
mov edi, dword [esp + 0x260]
mov ecx, edi
and ecx, 2
cmp cl, 2
jne 0x40bd31
push 0x104
lea edx, [esp + 0x38]
push 0
push edx
call fcn.0041ec20
lea edx, [esp + 0x40]
add esp, 0xc
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40bc55
mov al, byte [0x44b3c4]
cmp al, 6
jne 0x40bc8f
lea eax, [esp + 0x34]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40bc70
mov ecx, dword [str..ldres]
mov dx, word [0x43c1d4]
mov dword [eax], ecx
mov cl, byte [0x43c1d6]
jmp 0x40bcdd
cmp al, 8
lea eax, [esp + 0x34]
jne 0x40bcbe
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40bc98
mov edx, dword [str..ldres]
mov cx, word [0x43c1d4]
mov dword [eax], edx
mov dl, byte [0x43c1d6]
mov word [eax + 4], cx
mov byte [eax + 6], dl
jmp 0x40bce4
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40bcc0
mov ecx, dword [str..ldtmp]
mov dx, word [0x43c1cc]
mov dword [eax], ecx
mov cl, byte [0x43c1ce]
mov word [eax + 4], dx
mov byte [eax + 6], cl
mov eax, dword [0x43b568]
mov ecx, dword [0x43b56c]
mov edx, dword [str.Tipray_LdSafe]
mov dword [esp + 0x28], eax
push 0xd
lea eax, [esp + 0x28]
mov dword [esp + 0x30], ecx
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x2c], edx
mov dx, word [0x43b570]
push ecx
push esi
mov word [esp + 0x40], dx
call fcn.0040eef0
add esp, 0x10
test eax, eax
jne 0x40bd31
push esi
call ebx
push esi
lea edx, [esp + 0x38]
push edx
call ebp
mov eax, edi
and eax, 1
cmp al, 1
jne 0x40be08
push 0x104
lea ecx, [esp + 0x38]
push 0
push ecx
call fcn.0041ec20
lea edx, [esp + 0x40]
add esp, 0xc
mov eax, esi
sub edx, esi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40bd60
mov al, byte [0x44b3c4]
cmp al, 6
jne 0x40bd97
lea eax, [esp + 0x34]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40bd78
mov edx, dword [str..ldres]
mov cx, word [0x43c1d4]
mov dword [eax], edx
mov dl, byte [0x43c1d6]
jmp 0x40bde4
cmp al, 8
lea eax, [esp + 0x34]
jne 0x40bdc6
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40bda0
mov ecx, dword [str..ldres]
mov dx, word [0x43c1d4]
mov dword [eax], ecx
mov cl, byte [0x43c1d6]
mov word [eax + 4], dx
mov byte [eax + 6], cl
jmp 0x40bdeb
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40bdc7
mov edx, dword [str..ldtmp]
mov cx, word [0x43c1cc]
mov dword [eax], edx
mov dl, byte [0x43c1ce]
mov word [eax + 4], cx
mov byte [eax + 6], dl
lea eax, [esp + 0x34]
push eax
push esi
call fcn.0040e9c0
add esp, 8
test eax, eax
je 0x40be08
push esi
call ebx
push esi
lea ecx, [esp + 0x38]
push ecx
call ebp
mov edx, dword [esp + 0x20]
push edx
push esi
call fcn.00407c50
add esp, 8
jmp 0x40be4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x13c]
push eax
lea ecx, [esp + 0x24]
push str.fopen_file__s__Error__d_
push ecx
call fcn.00401ce0
mov edx, dword [esp + 0x2c]
add esp, 0x10
push 0
push edx
mov ecx, 0x44b3c5
call fcn.0040aa20
mov eax, dword [esp + 0x14]
push eax
call fcn.0040f13a
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x248], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40be82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0041d4f4
add esp, 0x238
ret