Function at 0x4120b0
Capabilities:
Delete file
Get file attributes
Move file
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43e5bb
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x24c]
mov dword fs:[0], eax
mov edi, edx
mov eax, dword [esp + 0x264]
mov esi, dword [esp + 0x25c]
mov ebp, dword [esp + 0x260]
mov edx, eax
and edx, 1
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ecx
cmp dl, 1
jne 0x412125
push eax
push edi
push ebp
push esi
call fcn.00412770
add esp, 0x10
jmp 0x4124c2
push 0x8000
call fcn.004133db
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edi
call fcn.004133f1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x412154
push 0x80004005
call fcn.00409d60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x254], 0
mov ecx, dword [str.Tipray_LdSafe]
mov edx, dword [0x447a70]
mov eax, dword [0x447a74]
push 0x208
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ecx
mov cx, word [0x447a78]
lea edx, [esp + 0x40]
push 0
push edx
mov dword [esp + 0x40], eax
mov word [esp + 0x44], cx
call fcn.00424c40
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 0x4121b4
mov al, byte [0x453d04]
cmp al, 6
jne 0x4121ef
lea eax, [esp + 0x3c]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4121d0
mov ecx, dword [str..ldres]
mov dx, word [0x448e2c]
mov dword [eax], ecx
mov cl, byte [0x448e2e]
jmp 0x41223d
cmp al, 8
lea eax, [esp + 0x3c]
jne 0x41221e
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4121f8
mov edx, dword [str..ldres]
mov cx, word [0x448e2c]
mov dword [eax], edx
mov dl, byte [0x448e2e]
mov word [eax + 4], cx
mov byte [eax + 6], dl
jmp 0x412244
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x412220
mov ecx, dword [str..ldtmp]
mov dx, word [0x448e34]
mov dword [eax], ecx
mov cl, byte [0x448e36]
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.00409670
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0
push ecx
push 0x453d09
call fcn.0040d390
lea edx, [esp + 0x3c]
push 0x447a60
push edx
call fcn.00422167
add esp, 8
mov ebx, eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
test ebx, ebx
je 0x41246c
lea eax, [esp + 0x1c]
push str.SplitFile_fopen__path__s__GetLastError__d_
push eax
call fcn.00409670
mov ecx, dword [esp + 0x24]
add esp, 0x10
push 0
push ecx
push 0x453d09
call fcn.0040d390
push esi
call fcn.004227eb
add esp, 4
test eax, eax
jne 0x41239e
jmp 0x4122d8
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
push 0x8000
push 0
push edx
call fcn.00424c40
add esp, 0xc
cmp edi, 0x8000
jbe 0x4122f9
mov edi, 0x8000
mov eax, dword [esp + 0x18]
push esi
push edi
push 1
push eax
call fcn.00422af3
mov esi, eax
add esp, 0x10
cmp esi, edi
jne 0x412388
mov ecx, dword [esp + 0x264]
xor edi, edi
and ecx, 2
mov dword [esp + 0x254], edi
cmp cl, 2
jne 0x412356
mov edi, dword [esp + 0x18]
push esi
lea eax, [esp + 0x30]
call fcn.00412c30
add esp, 4
push ebx
push esi
mov edx, edi
push 1
push edx
call fcn.004223d3
add esp, 0x10
cmp esi, eax
je 0x41236b
mov dword [esp + 0x1c], 0
jmp 0x41239e
mov eax, dword [esp + 0x18]
push ebx
push esi
push 1
push eax
call fcn.004223d3
add esp, 0x10
cmp eax, esi
jne 0x41239a
sub dword [esp + 0x20], eax
je 0x41239e
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004227eb
add esp, 4
test eax, eax
je 0x4122d0
jmp 0x41239e
mov dword [esp + 0x1c], 0
mov byte [esp + 0x254], 0
jmp 0x41239e
mov dword [esp + 0x1c], edi
push ebx
call fcn.004221f5
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
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.00409670
mov eax, dword [esp + 0x24]
add esp, 0x10
push 0
push eax
push 0x453d09
call fcn.0040d390
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.00409670
mov edi, dword [esp + 0x28]
add esp, 0x14
push 0
push edi
push 0x453d09
call fcn.0040d390
lea ecx, [esp + 0x3c]
push ecx
call esi
cmp dword [esp + 0x1c], 0
je 0x41245d
push 2
push ebp
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
test esi, esi
je 0x41245d
mov edx, dword [esp + 0x28]
push edx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [esp + 0x18]
push eax
call fcn.004133e6
add esp, 4
jmp 0x412497
lea ecx, [esp + 0x1c]
push str.fopen_error_path:_s_Error_code:__d
push ecx
call fcn.00409670
mov edi, dword [esp + 0x24]
add esp, 0x10
push 0
push edi
push 0x453d09
call fcn.0040d390
mov dword [esp + 0x1c], 0
add edi, 0xfffffff0
mov dword [esp + 0x254], 0xffffffff
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4124be
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24c]
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.0042179d
add esp, 0x244
ret