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

Disassembly:
push 0xffffffffffffffff
push 0x43ba2b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x44bcd0]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44bcd0]
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.00410bca
mov ebp, dword [esp + 0x25c]
add esp, 4
mov dword [esp + 0x14], eax
call fcn.00411c35
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ccca
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 + 0x1c], eax
push 0x104
lea ecx, [esp + 0x13c]
push 0
push ecx
mov dword [esp + 0x254], 0
call fcn.00420a40
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 0x40cd07
mov al, byte [0x44d3c4]
cmp al, 6
jne 0x40cd41
lea eax, [esp + 0x138]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40cd22
mov edx, dword [str..ldres]
mov cx, word [0x43e394]
mov dword [eax], edx
mov dl, byte [0x43e396]
jmp 0x40cd94
cmp al, 8
lea eax, [esp + 0x138]
jne 0x40cd76
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40cd50
mov ecx, dword [str..ldres]
mov dx, word [0x43e394]
mov dword [eax], ecx
mov cl, byte [0x43e396]
mov word [eax + 4], dx
mov byte [eax + 6], cl
jmp 0x40cd9b
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40cd77
mov edx, dword [str..ldtmp]
mov cx, word [0x43e38c]
mov dword [eax], edx
mov dl, byte [0x43e38e]
mov word [eax + 4], cx
mov byte [eax + 6], dl
lea eax, [esp + 0x138]
push 0x43d590
push eax
call fcn.0042065d
mov edi, eax
add esp, 8
test edi, edi
je 0x40d048
push ebx
call fcn.00420274
add esp, 4
test eax, eax
jne 0x40ce31
mov esi, 0xa00000
cmp ebp, 0xa00000
ja 0x40cdd6
mov esi, ebp
mov ecx, dword [esp + 0x14]
push ebx
push esi
push 1
push ecx
call fcn.0042057c
add esp, 0x10
test eax, eax
jle 0x40ce25
mov edx, dword [esp + 0x14]
push edi
push eax
push 1
push edx
mov dword [esp + 0x258], 0
call fcn.004201f2
add esp, 0x10
sub ebp, esi
je 0x40ce25
push ebx
mov dword [esp + 0x24c], 0
call fcn.00420274
add esp, 4
test eax, eax
je 0x40cdc7
jmp 0x40ce2d
mov byte [esp + 0x248], 0
mov esi, dword [esp + 0x18]
push edi
call fcn.00420014
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 0x40cf61
push 0x104
lea edx, [esp + 0x38]
push 0
push edx
call fcn.00420a40
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 0x40ce85
mov al, byte [0x44d3c4]
cmp al, 6
jne 0x40cebf
lea eax, [esp + 0x34]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40cea0
mov ecx, dword [str..ldres]
mov dx, word [0x43e394]
mov dword [eax], ecx
mov cl, byte [0x43e396]
jmp 0x40cf0d
cmp al, 8
lea eax, [esp + 0x34]
jne 0x40ceee
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40cec8
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 0x40cf14
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40cef0
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
mov eax, dword [0x43d578]
mov ecx, dword [0x43d57c]
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 [0x43d580]
push ecx
push esi
mov word [esp + 0x40], dx
call fcn.00410980
add esp, 0x10
test eax, eax
jne 0x40cf61
push esi
call ebx
push esi
lea edx, [esp + 0x38]
push edx
call ebp
mov eax, edi
and eax, 1
cmp al, 1
jne 0x40d038
push 0x104
lea ecx, [esp + 0x38]
push 0
push ecx
call fcn.00420a40
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 0x40cf90
mov al, byte [0x44d3c4]
cmp al, 6
jne 0x40cfc7
lea eax, [esp + 0x34]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40cfa8
mov edx, dword [str..ldres]
mov cx, word [0x43e394]
mov dword [eax], edx
mov dl, byte [0x43e396]
jmp 0x40d014
cmp al, 8
lea eax, [esp + 0x34]
jne 0x40cff6
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40cfd0
mov ecx, dword [str..ldres]
mov dx, word [0x43e394]
mov dword [eax], ecx
mov cl, byte [0x43e396]
mov word [eax + 4], dx
mov byte [eax + 6], cl
jmp 0x40d01b
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40cff7
mov edx, dword [str..ldtmp]
mov cx, word [0x43e38c]
mov dword [eax], edx
mov dl, byte [0x43e38e]
mov word [eax + 4], cx
mov byte [eax + 6], dl
lea eax, [esp + 0x34]
push eax
push esi
call fcn.00410450
add esp, 8
test eax, eax
je 0x40d038
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.00408cd0
add esp, 8
jmp 0x40d07a
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.00401f40
mov edx, dword [esp + 0x2c]
add esp, 0x10
push 0
push edx
mov ecx, 0x44d3c9
call fcn.0040bc50
mov eax, dword [esp + 0x14]
push eax
call fcn.00410bbf
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 0x40d0b2
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.0041eff4
add esp, 0x238
ret