Function at 0x14009dbf0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov r12d, 0xfffffffe
movsxd rax, ecx
mov ebx, r8d
cmp eax, r12d
mov dword [rsp + 0x34], r12d
mov dword [rsp + 0x38], ebx
jne 0x14009dc3c
call fcn.140084494
xor edi, edi
mov dword [rax], edi
call fcn.140084474
mov dword [rax], 9
jmp 0x14009e309
xor edi, edi
cmp eax, edi
jl 0x14009e2e3
cmp eax, dword [0x1400e6ac4]
jae 0x14009e2e3
mov sil, al
mov r14, rax
lea r8, [0x140000000]
sar r14, 5
and esi, 0x1f
mov rcx, qword [r8 + r14*8 + 0xe6ae0]
imul rsi, rsi, 0x38
mov al, byte [rcx + rsi + 8]
test al, 1
je 0x14009e2e3
cmp ebx, edi
mov ebp, edi
je 0x14009e2df
test al, 2
jne 0x14009e2df
cmp rdx, rdi
jne 0x14009dcac
call fcn.140084494
mov dword [rax], edi
call fcn.140084474
mov dword [rax], 0x16
jmp 0x14009e2f5
mov r15d, dword [rcx + rsi + 0xc]
mov ecx, 4
and r15d, 3
mov eax, r15d
sub eax, 1
je 0x14009dcd7
cmp eax, 1
jne 0x14009dcd2
mov eax, ebx
not eax
test al, 1
je 0x14009dc95
and ebx, 0xfffffffe
mov r13, rdx
jmp 0x14009dd17
mov eax, ebx
not eax
test al, 1
je 0x14009dc95
shr ebx, 1
cmp ebx, ecx
cmovb ebx, ecx
mov ecx, ebx
call fcn.14007f8a4
cmp rax, rdi
mov r13, rax
jne 0x14009dd10
call fcn.140084474
mov dword [rax], 0xc
call fcn.140084494
mov dword [rax], 8
jmp 0x14009e309
lea r8, [0x140000000]
mov rax, qword [r8 + r14*8 + 0xe6ae0]
mov rdx, r13
test byte [rax + rsi + 8], 0x48
je 0x14009ddcc
mov cl, byte [rax + rsi + 9]
cmp cl, 0xa
je 0x14009ddcc
cmp ebx, edi
je 0x14009ddcc
mov byte [r13], cl
mov rax, qword [r8 + r14*8 + 0xe6ae0]
or r9d, 0xffffffff
add ebx, r9d
cmp r15d, edi
lea rdx, [r13 + 1]
mov byte [rax + rsi + 9], 0xa
mov ebp, 1
je 0x14009ddcc
mov rax, qword [r8 + r14*8 + 0xe6ae0]
mov cl, byte [rax + rsi + 0xa]
cmp cl, 0xa
je 0x14009ddcc
cmp ebx, edi
je 0x14009ddcc
mov byte [rdx], cl
mov rax, qword [r8 + r14*8 + 0xe6ae0]
add rdx, rbp
add ebx, r9d
cmp r15d, 1
mov ebp, 2
mov byte [rax + rsi + 0xa], 0xa
jne 0x14009ddcc
mov rax, qword [r8 + r14*8 + 0xe6ae0]
mov cl, byte [rax + rsi + 0xb]
cmp cl, 0xa
je 0x14009ddcc
cmp ebx, edi
je 0x14009ddcc
mov byte [rdx], cl
mov rax, qword [r8 + r14*8 + 0xe6ae0]
add rdx, 1
lea ebp, [r15 + 2]
add ebx, r9d
mov byte [rax + rsi + 0xb], 0xa
mov rcx, qword [r8 + r14*8 + 0xe6ae0]
lea r9, [rsp + 0x30]
mov r8d, ebx
mov rcx, qword [rcx + rsi]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x14009e2a3
movsxd rdx, dword [rsp + 0x30]
cmp edx, edi
jl 0x14009e2a3
mov eax, ebx
cmp rdx, rax
ja 0x14009e2a3
lea r8, [0x140000000]
add ebp, edx
mov rax, qword [r8 + r14*8 + 0xe6ae0]
test byte [rax + rsi + 8], 0x80
je 0x14009e281
cmp r15d, 2
je 0x14009e0d9
cmp edx, edi
je 0x14009de43
cmp byte [r13], 0xa
jne 0x14009de43
or byte [rax + rsi + 8], 4
jmp 0x14009de48
and byte [rax + rsi + 8], 0xfb
movsxd rax, ebp
mov rbx, r13
mov r12, r13
lea rbp, [rax + r13]
cmp r13, rbp
jae 0x14009df91
mov al, byte [r12]
cmp al, 0x1a
je 0x14009df71
cmp al, 0xd
je 0x14009de7d
mov byte [rbx], al
add rbx, 1
add r12, 1
jmp 0x14009df66
lea rax, [rbp - 1]
cmp r12, rax
jae 0x14009dea1
lea rax, [r12 + 1]
cmp byte [rax], 0xa
jne 0x14009de99
add r12, 2
jmp 0x14009df2a
mov r12, rax
jmp 0x14009df5f
mov rcx, qword [r8 + r14*8 + 0xe6ae0]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0xa0]
mov rcx, qword [rcx + rsi]
mov r8d, 1
add r12, 1
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
jne 0x14009dedd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x14009df58
cmp dword [rsp + 0x30], edi
je 0x14009df58
lea r8, [0x140000000]
mov rax, qword [r8 + r14*8 + 0xe6ae0]
test byte [rax + rsi + 8], 0x48
je 0x14009df1b
cmp byte [rsp + 0xa0], 0xa
je 0x14009df2a
mov byte [rbx], 0xd
mov rcx, qword [r8 + r14*8 + 0xe6ae0]
mov al, byte [rsp + 0xa0]
mov byte [rcx + rsi + 9], al
jmp 0x14009df62
cmp rbx, r13
jne 0x14009df2f
cmp byte [rsp + 0xa0], 0xa
jne 0x14009df2f
mov byte [rbx], 0xa
jmp 0x14009df62
mov ecx, dword [rsp + 0x90]
mov r8d, 1
or rdx, 0xffffffffffffffff
call fcn.1400952b4
cmp byte [rsp + 0xa0], 0xa
lea r8, [0x140000000]
je 0x14009df66
jmp 0x14009df5f
lea r8, [0x140000000]
mov byte [rbx], 0xd
add rbx, 1
cmp r12, rbp
jb 0x14009de5e
jmp 0x14009df91
mov rax, qword [r8 + r14*8 + 0xe6ae0]
test byte [rax + rsi + 8], 0x40
jne 0x14009df87
or byte [rax + rsi + 8], 2
jmp 0x14009df91
mov al, byte [r12]
mov byte [rbx], al
add rbx, 1
mov ebp, ebx
sub ebp, r13d
cmp r15d, 1
jne 0x14009e27c
cmp ebp, edi
je 0x14009e27c
mov r15d, 1
sub rbx, r15
test byte [rbx], 0x80
jne 0x14009dfbe
add rbx, r15
jmp 0x14009e071
mov edx, r15d
jmp 0x14009dfd3
cmp edx, 4
jg 0x14009dfe0
cmp rbx, r13
jb 0x14009dfe0
sub rbx, r15
add edx, r15d
movzx eax, byte [rbx]
cmp byte [rax + r8 + 0xdf0b0], dil
je 0x14009dfc3
movzx ecx, byte [rbx]
movsx eax, byte [rcx + r8 + 0xdf0b0]
cmp eax, edi
jne 0x14009e004
call fcn.140084474
mov dword [rax], 0x2a
or r12d, 0xffffffff
jmp 0x14009e281
add eax, r15d
cmp eax, edx
jne 0x14009e013
movsxd rax, edx
add rbx, rax
jmp 0x14009e071
mov rax, qword [r8 + r14*8 + 0xe6ae0]
test byte [rax + rsi + 8], 0x48
je 0x14009e05d
add rbx, r15
cmp edx, 2
mov byte [rax + rsi + 9], cl
jl 0x14009e03f
mov al, byte [rbx]
mov rcx, qword [r8 + r14*8 + 0xe6ae0]
add rbx, r15
mov byte [rcx + rsi + 0xa], al
cmp edx, 3
jne 0x14009e055
mov al, byte [rbx]
mov rcx, qword [r8 + r14*8 + 0xe6ae0]
add rbx, r15
mov byte [rcx + rsi + 0xb], al
movsxd rax, edx
sub rbx, rax
jmp 0x14009e071
mov ecx, dword [rsp + 0x90]
neg edx
mov r8d, r15d
movsxd rdx, edx
call fcn.1400952b4
mov rsi, qword [rsp + 0x98]
mov ebp, ebx
mov ebx, dword [rsp + 0x38]
mov eax, ebx
sub ebp, r13d
mov r8, r13
shr eax, 1
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], eax
mov r9d, ebp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd r11, eax
cmp r11d, edi
je 0x14009e0c3
mov rcx, r11
add rcx, rcx
cmp rcx, rbx
ja 0x14009e0c3
mov r12d, dword [rsp + 0x34]
lea ebp, [r11 + r11]
jmp 0x14009e289
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400844b4
or r12d, 0xffffffff
jmp 0x14009e289
cmp edx, edi
je 0x14009e0ec
cmp word [r13], 0xa
jne 0x14009e0ec
or byte [rax + rsi + 8], 4
jmp 0x14009e0f1
and byte [rax + rsi + 8], 0xfb
movsxd r15, ebp
mov rbx, r13
mov r12, r13
lea rbp, [r15 + r13 - 1]
cmp r13, rbp
jae 0x14009e277
movzx eax, word [r12]
cmp ax, 0x1a
je 0x14009e255
cmp ax, 0xd
je 0x14009e12d
mov word [rbx], ax
add rbx, 2
add r12, 2
jmp 0x14009e24a
lea rax, [r15 + r13 - 2]
cmp r12, rax
jae 0x14009e153
lea rax, [r12 + 2]
cmp word [rax], 0xa
jne 0x14009e14b
add r12, 4
jmp 0x14009e208
mov r12, rax
jmp 0x14009e241
mov rcx, qword [r8 + r14*8 + 0xe6ae0]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0xa8]
mov rcx, qword [rcx + rsi]
mov r8d, 2
add r12, 2
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
jne 0x14009e193
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x14009e23a
cmp dword [rsp + 0x30], edi
je 0x14009e23a
lea r8, [0x140000000]
mov rax, qword [r8 + r14*8 + 0xe6ae0]
test byte [rax + rsi + 8], 0x48
je 0x14009e1f8
cmp word [rsp + 0xa8], 0xa
je 0x14009e208
mov word [rbx], 0xd
mov al, byte [rsp + 0xa8]
mov rcx, qword [r8 + r14*8 + 0xe6ae0]
mov byte [rcx + rsi + 9], al
mov al, byte [rsp + 0xa9]
mov rcx, qword [r8 + r14*8 + 0xe6ae0]
mov byte [rcx + rsi + 0xa], al
mov rax, qword [r8 + r14*8 + 0xe6ae0]
mov byte [rax + rsi + 0xb], 0xa
jmp 0x14009e246
cmp rbx, r13
jne 0x14009e20f
cmp word [rsp + 0xa8], 0xa
jne 0x14009e20f
mov word [rbx], 0xa
jmp 0x14009e246
mov ecx, dword [rsp + 0x90]
mov rdx, 0xfffffffffffffffe
lea r8d, [rdx + 3]
call fcn.1400952b4
cmp word [rsp + 0xa8], 0xa
lea r8, [0x140000000]
je 0x14009e24a
jmp 0x14009e241
lea r8, [0x140000000]
mov word [rbx], 0xd
add rbx, 2
cmp r12, rbp
jb 0x14009e108
jmp 0x14009e277
mov rax, qword [r8 + r14*8 + 0xe6ae0]
test byte [rax + rsi + 8], 0x40
jne 0x14009e26b
or byte [rax + rsi + 8], 2
jmp 0x14009e277
movzx eax, word [r12]
mov word [rbx], ax
add rbx, 2
mov ebp, ebx
sub ebp, r13d
mov r12d, dword [rsp + 0x34]
mov rsi, qword [rsp + 0x98]
cmp r13, rsi
je 0x14009e296
mov rcx, r13
call fcn.14007f814
cmp r12d, 0xfffffffe
cmove r12d, ebp
mov eax, r12d
jmp 0x14009e30c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x14009e2c9
call fcn.140084474
mov dword [rax], 9
call fcn.140084494
mov dword [rax], 5
jmp 0x14009dffb
cmp eax, 0x6d
jne 0x14009e2d3
mov r12d, edi
jmp 0x14009e281
mov ecx, eax
call fcn.1400844b4
jmp 0x14009dffb
xor eax, eax
jmp 0x14009e30c
call fcn.140084494
mov dword [rax], edi
call fcn.140084474
mov dword [rax], 9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400843ac
or eax, 0xffffffff
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret