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

Disassembly:
push 0xffffffffffffffff
push 0x43c2fb
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x44ccd0]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44ccd0]
xor eax, esp
push eax
lea eax, [esp + 0x448]
mov dword fs:[0], eax
mov eax, dword [esp + 0x464]
mov esi, dword [esp + 0x45c]
mov ebx, dword [esp + 0x458]
push 0xa00000
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
call fcn.0041152f
mov ebp, dword [esp + 0x464]
add esp, 4
mov dword [esp + 0x14], eax
call fcn.004125a5
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d28a
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 0x208
lea ecx, [esp + 0x240]
push 0
push ecx
mov dword [esp + 0x45c], 0
call fcn.00421360
lea edx, [esp + 0x248]
add esp, 0xc
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40d2c7
mov al, byte [0x44e3c4]
cmp al, 6
jne 0x40d301
lea eax, [esp + 0x23c]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d2e2
mov edx, dword [str..ldres]
mov cx, word [0x43f47c]
mov dword [eax], edx
mov dl, byte [0x43f47e]
jmp 0x40d354
cmp al, 8
lea eax, [esp + 0x23c]
jne 0x40d336
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d310
mov ecx, dword [str..ldres]
mov dx, word [0x43f47c]
mov dword [eax], ecx
mov cl, byte [0x43f47e]
mov word [eax + 4], dx
mov byte [eax + 6], cl
jmp 0x40d35b
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d337
mov edx, dword [str..ldtmp]
mov cx, word [0x43f474]
mov dword [eax], edx
mov dl, byte [0x43f476]
mov word [eax + 4], cx
mov byte [eax + 6], dl
lea eax, [esp + 0x23c]
push 0x43e590
push eax
call fcn.00420f7d
mov edi, eax
add esp, 8
test edi, edi
je 0x40d608
push ebx
call fcn.00420b94
add esp, 4
test eax, eax
jne 0x40d3f1
mov esi, 0xa00000
cmp ebp, 0xa00000
ja 0x40d396
mov esi, ebp
mov ecx, dword [esp + 0x14]
push ebx
push esi
push 1
push ecx
call fcn.00420e9c
add esp, 0x10
test eax, eax
jle 0x40d3e5
mov edx, dword [esp + 0x14]
push edi
push eax
push 1
push edx
mov dword [esp + 0x460], 0
call fcn.00420b12
add esp, 0x10
sub ebp, esi
je 0x40d3e5
push ebx
mov dword [esp + 0x454], 0
call fcn.00420b94
add esp, 4
test eax, eax
je 0x40d387
jmp 0x40d3ed
mov byte [esp + 0x450], 0
mov esi, dword [esp + 0x18]
push edi
call fcn.00420934
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 + 0x240]
push eax
call ebp
mov edi, dword [esp + 0x468]
mov ecx, edi
and ecx, 2
cmp cl, 2
jne 0x40d521
push 0x208
lea edx, [esp + 0x38]
push 0
push edx
call fcn.00421360
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 0x40d445
mov al, byte [0x44e3c4]
cmp al, 6
jne 0x40d47f
lea eax, [esp + 0x34]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d460
mov ecx, dword [str..ldres]
mov dx, word [0x43f47c]
mov dword [eax], ecx
mov cl, byte [0x43f47e]
jmp 0x40d4cd
cmp al, 8
lea eax, [esp + 0x34]
jne 0x40d4ae
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d488
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 0x40d4d4
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d4b0
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
mov eax, dword [0x43e578]
mov ecx, dword [0x43e57c]
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 [0x43e580]
push ecx
push esi
mov word [esp + 0x40], dx
call fcn.004112f0
add esp, 0x10
test eax, eax
jne 0x40d521
push esi
call ebx
push esi
lea edx, [esp + 0x38]
push edx
call ebp
mov eax, edi
and eax, 1
cmp al, 1
jne 0x40d5f8
push 0x208
lea ecx, [esp + 0x38]
push 0
push ecx
call fcn.00421360
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 0x40d550
mov al, byte [0x44e3c4]
cmp al, 6
jne 0x40d587
lea eax, [esp + 0x34]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d568
mov edx, dword [str..ldres]
mov cx, word [0x43f47c]
mov dword [eax], edx
mov dl, byte [0x43f47e]
jmp 0x40d5d4
cmp al, 8
lea eax, [esp + 0x34]
jne 0x40d5b6
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d590
mov ecx, dword [str..ldres]
mov dx, word [0x43f47c]
mov dword [eax], ecx
mov cl, byte [0x43f47e]
mov word [eax + 4], dx
mov byte [eax + 6], cl
jmp 0x40d5db
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d5b7
mov edx, dword [str..ldtmp]
mov cx, word [0x43f474]
mov dword [eax], edx
mov dl, byte [0x43f476]
mov word [eax + 4], cx
mov byte [eax + 6], dl
lea eax, [esp + 0x34]
push eax
push esi
call fcn.00410a40
add esp, 8
test eax, eax
je 0x40d5f8
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.004089c0
add esp, 8
jmp 0x40d63a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x240]
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, 0x44e3c9
call fcn.0040be50
mov eax, dword [esp + 0x14]
push eax
call fcn.0041153a
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x450], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d672
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x448]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.0041f914
add esp, 0x440
ret