Function at 0x140026c50
Capabilities:
Get file size
Read file on windows
Set file attributes
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x248
mov rax, qword [0x140322b20]
xor rax, rsp
mov qword [rsp + 0x238], rax
mov rcx, qword [rsp + 0x270]
call fcn.14001bd90
mov rcx, rax
call fcn.140048030
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x268]
call fcn.14001bd90
mov rcx, rax
call fcn.140048030
mov rcx, qword [rsp + 0x88]
mov rdx, rcx
mov rcx, rax
call fcn.1401fa488
test eax, eax
jne 0x140026cd2
mov eax, 1
jmp 0x14002743d
cmp dword [rsp + 0x278], 0
je 0x140026d6d
mov rcx, qword [rsp + 0x270]
call fcn.14001bd90
mov rcx, rax
call fcn.140048030
xor edx, edx
mov rcx, rax
call fcn.1401fa5fc
cmp eax, 0xffffffff
je 0x140026d6d
lea r9, [0x140252840]
xor r8d, r8d
mov edx, 2
lea rcx, [rsp + 0x1e0]
call fcn.140038d20
lea rcx, [rsp + 0xc8]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x140]
lea rcx, [rsp + 0xc8]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdx, str._tasp::library_Exists_forbit_cover._n
lea rcx, [rsp + 0x140]
call fcn.14003b980
xor eax, eax
jmp 0x14002743d
mov rcx, qword [rsp + 0x268]
call fcn.14001bd90
mov rcx, rax
call fcn.140048030
xor edx, edx
mov rcx, rax
call fcn.1401fa5fc
cmp eax, 0xffffffff
jne 0x140026dfd
lea r9, [0x140252940]
xor r8d, r8d
mov edx, 2
lea rcx, [rsp + 0x1c0]
call fcn.140038d20
lea rcx, [rsp + 0xa8]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x170]
lea rcx, [rsp + 0xa8]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdx, str._tasp::library_src_file_not_exist._n
lea rcx, [rsp + 0x170]
call fcn.14003b980
mov eax, 1
jmp 0x14002743d
mov rcx, qword [rsp + 0x268]
call fcn.14001bd90
mov rcx, rax
call fcn.140048030
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000020
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x140026edf
lea r9, [0x140252a50]
xor r8d, r8d
mov edx, 3
lea rcx, [rsp + 0x1a0]
call fcn.140038d20
lea rcx, [rsp + 0x110]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x7c], eax
xor edx, edx
mov rcx, qword [rsp + 0x268]
call fcn.14002f250
lea rcx, [rsp + 0x150]
lea rdx, [rsp + 0x110]
mov rdi, rcx
mov rsi, rdx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov ecx, dword [rsp + 0x7c]
mov r9d, ecx
mov r8, rax
lea rdx, str._tasp::library_CreateFile__lpExistingFileName:_s__err_lu
lea rcx, [rsp + 0x150]
call fcn.14003b980
xor eax, eax
jmp 0x14002743d
mov rdx, qword [rsp + 0x270]
lea rcx, [0x14032af98]
call fcn.1400287d0
mov dword [rsp + 0x58], 0
mov rcx, qword [rsp + 0x270]
call fcn.14001bd90
mov rcx, rax
call fcn.140048030
lea r8, [rsp + 0x210]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x140026f52
mov dword [rsp + 0x58], 1
mov rcx, qword [rsp + 0x270]
call fcn.14001bd90
mov rcx, rax
call fcn.140048030
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x270]
call fcn.14001bd90
mov rcx, rax
call fcn.140048030
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000020
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 3
mov edx, 0x40000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne 0x140027062
lea r9, [0x140252ef0]
xor r8d, r8d
mov edx, 3
lea rcx, [rsp + 0x1b0]
call fcn.140038d20
lea rcx, [rsp + 0x130]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x78], eax
xor edx, edx
mov rcx, qword [rsp + 0x270]
call fcn.14002f250
mov qword [rsp + 0x98], rax
xor edx, edx
mov rcx, qword [rsp + 0x268]
call fcn.14002f250
lea rcx, [rsp + 0xe0]
lea rdx, [rsp + 0x130]
mov rdi, rcx
mov rsi, rdx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov ecx, dword [rsp + 0x78]
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0x98]
mov r9, rcx
mov r8, rax
lea rdx, str._tasp::library_CreateFile__lpExistingFileName:_s___lpNewFileName:_s__err_lu
lea rcx, [rsp + 0xe0]
call fcn.14003b980
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14002743d
cmp dword [rsp + 0x290], 0
jne 0x140027077
mov dword [rsp + 0x290], 0x1000
mov eax, dword [rsp + 0x290]
mov ecx, eax
call fcn.14006dfa0
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x208]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rax, qword [rsp + 0x208]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x200], 0
mov dword [rsp + 0x44], 1
cmp qword [rsp + 0x68], 0
je 0x140027323
mov eax, dword [rsp + 0x290]
cmp qword [rsp + 0x68], rax
jbe 0x140027105
mov eax, dword [rsp + 0x290]
mov dword [rsp + 0x40], eax
jmp 0x14002710d
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x200]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x200], eax
je 0x1400271b8
lea r9, [0x140253320]
xor r8d, r8d
mov edx, 3
lea rcx, [rsp + 0x1d0]
call fcn.140038d20
lea rcx, [rsp + 0x100]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x120]
lea rdx, [rsp + 0x100]
mov rdi, rcx
mov rsi, rdx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov r8d, eax
lea rdx, str._tasp::library__ReadFile_err_lu.
lea rcx, [rsp + 0x120]
call fcn.14003b980
mov dword [rsp + 0x44], 0
jmp 0x140027323
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x200]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x200], eax
je 0x140027263
lea r9, [0x140253410]
xor r8d, r8d
mov edx, 3
lea rcx, [rsp + 0x1f0]
call fcn.140038d20
lea rcx, [rsp + 0xb8]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x160]
lea rdx, [rsp + 0xb8]
mov rdi, rcx
mov rsi, rdx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov r8d, eax
lea rdx, str._tasp::library__WriteFile_err_lu.
lea rcx, [rsp + 0x160]
call fcn.14003b980
mov dword [rsp + 0x44], 0
jmp 0x140027323
cmp qword [rsp + 0x280], 0
je 0x14002730a
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x288]
mov rcx, qword [rsp + 0x70]
call qword [rsp + 0x280]
test eax, eax
jne 0x14002730a
lea r9, [0x1402535a0]
xor r8d, r8d
mov edx, 3
lea rcx, [rsp + 0x190]
call fcn.140038d20
lea rcx, [rsp + 0x180]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xf0]
lea rcx, [rsp + 0x180]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdx, str._tasp::library_funfalse_break.
lea rcx, [rsp + 0xf0]
call fcn.14003b980
mov dword [rsp + 0x44], 0
jmp 0x140027323
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
jmp 0x1400270de
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x280], 0
je 0x14002734d
mov rdx, qword [rsp + 0x288]
mov rcx, qword [rsp + 0x70]
call qword [rsp + 0x280]
cmp qword [rsp + 0x60], 0xffffffffffffffff
je 0x140027360
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x58], 0
je 0x140027397
mov rcx, qword [rsp + 0x270]
call fcn.14001bd90
mov rcx, rax
call fcn.140048030
mov edx, dword [rsp + 0x210]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x268]
call fcn.14001bd90
mov rcx, rax
call fcn.140048030
lea r8, [rsp + 0x210]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1400273e8
mov rcx, qword [rsp + 0x270]
call fcn.14001bd90
mov rcx, rax
call fcn.140048030
mov edx, dword [rsp + 0x210]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp qword [rsp + 0x48], 0
je 0x140027439
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call fcn.14006dfa8
cmp qword [rsp + 0x80], 0
jne 0x140027423
mov qword [rsp + 0xa0], 0
jmp 0x140027439
mov qword [rsp + 0x48], 0x8123
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xa0], rax
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.1401fe250
add rsp, 0x248
pop rdi
pop rsi
ret