Function at 0x140022a40
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400a1a90]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rbx, rcx
mov dword [0x1400a8f4c], 1
xor r15d, r15d
mov esi, r15d
mov rax, qword [rcx + 0xdd60]
sub rax, qword [rcx + 0xdd58]
sar rax, 2
test eax, eax
je 0x140022b22
mov eax, esi
lea r9, [rax*4]
mov rax, qword [rbx + 0xdd58]
mov ecx, dword [r9 + rax]
imul rdx, rcx, 0xd0
mov rax, qword [rbx + 0xdd88]
mov edi, dword [rdx + rax + 0xb4]
mov rax, qword [rbx + 0xdd70]
mov dword [rsp + 0x20], r15d
xor r8d, r8d
mov edx, dword [r9 + rax]
mov rcx, rbx
call fcn.140033d30
mov dword [rsp + 0x20], r15d
xor r8d, r8d
mov edx, edi
mov rcx, rbx
call fcn.140033d30
mov rcx, rbx
call fcn.1400371c0
mov rcx, rbx
call fcn.1400354f0
inc esi
mov rax, qword [rbx + 0xdd60]
sub rax, qword [rbx + 0xdd58]
sar rax, 2
cmp esi, eax
jb 0x140022aa3
mov rcx, qword [rbx + 0xddc0]
sub rcx, qword [rbx + 0xddb8]
movabs r8, 0x4ec4ec4ec4ec4ec5
mov rax, r8
imul rcx
sar rdx, 6
mov rcx, rdx
shr rcx, 0x3f
add rdx, rcx
mov ecx, dword [rbx + 0x46c]
cmp rcx, rdx
jae 0x140023320
mov rcx, qword [rbx + 0xddc0]
sub rcx, qword [rbx + 0xddb8]
mov rax, r8
imul rcx
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x140023320
lea rdx, [rbp + 0x40]
mov rcx, rbx
call fcn.140016d60
nop
mov eax, dword [rbx + 0x46c]
imul rcx, rax, 0xd0
mov rax, qword [rbx + 0xddb8]
mov r14d, dword [rcx + rax + 0xb4]
mov dword [rbp - 0x60], r15d
xor edx, edx
mov r8d, 0x90
lea rcx, [rbp - 0x50]
call fcn.140076e80
mov qword [rbp - 0x10], 0xf
mov qword [rbp - 0x18], r15
mov byte [rbp - 0x28], 0
mov qword [rbp + 0x10], 0xf
mov qword [rbp + 8], r15
mov byte [rbp - 8], 0
mov qword [rbp + 0x30], 0xf
mov qword [rbp + 0x28], r15
mov byte [rbp + 0x18], 0
mov qword [rbp - 0x38], r15
mov r8d, 0x13
lea rdx, str.CompilerTmpopk.sp
lea rcx, [rbp - 8]
call fcn.140003a70
mov r8d, 2
lea rdx, [0x140090d5c]
lea rcx, [rbp - 0x28]
call fcn.140003a70
mov dword [rbp + 0x38], 0xffffffff
lea rcx, [rbp - 8]
cmp qword [rbp + 0x10], 0x10
cmovae rcx, qword [rbp - 8]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [section..rdata]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140022c8a
xor edx, edx
mov rcx, rax
call qword [0x140089008]
mov ecx, eax
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x30], rcx
mov rcx, rdi
call qword [0x140089010]
lea r8, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae r8, qword [rbp - 0x28]
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 0x10
cmovae rdx, qword [rbp - 8]
lea rcx, [rbp - 0x50]
call fcn.1400735f4
mov dword [rbp + 0x38], eax
test eax, eax
jne 0x140022ce8
mov r9, qword [rbp - 0x50]
lea edx, [rax + 1]
lea r8d, [rax + 4]
lea rcx, [rbp - 0x60]
call fcn.140073870
sub qword [rbp - 0x30], rax
cmp dword [rbp + 0x38], 0
jne 0x140022ce8
mov rcx, qword [rbp - 0x50]
call fcn.140073c64
mov qword [rbp - 0x50], r15
mov dword [rbp + 0x38], 0xffffffff
mov esi, r15d
mov eax, dword [rbx + 0x46c]
imul rcx, rax, 0xd0
mov rax, qword [rbx + 0xddd0]
mov rdx, qword [rcx + rax + 0xc0]
sub rdx, qword [rcx + rax + 0xb8]
sar rdx, 4
test edx, edx
je 0x1400232d0
lea rax, [rsp + 0x60]
mov qword [rbp - 0x70], rax
lea rax, [rsp + 0x60]
mov qword [rbp - 0x68], rax
lea rax, [rsp + 0x60]
mov qword [rbp - 0x80], rax
nop word [rax + rax]
mov dword [rsp + 0x20], r15d
xor r8d, r8d
mov edx, r14d
mov rcx, rbx
call fcn.140033d30
mov rcx, rbx
call fcn.1400371c0
mov rcx, rbx
call fcn.1400351c0
mov dword [rsp + 0x20], r15d
xor r8d, r8d
mov edx, dword [rbp - 0x60]
mov rcx, rbx
call fcn.140033d30
mov edx, 1
mov rcx, rbx
call fcn.14006fb70
mov dword [rsp + 0x20], r15d
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.140033d30
mov rcx, rbx
call fcn.140038000
mov qword [rsp + 0x78], 0xf
mov qword [rsp + 0x70], r15
mov byte [rsp + 0x60], 0
mov r8d, 7
lea rdx, str.invalid
lea rcx, [rsp + 0x60]
call fcn.140003a70
nop
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], r15
mov byte [rsp + 0x40], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
cmp dword [rbx + 0xdde8], 0x3e8
jb 0x140022e17
cmp dword [rbx + 0x19e8], r8d
je 0x140022e17
call fcn.140003560
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140038b60
jmp 0x140022e32
call fcn.140003560
mov dword [rsp + 0x20], r15d
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140033770
nop
cmp qword [rsp + 0x78], 0x10
jb 0x140022e44
mov rcx, qword [rsp + 0x60]
call fcn.140073964
mov qword [rsp + 0x78], 0xf
mov qword [rsp + 0x70], r15
mov byte [rsp + 0x60], 0
mov r8d, 7
lea rdx, str.invalid
lea rcx, [rsp + 0x60]
call fcn.140003a70
nop
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], r15
mov byte [rsp + 0x40], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
cmp dword [rbx + 0xdde8], 0x3e8
jb 0x140022ebc
cmp dword [rbx + 0x19e8], r8d
je 0x140022ebc
call fcn.140003560
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140038b60
jmp 0x140022ed7
call fcn.140003560
mov dword [rsp + 0x20], r15d
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140033770
nop
cmp qword [rsp + 0x78], 0x10
jb 0x140022ee9
mov rcx, qword [rsp + 0x60]
call fcn.140073964
mov qword [rsp + 0x78], 0xf
mov qword [rsp + 0x70], r15
mov byte [rsp + 0x60], 0
mov r8d, 7
lea rdx, str.invalid
lea rcx, [rsp + 0x60]
call fcn.140003a70
nop
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], r15
mov byte [rsp + 0x40], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
cmp dword [rbx + 0xdde8], 0x3e8
jb 0x140022f61
cmp dword [rbx + 0x19e8], r8d
je 0x140022f61
call fcn.140003560
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140038b60
jmp 0x140022f7c
call fcn.140003560
mov dword [rsp + 0x20], r15d
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140033770
nop
cmp qword [rsp + 0x78], 0x10
jb 0x140022f8e
mov rcx, qword [rsp + 0x60]
call fcn.140073964
mov edx, 1
mov rcx, rbx
call fcn.14006fb70
mov edi, esi
shl rdi, 4
mov eax, dword [rbx + 0x46c]
imul rcx, rax, 0xd0
mov rax, qword [rbx + 0xddd0]
mov rcx, qword [rcx + rax + 0xb8]
mov dword [rsp + 0x20], r15d
xor r8d, r8d
mov edx, dword [rcx + rdi + 8]
mov rcx, rbx
call fcn.140033d30
mov edx, 0x64
xor ecx, ecx
call fcn.1400066c0
mov rcx, rbx
cmp eax, dword [rbx + 0x19e8]
jae 0x140022fef
call fcn.14002b290
jmp 0x140022ff4
call fcn.140034d70
mov rcx, rbx
call fcn.1400351c0
mov eax, dword [rbx + 0x46c]
imul rcx, rax, 0xd0
mov rax, qword [rbx + 0xddd0]
mov rdx, qword [rcx + rax + 0xb8]
add rdx, rdi
mov eax, dword [rdx + 0xc]
test eax, eax
jne 0x140023066
mov dword [rsp + 0x20], r15d
xor r8d, r8d
mov edx, dword [rdx + 4]
mov rcx, rbx
call fcn.140033d30
mov edx, 1
mov rcx, rbx
call fcn.14006e710
mov eax, dword [rbx + 0x46c]
imul rcx, rax, 0xd0
mov rax, qword [rbx + 0xddd0]
mov rcx, qword [rcx + rax + 0xb8]
mov edx, dword [rdi + rcx]
jmp 0x1400231ea
cmp eax, 1
jne 0x1400230a3
mov dword [rsp + 0x20], r15d
xor r8d, r8d
mov edx, dword [rdx + 4]
mov rcx, rbx
call fcn.140033d30
mov edx, 0x64
xor ecx, ecx
call fcn.1400066c0
mov rcx, rbx
cmp eax, dword [rbx + 0x19e8]
jae 0x14002309c
call fcn.14002b290
jmp 0x140023042
call fcn.140034d70
jmp 0x140023042
cmp eax, 2
jne 0x1400230cd
mov dword [rsp + 0x20], r15d
xor r8d, r8d
mov edx, dword [rdx + 4]
mov rcx, rbx
call fcn.140033d30
mov edx, 1
mov rcx, rbx
call fcn.14006fb70
jmp 0x140023042
cmp eax, 3
jne 0x14002329e
mov rcx, rbx
call fcn.140036f50
mov rcx, rbx
call fcn.1400351c0
mov edx, 1
mov rcx, rbx
call fcn.1400608d0
mov dword [rsp + 0x20], r15d
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.140033d30
mov rcx, rbx
call fcn.140038000
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], r15
mov byte [rsp + 0x40], 0
mov r8d, 7
lea rdx, str.invalid
lea rcx, [rsp + 0x40]
call fcn.140003a70
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14002b810
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], r15
mov byte [rsp + 0x40], 0
mov r8d, 7
lea rdx, str.invalid
lea rcx, [rsp + 0x40]
call fcn.140003a70
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14002b810
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], r15
mov byte [rsp + 0x40], 0
mov r8d, 7
lea rdx, str.invalid
lea rcx, [rsp + 0x40]
call fcn.140003a70
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14002b810
mov edx, 1
mov rcx, rbx
call fcn.14006fb70
mov eax, dword [rbx + 0x46c]
imul rcx, rax, 0xd0
mov rax, qword [rbx + 0xddd0]
mov rcx, qword [rcx + rax + 0xb8]
mov edx, dword [rcx + rdi + 4]
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov rcx, rbx
call fcn.140033d30
mov edx, 1
mov rcx, rbx
call fcn.14006e710
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], r15
mov byte [rsp + 0x40], 0
mov r8d, 3
lea rdx, [0x1400916b4]
lea rcx, [rsp + 0x40]
call fcn.140003a70
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14002b490
mov edx, 0x64
xor ecx, ecx
call fcn.1400066c0
mov rcx, rbx
cmp eax, dword [rbx + 0x19e8]
jae 0x14002325f
call fcn.14002b290
jmp 0x140023264
call fcn.140034d70
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], r15
mov byte [rsp + 0x40], 0
mov r8d, 3
lea rdx, [0x1400916b4]
lea rcx, [rsp + 0x40]
call fcn.140003a70
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14002b810
inc esi
mov eax, dword [rbx + 0x46c]
imul rcx, rax, 0xd0
mov rax, qword [rbx + 0xddd0]
mov rdx, qword [rcx + rax + 0xc0]
sub rdx, qword [rcx + rax + 0xb8]
sar rdx, 4
cmp esi, edx
jb 0x140022d40
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], r15
mov byte [rsp + 0x40], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140003560
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140016ec0
nop
lea rcx, [rbp - 0x50]
call fcn.1400023b0
nop
cmp qword [rbp + 0x58], 0x10
jb 0x140023320
mov rcx, qword [rbp + 0x40]
call fcn.140073964
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140072e00
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret