Function at 0x140010cb0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r13
sub rsp, 0x50
xor r13d, r13d
mov rsi, rdx
mov rbx, rcx
mov dword [rdx], r13d
xor edx, edx
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], r13
call fcn.140021788
test eax, eax
je 0x140010cf0
call fcn.14001e770
mov ecx, dword [rax]
lea eax, [r13 + 2]
mov dword [rsi], ecx
add rsp, 0x50
pop r13
pop rsi
pop rbx
ret
mov edx, 0x8000
mov r8d, 0x40
mov rcx, rbx
call fcn.140021690
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140010d1f
call fcn.14001e770
mov ecx, dword [rax]
lea eax, [rbx + 4]
mov dword [rsi], ecx
add rsp, 0x50
pop r13
pop rsi
pop rbx
ret
mov ecx, eax
mov qword [rsp + 0x70], rbp
call fcn.1400200fc
mov ebp, eax
cmp eax, 0xffffffff
je 0x140010f4d
test eax, eax
je 0x140010f4d
mov ecx, 0x9040
mov qword [rsp + 0x88], rdi
call fcn.14001cc38
mov rdi, rax
test rax, rax
jne 0x140010d70
call fcn.14001e770
mov ecx, dword [rax]
mov dword [rsi], ecx
mov ecx, ebx
call fcn.140020b00
lea eax, [rdi + 4]
jmp 0x140010ee7
mov r8d, 2
or edx, 0xffffffff
mov ecx, ebx
call fcn.140020c5c
lea rdx, [rsp + 0x78]
mov r8d, 1
mov ecx, ebx
call fcn.140020928
cmp eax, 1
je 0x140010db9
call fcn.14001e770
mov ecx, dword [rax]
mov dword [rsi], ecx
mov ecx, ebx
call fcn.140020b00
mov rcx, rdi
call fcn.14001ccf0
mov eax, 1
jmp 0x140010ee7
cmp byte [rsp + 0x78], 0x42
mov ecx, ebx
jne 0x140010f39
xor r8d, r8d
xor edx, edx
call fcn.140020c5c
cmp byte [rsp + 0x78], 0x42
mov ecx, ebx
jne 0x140010f39
lea edx, [rbp - 0x101]
xor r8d, r8d
mov qword [rsp + 0x48], r12
call fcn.140020c5c
lea rdx, [rdi + 0x400]
mov r8d, 0x100
mov ecx, ebx
call fcn.140020928
cmp eax, 0x100
je 0x140010e2d
call fcn.14001e770
mov ecx, dword [rax]
mov dword [rsi], ecx
mov ecx, ebx
call fcn.140020b00
mov rcx, rdi
call fcn.14001ccf0
mov eax, 1
jmp 0x140010ee2
lea rax, [rdi + 0x1000]
lea r8, [0x14004f340]
lea rcx, [rdi + 0x400]
mov r9d, 0x800
mov rdx, rdi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], r14
call fcn.1400127d0
xor r8d, r8d
xor edx, edx
mov ecx, ebx
call fcn.140020c5c
mov r11d, dword [rdi + 0x14]
mov r14d, dword [rdi + 4]
mov r13d, dword [rdi + 8]
mov r12d, dword [rdi + 0xc]
mov esi, dword [rdi + 0x10]
mov dword [rsp + 0x80], r11d
xor byte [rsp + 0x80], 0x97
xor byte [rsp + 0x81], 0x1f
xor byte [rsp + 0x82], 0x62
xor byte [rsp + 0x83], 0xc1
xor r8d, r8d
xor edx, edx
mov ecx, ebx
call fcn.140020c5c
xor r9d, r9d
lea rdx, [rsp + 0x30]
lea r8d, [r9 + 0x10]
mov ecx, ebx
call fcn.140010400
mov ecx, ebx
test eax, eax
je 0x140010efd
call fcn.140020b00
mov rcx, rdi
call fcn.14001ccf0
mov eax, 7
mov r14, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop r13
pop rsi
pop rbx
ret
call fcn.140020b00
mov rcx, rdi
call fcn.14001ccf0
cmp ebp, dword [rsp + 0x80]
jne 0x140010f32
cmp dword [rsp + 0x30], r14d
jne 0x140010f32
cmp dword [rsp + 0x34], r13d
jne 0x140010f32
cmp dword [rsp + 0x38], r12d
jne 0x140010f32
cmp dword [rsp + 0x3c], esi
jne 0x140010f32
xor eax, eax
jmp 0x140010edd
mov eax, 5
jmp 0x140010edd
call fcn.140020b00
mov rcx, rdi
call fcn.14001ccf0
mov eax, 5
jmp 0x140010ee7
call fcn.14001e770
mov ecx, dword [rax]
mov dword [rsi], ecx
mov ecx, ebx
call fcn.140020b00
mov rbp, qword [rsp + 0x70]
mov eax, 1
add rsp, 0x50
pop r13
pop rsi
pop rbx
ret