Function at 0x1400017b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x60
mov rax, qword [0x14001f3f8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x78], rsi
lea rdx, [0x14001f0c0]
lea rcx, [0x14001f6d8]
mov qword [rsp + 0x80], rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov qword [0x14001f6d0], rax
test rax, rax
jne 0x14000180c
lea rdx, [0x14001f6d8]
lea ecx, [rax + 0xe]
call fcn.1400026c0
mov rax, qword [0x14001f6d0]
xor edi, edi
cmp byte [0x14001f5c8], dil
jne 0x140001833
mov ecx, edi
cmp byte [0x14001f5b3], cl
setne cl
xor edx, edx
add ecx, 0x18
call fcn.1400026c0
mov rax, qword [0x14001f6d0]
movzx r8d, byte [0x14001f5b3]
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.1400013e0
cmp dword [rsp + 0x20], edi
je 0x140001868
mov ecx, edi
lea rdx, [0x14001f6d8]
cmp byte [0x14001f5b3], cl
setne cl
add ecx, 0x1c
call fcn.1400026c0
lea rdx, [0x14001f0c4]
lea rcx, [0x14001f5c8]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov qword [0x14001f5c0], rax
mov rbx, rax
test rax, rax
jne 0x1400018a0
lea rdx, [0x14001f5c8]
lea ecx, [rax + 0xe]
call fcn.1400026c0
mov rbx, qword [0x14001f5c0]
movzx esi, byte [0x14001f5b3]
mov r14d, 0x8302
test sil, sil
je 0x14000191a
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
mov edx, 1
lea rcx, [rsp + 0x40]
mov r9, rbx
lea r8d, [rdx + 0x11]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
cmp rax, 0x12
jne 0x14000190c
mov eax, dword [rsp + 0x40]
cmp eax, 0xc3d4c1d7
je 0x1400018ed
cmp eax, 0xff0006ff
jne 0x14000190c
mov eax, dword [rsp + 0x44]
cmp eax, 0xc3d2cdcf
je 0x1400019b0
and eax, 0xffff0000
cmp eax, 0x10300000
je 0x1400019b0
mov rbx, qword [0x14001f5c0]
movzx esi, byte [0x14001f5b3]
mov edx, 0xfffffff2
mov qword [rsp + 0x70], rbp
mov rcx, rbx
lea r8d, [rdx + 0x10]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
jne 0x140001991
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
mov edx, 1
lea rcx, [rsp + 0x40]
mov r9, rbx
lea ebp, [rax + 0xe]
lea r8d, [rdx + 0xd]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
cmp rax, 0xe
jne 0x140001991
movzx eax, word [rsp + 0x40]
test sil, sil
mov edx, 0x8386
cmovne edx, r14d
cmp eax, edx
jne 0x140001976
cmp ebp, dword [rsp + 0x4a]
je 0x1400019ab
test sil, sil
jne 0x140001991
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400013e0
cmp dword [rsp + 0x20], edi
jne 0x1400019ab
cmp byte [0x14001f5b3], dil
lea rdx, [0x14001f5c8]
setne dil
lea ecx, [rdi + 0x1e]
call fcn.1400026c0
mov rbp, qword [rsp + 0x70]
mov rcx, qword [0x14001f6d0]
xor r8d, r8d
xor edx, edx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
mov rbx, qword [0x14001fb10]
mov esi, 0xffffffff
mov edi, esi
nop
mov r9, qword [0x14001f6d0]
mov edx, 1
mov rcx, qword [0x14001f5b8]
mov r8d, edi
cmp rbx, r8
cmovbe r8, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov rcx, qword [0x14001f6d0]
mov rbx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
je 0x140001a16
lea rdx, [0x14001f6d8]
mov ecx, 0x12
call fcn.1400026c0
test rbx, rbx
je 0x140001a50
mov r9, qword [0x14001f8f0]
mov r8, rbx
mov rcx, qword [0x14001f5b8]
mov edx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
cmp rbx, rax
je 0x140001a4c
lea rdx, [0x14001f8f8]
mov ecx, 0x13
call fcn.1400026c0
sub edi, ebx
jne 0x1400019d0
mov rcx, qword [0x14001f6d0]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rcx, qword [0x14001f5c0]
xor r8d, r8d
xor edx, edx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
mov rbx, qword [0x14001fb10]
mov rdi, qword [rsp + 0x80]
nop dword [rax]
mov r9, qword [0x14001f5c0]
mov edx, 1
mov rcx, qword [0x14001f5b8]
mov r8d, esi
cmp rbx, r8
cmovbe r8, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov rcx, qword [0x14001f5c0]
mov rbx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
je 0x140001ac6
lea rdx, [0x14001f5c8]
mov ecx, 0x12
call fcn.1400026c0
test rbx, rbx
je 0x140001b00
mov r9, qword [0x14001f8f0]
mov r8, rbx
mov rcx, qword [0x14001f5b8]
mov edx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
cmp rbx, rax
je 0x140001afc
lea rdx, [0x14001f8f8]
mov ecx, 0x13
call fcn.1400026c0
sub esi, ebx
jne 0x140001a80
cmp byte [0x14001f5b3], 0
mov rsi, qword [rsp + 0x78]
je 0x140001bc1
mov rcx, qword [0x14001f5c0]
mov edx, 0xfffffff2
lea r8d, [rdx + 0x10]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
je 0x140001b3c
lea rdx, [0x14001f5c8]
mov ecx, 0x11
call fcn.1400026c0
mov rcx, qword [0x14001f5c0]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
mov r9, qword [0x14001f5c0]
lea rcx, [rsp + 0x30]
mov edx, 1
lea ebx, [rax + 0xe]
lea r8d, [rdx + 0xd]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
cmp rax, 0xe
je 0x140001b7c
lea rdx, [0x14001f5c8]
mov ecx, 0x12
call fcn.1400026c0
cmp word [rsp + 0x30], r14w
jne 0x140001b8a
cmp dword [rsp + 0x3a], ebx
je 0x140001bc1
mov r9, qword [0x14001f8f0]
lea eax, [rbx + 0xe]
mov edx, 1
mov word [rsp + 0x30], r14w
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x3a], eax
lea r8d, [rdx + 0xd]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
cmp rax, 0xe
je 0x140001bc1
xor edx, edx
lea ecx, [rdx + 0x14]
call fcn.1400026c0
mov rcx, qword [0x14001f5c0]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400078a0
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop r14
ret