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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xb0
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
call dbg.__main
cmp dword [rbp + 0x10], 4
je 0x140001a6a
mov eax, 1
jmp 0x140001e77
mov rax, qword [rbp + 0x18]
add rax, 8
mov rax, qword [rax]
mov rcx, rax
call sym.trymap
test eax, eax
jne 0x140001a8d
mov rax, qword [0x140011030]
test rax, rax
jne 0x140001a97
mov eax, 2
jmp 0x140001e77
call sym.MH_Initialize
mov rdx, qword [0x140011030]
mov rcx, qword [0x14000c010]
movabs rax, 0x7ff6bf50d8fc
sub rax, rcx
add rax, rdx
lea r8, [0x140011038]
lea rdx, [sym.DetourMalloc]
mov rcx, rax
call sym.MH_CreateHook
test eax, eax
je 0x140001ade
mov eax, 3
jmp 0x140001e77
mov rdx, qword [0x140011030]
mov rcx, qword [0x14000c010]
movabs rax, 0x7ff6bf50d60c
sub rax, rcx
add rax, rdx
lea r8, [0x140011040]
lea rdx, [sym.DetourMalloc]
mov rcx, rax
call sym.MH_CreateHook
test eax, eax
je 0x140001b20
mov eax, 3
jmp 0x140001e77
mov rdx, qword [0x140011030]
mov rcx, qword [0x14000c010]
movabs rax, 0x7ff6bf50d4c4
sub rax, rcx
add rax, rdx
lea r8, [0x140011048]
lea rdx, [sym.DetourFree]
mov rcx, rax
call sym.MH_CreateHook
test eax, eax
je 0x140001b62
mov eax, 3
jmp 0x140001e77
mov rdx, qword [0x140011030]
mov rcx, qword [0x14000c010]
movabs rax, 0x7ff6bf3ef7f0
sub rax, rcx
add rax, rdx
lea r8, [0x140011050]
lea rdx, [sym.DetourWaitJob]
mov rcx, rax
call sym.MH_CreateHook
test eax, eax
je 0x140001ba4
mov eax, 3
jmp 0x140001e77
mov rdx, qword [0x140011030]
mov rcx, qword [0x14000c010]
movabs rax, 0x7ff6bf52bc98
sub rax, rcx
add rax, rdx
lea r8, [0x140011058]
lea rdx, [sym.DetourFailure]
mov rcx, rax
call sym.MH_CreateHook
test eax, eax
je 0x140001be6
mov eax, 3
jmp 0x140001e77
mov rdx, qword [0x140011030]
mov rcx, qword [0x14000c010]
movabs rax, 0x7ff6bf52ee8c
sub rax, rcx
add rax, rdx
lea r8, [0x140011060]
lea rdx, [sym.DetourFailure]
mov rcx, rax
call sym.MH_CreateHook
test eax, eax
je 0x140001c28
mov eax, 3
jmp 0x140001e77
mov rdx, qword [0x140011030]
mov rcx, qword [0x14000c010]
movabs rax, 0x7ff6bf3a4670
sub rax, rcx
add rax, rdx
lea r8, [0x140011068]
lea rdx, [sym.DetourFailure]
mov rcx, rax
call sym.MH_CreateHook
test eax, eax
je 0x140001c6a
mov eax, 3
jmp 0x140001e77
mov ecx, 0
call sym.MH_EnableHook
test eax, eax
je 0x140001c82
mov eax, 5
jmp 0x140001e77
mov rax, qword [rbp + 0x18]
add rax, 0x10
mov rax, qword [rax]
lea rdx, section..rdata
mov rcx, rax
call sym.fopen
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001cb1
mov eax, 6
jmp 0x140001e77
mov rax, qword [rbp - 8]
mov r8d, 2
mov edx, 0
mov rcx, rax
call sym.fseek
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.ftell
mov dword [rbp - 0xc], eax
mov rax, qword [rbp - 8]
mov r8d, 0
mov edx, 0
mov rcx, rax
call sym.fseek
mov eax, dword [rbp - 0xc]
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x140001d0e
mov eax, 7
jmp 0x140001e77
mov edx, dword [rbp - 0xc]
mov rcx, qword [rbp - 8]
mov rax, qword [rbp - 0x18]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov qword [rbp - 0x20], rax
mov eax, dword [rbp - 0xc]
cmp qword [rbp - 0x20], rax
je 0x140001d43
mov eax, 8
jmp 0x140001e77
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.fclose
mov rdx, qword [0x140011030]
mov rcx, qword [0x14000c010]
movabs rax, 0x7ff6bf455670
sub rax, rcx
add rax, rdx
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x40], 0
mov dword [rbp - 0x44], 0
lea rax, [rbp - 0x80]
mov r8d, 0x30
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp - 0x20]
mov r9d, eax
mov r8, qword [rbp - 0x18]
lea rdx, [rbp - 0x44]
lea rax, [rbp - 0x40]
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 0
mov r10, qword [rbp - 0x28]
mov rcx, rax
call r10
mov qword [rbp - 0x30], rax
cmp qword [rbp - 0x30], 0
je 0x140001dfc
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rdx, qword [rbp - 0x30]
mov r8, rdx
lea rdx, str.Unusual_result:__llx_n
mov rcx, rax
call sym.fprintf
mov eax, 6
jmp 0x140001e77
mov rax, qword [rbp - 0x40]
test rax, rax
jne 0x140001e0c
mov eax, 6
jmp 0x140001e77
mov eax, dword [rbp - 0x44]
test eax, eax
jne 0x140001e1a
mov eax, 6
jmp 0x140001e77
mov rax, qword [rbp + 0x18]
add rax, 0x18
mov rax, qword [rax]
lea rdx, [0x14000d14e]
mov rcx, rax
call sym.fopen
mov qword [rbp - 0x38], rax
cmp qword [rbp - 0x38], 0
jne 0x140001e46
mov eax, 7
jmp 0x140001e77
mov eax, dword [rbp - 0x44]
mov ecx, eax
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x38]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp - 0x38]
mov rcx, rax
call sym.fclose
mov eax, 0
add rsp, 0xb0
pop rbp
ret