Function at 0x14011e010
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
sub rsp, 0x38
mov rax, qword [0x1402a83b0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov r9, qword [rcx]
mov rdi, rcx
mov rsi, rdx
mov r12d, 8
lea rcx, [rsp + 0x20]
mov r8d, 1
mov edx, r12d
call fcn.1401c1e14
test rax, rax
jne 0x14011e05a
lea eax, [r12 - 4]
jmp 0x14011e2b7
mov rax, qword [rsp + 0x20]
cmp rax, qword [str.MAKI02]
je 0x14011e072
mov eax, 2
jmp 0x14011e2b7
mov r9, qword [rdi]
mov ebp, 4
lea rcx, [rsi + 0x34]
lea r8d, [rbp - 3]
mov edx, ebp
call fcn.1401c1e14
test rax, rax
jne 0x14011e096
movzx eax, bp
jmp 0x14011e2b7
mov edx, 0x13
mov byte [rsi + 0x38], 0
mov r9, qword [rdi]
lea r8d, [rdx - 0x12]
lea rcx, [rsi + 0x39]
call fcn.1401c1e14
test rax, rax
je 0x14011e08e
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x30], r15
xor r15d, r15d
mov ebx, r15d
mov byte [rsi + 0x4c], 0
mov rcx, qword [rdi]
call fcn.1401c3f28
cmp eax, 0x1a
je 0x14011e0df
inc ebx
cmp ebx, 0x200
jl 0x14011e0c8
cmp ebx, 0x200
jne 0x14011e0f1
mov eax, 2
jmp 0x14011e2ad
mov rcx, qword [rdi]
mov qword [rsp + 0x78], r14
call fcn.1401c2310
mov dword [rsi + 0x28], eax
mov rcx, qword [rdi]
call fcn.1401c3f28
mov byte [rsi], al
mov rcx, qword [rdi]
call fcn.1401c3f28
mov byte [rsi + 1], al
mov rcx, qword [rdi]
call fcn.1401c3f28
mov byte [rsi + 2], al
mov rcx, qword [rdi]
call fcn.1401c3f28
mov rcx, rdi
mov byte [rsi + 3], al
call fcn.140066da0
mov rcx, rdi
mov word [rsi + 4], ax
call fcn.140066da0
mov rcx, rdi
mov word [rsi + 8], ax
call fcn.140066da0
mov rcx, rdi
mov word [rsi + 6], ax
call fcn.140066da0
mov rcx, rdi
mov word [rsi + 0xa], ax
call fcn.140066b20
mov rcx, rdi
mov dword [rsi + 0x14], eax
call fcn.140066b20
mov rcx, rdi
mov dword [rsi + 0x18], eax
call fcn.140066b20
mov rcx, rdi
mov dword [rsi + 0x1c], eax
call fcn.140066b20
mov rcx, rdi
mov dword [rsi + 0x20], eax
call fcn.140066b20
cmp byte [rsi + 3], 0x80
mov r8d, dword [rsi + 0x28]
mov r14d, eax
mov dword [rsi + 0x24], eax
movzx eax, word [rsi + 4]
cmovb ebp, r12d
cdq
idiv ebp
imul ax, bp
movzx ecx, ax
movzx eax, word [rsi + 6]
cdq
mov word [rsi + 0xc], cx
idiv ebp
inc ax
imul ax, bp
dec ax
movzx r9d, ax
mov eax, ebp
mov ebp, dword [rsi + 0x14]
cdq
mov word [rsi + 0xe], r9w
sub r9d, ecx
and edx, 3
lea ecx, [rdx + rax]
lea eax, [r9 + 1]
sar ecx, 2
cdq
idiv ecx
movzx ecx, word [rsi + 0xa]
sub cx, word [rsi + 8]
inc cx
movzx r11d, cx
lea ecx, [r8 + 0x20]
cmp ebp, ecx
mov word [rsi + 0x12], r11w
cmova ecx, ebp
mov dword [rsi + 0x2c], ecx
mov word [rsi + 0x10], ax
mov ebx, dword [rsi + 0x18]
mov r10d, dword [rsi + 0x20]
movzx ecx, ax
mov eax, ecx
mov edx, ecx
shr eax, 5
imul eax, r11d
inc eax
add dword [rsi + 0x2c], eax
mov eax, dword [rsi + 0x2c]
cmp ebx, eax
cmova eax, ebx
shr edx, 1
mov dword [rsi + 0x2c], eax
mov eax, edx
imul eax, r11d
add dword [rsi + 0x2c], eax
mov eax, dword [rsi + 0x2c]
cmp r10d, eax
cmova eax, r10d
mov dword [rsi + 0x2c], eax
mov eax, r11d
imul eax, ecx
add dword [rsi + 0x2c], eax
shl ecx, 4
mov dword [rsi + 0x30], ecx
cmp byte [rsi], r15b
jne 0x14011e29d
test r9d, r9d
jle 0x14011e29d
mov rcx, qword [rdi + 0x108]
lea eax, [rdx - 1]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
inc eax
imul eax, r11d
add eax, ebp
add eax, r8d
cmp rax, rcx
jg 0x14011e29d
mov eax, dword [rsi + 0x1c]
add eax, ebx
add eax, r8d
cmp rax, rcx
jg 0x14011e29d
lea eax, [r10 + r8]
add eax, r14d
cmp rax, rcx
jle 0x14011e2a4
mov eax, 2
jmp 0x14011e2a8
movzx eax, r15w
mov r14, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401bd600
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbp
ret