Function at 0x1400b1740
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
push rsi
push rdi
push r13
push r14
sub rsp, 0x58
xor r14d, r14d
mov rdi, r9
mov rax, r8
mov r13, rdx
mov rsi, rcx
mov dword [rsp + 0x24], r14d
cmp r14w, word [r8 + 6]
jge 0x1400b1a34
mov qword [r11 + 8], rbx
mov qword [r11 - 0x28], rbp
mov qword [r11 - 0x30], r12
mov qword [r11 - 0x38], r15
mov ebp, 0x100
mov r15d, 0xc000
mov rcx, rsi
call fcn.140066b20
mov rcx, rsi
mov ebx, eax
call fcn.140066da0
mov rcx, qword [rsi]
movzx r12d, ax
call fcn.1401c2310
lea ecx, [rax - 6]
add ecx, ebx
mov dword [rsp + 0x30], ecx
lea ecx, [r12 - 4]
cmp ecx, 0xc
ja case.0x1400b17dc.5
lea rax, [0x140000000]
movsxd rcx, ecx
mov edx, dword [rax + rcx*4 + 0xb1c64]
add rdx, rax
jmp rdx
mov eax, dword [r13 + 0xc]
xor edx, edx
mov rcx, rdi
imul eax, dword [r13 + 8]
movsxd r8, eax
call fcn.1401c0040
jmp case.0x1400b17dc.5
mov rcx, rsi
call fcn.140066da0
movzx eax, ax
test eax, eax
jle 0x1400b1c5a
mov r13d, eax
mov qword [rsp + 0x28], rax
mov rcx, qword [rsi]
call fcn.1401c3f28
mov rcx, qword [rsi]
mov ebx, eax
call fcn.1401c3f28
test eax, eax
mov r15d, eax
cmove r15d, ebp
add r14d, ebx
xor ebp, ebp
test r15d, r15d
jle 0x1400b190f
mov rbx, qword [rsp + 0xa0]
movsxd rdi, r14d
mov r13d, 0x100
add rbx, 2
lea rbx, [rbx + rdi*2]
add rbx, rdi
nop dword [rax]
cmp rdi, r13
jge 0x1400b190a
mov rcx, qword [rsi]
call fcn.1401c3f28
cmp r12w, 0xb
jne 0x1400b18dd
imul ecx, eax, 0xff
mov eax, 0x82082083
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov byte [rbx - 2], dl
mov rcx, qword [rsi]
call fcn.1401c3f28
imul ecx, eax, 0xff
mov eax, 0x82082083
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov byte [rbx - 1], dl
mov rcx, qword [rsi]
call fcn.1401c3f28
imul ecx, eax, 0xff
mov eax, 0x82082083
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov byte [rbx], dl
jmp 0x1400b18f5
mov byte [rbx - 2], al
mov rcx, qword [rsi]
call fcn.1401c3f28
mov byte [rbx - 1], al
mov rcx, qword [rsi]
call fcn.1401c3f28
mov byte [rbx], al
inc ebp
inc r14d
inc rdi
add rbx, 3
cmp ebp, r15d
jl 0x1400b1860
mov r13, qword [rsp + 0x28]
dec r13
mov ebp, 0x100
mov qword [rsp + 0x28], r13
jne 0x1400b1814
mov r13, qword [rsp + 0x88]
xor r14d, r14d
jmp 0x1400b19e2
mov rcx, rsi
call fcn.140066da0
mov rcx, rsi
movzx r12d, ax
call fcn.140066da0
movzx r15d, ax
test r15d, r15d
jle 0x1400b192a
nop
mov rcx, qword [rsi]
call fcn.1401c3f28
lea ecx, [r14 + r12]
imul ecx, dword [r13 + 8]
movsxd rdi, ecx
add rdi, qword [rsp + 0x98]
test eax, eax
jle 0x1400b19ce
mov ebp, eax
mov rcx, qword [rsi]
call fcn.1401c3f28
mov rcx, qword [rsi]
movsxd rbx, eax
call fcn.1401c3f28
add rdi, rbx
test al, al
jle 0x1400b19a9
mov r9, qword [rsi]
movsx rax, al
mov r8d, 1
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.1401c1e14
jmp 0x1400b19c6
mov rcx, qword [rsi]
movsx eax, al
neg eax
movsxd rbx, eax
call fcn.1401c3f28
mov r8, rbx
mov edx, eax
mov rcx, rdi
call fcn.1401c0040
add rdi, rbx
dec rbp
jne 0x1400b1972
inc r14d
cmp r14d, r15d
jl 0x1400b1950
xor r14d, r14d
mov ebp, 0x100
mov r15d, 0xc000
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsi]
xor r8d, r8d
call fcn.1401c1f88
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x90]
movsx ecx, word [rcx + 6]
mov rdi, qword [rsp + 0x98]
inc eax
mov dword [rsp + 0x24], eax
cmp eax, ecx
jl 0x1400b1793
mov r15, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x80]
movzx eax, r14w
add rsp, 0x58
pop r14
pop r13
pop rdi
pop rsi
ret
mov rcx, rsi
call fcn.140066da0
mov ebx, r14d
mov r13d, r14d
movzx ebp, ax
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x28], ebp
test ebp, ebp
jle 0x1400b1b93
mov rcx, rsi
call fcn.140066da0
movzx edx, ax
movzx r8d, ax
and dx, r15w
cmp dx, r15w
jne 0x1400b1a88
movsx ecx, ax
sub ebx, ecx
mov dword [rsp + 0x20], ebx
jmp 0x1400b1a92
mov eax, 0x8000
cmp dx, ax
je 0x1400b1a99
test dx, dx
jne 0x1400b1a64
jmp 0x1400b1aa5
mov rcx, rsi
call fcn.140066da0
movzx r8d, ax
mov rdx, qword [rsp + 0x88]
lea eax, [rbx + r13]
movsx r12d, r8w
imul eax, dword [rdx + 8]
movsxd rbx, eax
mov eax, dword [rdx + 0xc]
add rbx, rdi
imul eax, dword [rdx + 8]
movsxd r15, eax
add r15, rdi
test r12d, r12d
jle 0x1400b1b77
mov rcx, qword [rsi]
call fcn.1401c3f28
mov rcx, qword [rsi]
movsxd rdi, eax
call fcn.1401c3f28
add rbx, rdi
test al, al
js 0x1400b1b17
movsx rdx, al
lea eax, [rdx + rdx]
movsxd rdi, eax
add rdi, rbx
cmp rdi, r15
ja 0x1400b1b6b
mov r9, qword [rsi]
mov r8d, 2
mov rcx, rbx
call fcn.1401c1e14
mov rbx, rdi
jmp 0x1400b1b5f
movsx edi, al
neg edi
lea eax, [rdi + rdi]
movsxd rcx, eax
add rcx, rbx
cmp rcx, r15
ja 0x1400b1b6b
mov rcx, qword [rsi]
call fcn.1401c3f28
mov rcx, qword [rsi]
mov ebp, eax
call fcn.1401c3f28
test edi, edi
jle 0x1400b1b5f
mov ecx, edi
nop dword [rax]
nop word [rax + rax]
mov byte [rbx], bpl
mov byte [rbx + 1], al
add rbx, 2
dec rcx
jne 0x1400b1b50
inc r14d
cmp r14d, r12d
jl 0x1400b1ad5
mov ebp, dword [rsp + 0x28]
mov rdi, qword [rsp + 0x98]
mov ebx, dword [rsp + 0x20]
inc r13d
mov r14d, 0
mov r15d, 0xc000
cmp r13d, ebp
jl 0x1400b1a64
mov r13, qword [rsp + 0x88]
mov ebp, 0x100
jmp case.0x1400b17dc.5
cmp dword [r13 + 0xc], 0
mov r15d, r14d
jle 0x1400b19e2
mov rcx, qword [rsi]
call fcn.1401c3f28
mov ecx, dword [r13 + 8]
mov eax, ecx
imul eax, r15d
movsxd rbp, eax
add rbp, rdi
test ecx, ecx
jle 0x1400b1c2a
nop
mov rcx, qword [rsi]
call fcn.1401c3f28
test al, al
jle 0x1400b1bfa
mov rcx, qword [rsi]
movsx rbx, al
mov rdi, rbx
call fcn.1401c3f28
mov r8, rbx
mov edx, eax
mov rcx, rbp
call fcn.1401c0040
jmp 0x1400b1c16
mov r9, qword [rsi]
movsx ebx, al
mov r8d, 1
neg ebx
mov rcx, rbp
movsxd rdi, ebx
mov rdx, rdi
call fcn.1401c1e14
add r14d, ebx
add rbp, rdi
cmp r14d, dword [r13 + 8]
jl 0x1400b1bd0
mov rdi, qword [rsp + 0x98]
inc r15d
mov r14d, 0
cmp r15d, dword [r13 + 0xc]
jl 0x1400b1bb3
jmp 0x1400b19dd
movsxd r8, dword [r13 + 0xc]
movsxd rdx, dword [r13 + 8]
mov r9, qword [rsi]
mov rcx, rdi
call fcn.1401c1e14
jmp case.0x1400b17dc.5
xor r14d, r14d
jmp case.0x1400b17dc.5