Function at 0x1400352bc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov r12, rdx
mov r15, rcx
call fcn.140035254
xor ebx, ebx
lea r13, [r15 + 8]
mov byte [r13], bl
mov qword [r15 + 0x208], rbx
lea ecx, [rbx + 0x50]
call fcn.1400d3c34
mov rcx, rax
call fcn.140033f54
mov qword [r15], rax
mov r14d, ebx
call fcn.14000a074
test rax, rax
je 0x140035350
call fcn.14000a074
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x1a8]
test rax, rax
je 0x140035350
call fcn.14000a074
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x1a8]
xor r9d, r9d
lea r8, [0x14010db2c]
mov rdx, r12
mov rcx, rax
mov r14, rax
mov r10, qword [rax]
call qword [r10 + 0x78]
jmp 0x14003535f
lea rdx, [0x14010db2c]
mov rcx, r12
call fcn.1400be43c
mov rsi, rax
test rax, rax
jne 0x14003538d
call fcn.1400d3adc
lea r8, [0x1401132d8]
mov qword [rsp + 0x20], r12
mov edx, 0x200
mov rcx, r13
mov r9d, dword [rax]
call fcn.14002cdd4
jmp 0x14003569d
test r14, r14
je 0x1400353d3
mov rax, qword [r14]
mov r9d, 2
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [rax + 0x98]
mov rax, qword [r14]
mov rdx, rsi
mov rcx, r14
call qword [rax + 0xa0]
mov r10, qword [r14]
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
mov ebp, eax
call qword [r10 + 0x98]
jmp 0x1400353f8
xor edx, edx
mov rcx, rsi
lea r8d, [rdx + 2]
call fcn.1400a0ee8
mov rcx, rsi
call fcn.1400d6604
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov ebp, eax
call fcn.1400a0ee8
lea eax, [rbp + 3]
mov ecx, eax
mov dword [rsp + 0xb0], eax
call fcn.1400d3c34
mov rdi, rax
test rax, rax
jne 0x14003542d
mov r9, r12
lea r8, [0x140113300]
mov edx, 0x200
mov rcx, r13
call fcn.14002cdd4
jmp 0x140035583
mov r13d, ebp
mov r12d, 1
test r14, r14
je 0x140035466
mov rax, qword [r14]
mov r9d, r13d
mov r8d, r12d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
mov rcx, r14
call qword [rax + 0x80]
mov rax, qword [r14]
mov rdx, rsi
mov rcx, r14
call qword [rax + 0xa8]
jmp 0x14003547f
mov r9, rsi
mov r8, r13
mov rdx, r12
mov rcx, rdi
call fcn.1400a0b08
mov rcx, rsi
call fcn.14009fdfc
lea eax, [rbp + 1]
mov byte [rdi + r13], bl
mov byte [rax + rdi], bl
mov rsi, rbx
mov dword [rsp + 0xc0], eax
mov qword [rsp + 0xc8], rax
lea eax, [rbp + 2]
mov byte [rax + rdi], bl
cmp byte [rdi], 0x80
jne 0x1400354cd
mov eax, dword [rsp + 0xb0]
lea rdx, [rsp + 0x40]
mov rcx, r15
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x4c], rbx
call fcn.140035cbc
jmp 0x14003569f
mov rcx, qword [rsp + 0xb8]
mov r8d, ebp
mov rdx, rdi
call fcn.140036844
test eax, eax
je 0x14003557b
mov rcx, rdi
call fcn.14003697c
test eax, eax
je 0x140035538
shr r13, 1
mov eax, 0xfffe
mov rbp, rdi
mov word [rdi + r13*2], bx
cmp word [rdi], ax
jne 0x14003552b
lea rdx, [rdi + 2]
cmp word [rdx], bx
je 0x14003552b
mov r8, r12
mov cl, byte [rdx]
add r8, r12
mov al, byte [rdx + 1]
mov byte [rdx], al
mov byte [rdx + 1], cl
lea rdx, [rdi + r8*2]
cmp word [rdx], bx
jne 0x140035515
mov eax, 0x20
mov word [rdi], ax
mov eax, r12d
jmp 0x1400355b3
mov rcx, qword [rsp + 0xc8]
add rcx, rcx
call fcn.1400d3c34
mov rbp, rax
test rax, rax
je 0x14003557b
mov r9d, dword [rsp + 0xc0]
mov r8, rdi
mov dword [rsp + 0x28], r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [fcn.14010b490]
test eax, eax
jne 0x1400355a9
mov rcx, rbp
call fcn.14009f9ec
mov rcx, rdi
call fcn.14009f9ec
test rsi, rsi
je 0x14003569d
test r14, r14
je 0x140035695
mov rax, qword [r14]
mov rdx, rsi
mov rcx, r14
call qword [rax + 0xa8]
jmp 0x14003569d
mov rcx, rdi
call fcn.14009f9ec
mov eax, ebx
mov dword [r15 + 0x218], eax
mov rcx, rbp
movzx eax, word [rbp]
jmp 0x1400355dd
movzx eax, ax
lea rdx, [0x140112810]
and eax, 0x7f
test byte [rax + rdx], r12b
je 0x1400355e2
add rcx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x1400355c3
cmp word [rcx], bx
jne 0x1400355fe
lea rax, [0x140113318]
mov qword [r15 + 0x208], rcx
mov qword [r15 + 0x210], rax
jmp 0x140035613
mov rdx, rcx
mov r8, r15
mov rcx, qword [r15]
call fcn.140034588
mov rcx, qword [r15 + 0x208]
test rcx, rcx
je 0x140035689
sub rcx, rbp
mov r8d, r12d
sar rcx, 1
mov edx, r12d
movsxd r9, ecx
test ecx, ecx
jle 0x14003564d
cmp word [rbp + rbx*2], 0xa
lea eax, [rdx + 1]
mov edx, r12d
cmovne edx, eax
lea eax, [r8 + 1]
cmovne eax, r8d
add rbx, r12
mov r8d, eax
cmp rbx, r9
jl 0x14003562b
mov rax, qword [r15 + 0x210]
lea rcx, [r15 + 8]
mov r9, qword [rsp + 0xb8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edx
mov edx, 0x200
mov dword [rsp + 0x20], r8d
lea r8, [0x140113330]
call fcn.14002cdd4
mov rcx, rbp
call fcn.14009f9ec
jmp 0x14003569d
mov qword [r15 + 0x220], rbp
mov eax, r12d
jmp 0x14003569f
mov rcx, rsi
call fcn.14009fdfc
xor eax, eax
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret