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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov ebx, dword [rsp + 0xc0]
lea eax, [r8 + r8*2]
shl eax, 8
mov rbp, rdx
mov dword [rsp + 0xc8], eax
mov rsi, rcx
mov r15d, r8d
cmp r8d, eax
ja 0x180077835
mov r14, qword [rsp + 0xc8]
mov r13, qword [rsp + 0xc8]
mov r12, qword [rsp + 0xc8]
mov edi, dword [rsp + 0xc0]
nop word [rax + rax]
cmp r15d, 0xbbb9
ja 0x1800777fc
je 0x1800777dd
cmp r15d, 0x3f39
ja 0x1800776ff
je 0x1800776c2
mov eax, r15d
sub eax, 0x99
je 0x180077681
sub eax, 0x60
je 0x1800775bb
cmp eax, 0x25e0
jne 0x180077659
mov ebx, edi
jmp 0x180077659
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp dword [rbp], 1
mov r12, rax
jle 0x180077659
mov rcx, qword [rsi + 8]
lea rdx, [0x1801664c8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov r12, rax
test rax, rax
jne 0x180077659
mov ebp, 0x95
nop
cmp ebp, 0x95
je 0x18007760a
cmp ebp, 0x6fc
jne 0x180077643
mov eax, 1
jmp 0x180077837
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov ecx, 2
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rsi
lea rdx, str.sessionFromArgs:_pwaSession_is_NULL
mov rsi, qword [rsp + 0xb0]
mov rcx, rax
mov r8, qword [rsi]
call fcn.18015ba50
add ebp, 0x667
cmp ebp, 0xcce
jbe 0x1800775f0
mov rbp, qword [rsp + 0xb8]
mov eax, dword [rsp + 0xc0]
shl eax, 6
add r15d, eax
cmp r15d, dword [rsp + 0xc8]
ja 0x180077835
mov rsi, qword [rsp + 0xb0]
jmp 0x180077570
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov qword [rsp + 0x28], 0
mov r8, rbp
mov edx, 0x119
mov qword [rsp + 0x20], 0
xor ecx, ecx
call fcn.180010f30
mov r8, rbp
mov edx, 0x59
xor ecx, ecx
mov rdi, rax
call fcn.1800a47e0
jmp 0x180077659
xor edx, edx
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], 0x400
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], 0
lea ecx, [rdx + 0x54]
call fcn.1800ee280
mov r14, rax
jmp 0x180077659
cmp r15d, 0x4d19
je 0x180077835
cmp r15d, 0x7d79
jne 0x180077659
mov r9, r14
mov qword [rsp + 0x48], 0x400
xor r8d, r8d
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x48]
mov ecx, 0xa8
call fcn.18009e250
mov rcx, qword [r14 + 8]
mov r9, r12
mov r8, qword [r14 + 0x10]
mov edx, 1
sub r8, rcx
add rcx, qword [r14]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rbp, rax
test rax, rax
je 0x180077651
nop dword [rax + rax]
mov esi, 0x4d
cmp esi, 0x4d
jne 0x1800777a9
add qword [r14 + 8], rbp
lea rdx, [rsp + 0x48]
mov rax, qword [r14 + 8]
lea ecx, [rsi + 0x5b]
add rax, 0x400
mov qword [rsp + 0x20], 0
mov r9, r14
mov qword [rsp + 0x48], rax
xor r8d, r8d
call fcn.18009e250
add esi, 0x61
cmp esi, 0xae
jb 0x180077775
mov rcx, qword [r14 + 8]
mov r9, r12
mov r8, qword [r14 + 0x10]
mov edx, 1
sub r8, rcx
add rcx, qword [r14]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rbp, rax
test rax, rax
jne 0x180077770
jmp 0x180077651
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp r12, rax
je 0x180077659
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x180077659
cmp r15d, 0xf9f9
je 0x1800778d7
cmp r15d, 0x13839
je 0x1800778ad
cmp r15d, 0x17679
je 0x18007786b
cmp r15d, 0x1b4b9
je 0x180077848
cmp r15d, 0x1f2f9
jne 0x180077659
mov eax, ebx
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov qword [rsp + 0x28], r13
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0xc2
xor edx, edx
xor ecx, ecx
call fcn.1800a1ac0
xor ebx, ebx
jmp 0x180077659
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [r13 + 8]
mov edx, 1
mov rcx, qword [r13]
mov r9, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor r8d, r8d
mov dword [rsp + 0x20], 0xc2
xor edx, edx
xor ecx, ecx
call fcn.1800a1ac0
jmp 0x180077659
mov rax, qword [r14 + 8]
mov r9, r13
mov r8, qword [r14]
xor edx, edx
mov qword [rsp + 0x48], rax
mov ecx, 0x87
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call fcn.18008ecf0
jmp 0x180077659
xor edx, edx
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], 0x40
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], 0
lea ecx, [rdx + 0x54]
call fcn.1800ee280
mov r13, rax
jmp 0x180077659