Function at 0x140017330
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xa0
mov rax, qword [0x14002e010]
xor rax, rsp
mov qword [rbp - 1], rax
mov r13, rcx
mov qword [rbp - 0x39], rcx
xor r12d, r12d
mov eax, 0x5a4d
cmp word [0x14002e050], ax
jne 0x140017925
movsxd rsi, dword [0x14002e08c]
lea rdi, [0x14002e050]
add rsi, rdi
cmp dword [rsi], 0x4550
jne 0x140017925
mov eax, 0x20b
cmp word [rsi + 0x18], ax
je 0x1400173b2
lea rdx, [0x140027b58]
jmp 0x14001792c
mov ebx, dword [rsi + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [0x14001c098]
mov r14, rax
test rax, rax
je 0x140017948
movzx eax, word [rsi + 0x14]
mov r15d, dword [rax + rsi + 0x24]
sub ebx, r15d
mov edx, ebx
mov qword [rbp - 0x41], rdx
je 0x14001753e
mov r8d, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r8 + rcx]
cmp dword [0x140032bd4], eax
jle 0x1400174e3
lea rcx, [0x140032bd4]
call fcn.140019b88
cmp dword [0x140032bd4], 0xffffffff
jne 0x1400174df
xorps xmm0, xmm0
movups xmmword [rbp - 0x61], xmm0
mov qword [rbp - 0x51], r12
mov qword [rbp - 0x49], 0xf
mov ecx, 0x20
call fcn.140019c98
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x51], 0x15
mov qword [rbp - 0x49], 0x1f
movups xmm0, xmmword [0x1400268d8]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400268e8]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x1400268ec]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], 0
lea r8, [rbp - 0x61]
mov rdx, qword [0x140032b08]
mov rcx, r13
call fcn.140013990
mov qword [0x140032c38], rax
mov rdx, qword [rbp - 0x49]
cmp rdx, 0x10
jb 0x1400174d3
inc rdx
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400174cd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400174cd
call qword [int.14001c568]
int3
call fcn.140019f24
nop
lea rcx, [0x140032bd4]
call fcn.140019b28
mov rdx, qword [rbp - 0x41]
cmp qword [0x140032c38], 0
jne 0x14001751c
lea rdx, [0x1400268f0]
mov rcx, qword [0x14001c2e8]
call fcn.140015b10
mov rcx, rax
lea rdx, [0x140015ce0]
call qword [fcn.14001c350]
lea rdx, [0x140027b90]
jmp 0x140017896
mov qword [rbp - 0x69], r12
mov qword [rsp + 0x20], rdx
lea rdx, [rbp - 0x69]
mov rcx, r13
call fcn.140015d20
test al, al
je 0x14001753e
mov r12, qword [rbp - 0x69]
test r12, r12
jne 0x14001754a
lea rdx, [0x140027b90]
jmp 0x140017896
lea rdx, [0x140027bf0]
mov rcx, qword [0x14001c2e8]
call fcn.140015b10
mov rcx, rax
mov rdx, r12
call qword [fcn.14001c368]
mov rcx, rax
lea rdx, [0x140015ce0]
call qword [fcn.14001c350]
mov r8d, dword [rsi + 0x54]
mov rdx, rdi
mov rcx, r14
call fcn.14001ac54
movzx ebx, word [rsi + 0x14]
add rbx, 0x24
xor eax, eax
mov edi, eax
cmp ax, word [rsi + 6]
jae 0x1400175d3
add rbx, rsi
lea r13, [0x14002e050]
test dword [rbx + 0x18], 0x80
ja 0x1400175c1
mov ecx, dword [rbx]
add rcx, r14
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 8]
add rdx, r13
call fcn.14001ac54
inc edi
add rbx, 0x28
movzx eax, word [rsi + 6]
cmp edi, eax
jl 0x1400175a4
mov r13, qword [rbp - 0x39]
mov qword [rbp - 0x29], r15
mov rax, r12
sub rax, r15
mov qword [rbp - 0x31], rax
lea rdx, [0x140027c68]
mov rcx, qword [0x14001c2e8]
call fcn.140015b10
mov rcx, rax
lea rdx, [0x140012650]
call qword [fcn.14001c358]
mov rcx, rax
mov edx, r15d
call qword [0x14001c388]
mov rcx, rax
lea rdx, [0x140027c40]
call fcn.140015b10
mov rcx, rax
lea rdx, [0x140015ce0]
call qword [fcn.14001c350]
mov eax, 0x5a4d
cmp word [r14], ax
jne 0x14001770d
movsxd rax, dword [r14 + 0x3c]
cmp dword [rax + r14], 0x4550
jne 0x14001770d
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
xor r8d, r8d
mov qword [rbp - 9], r8
mov ecx, dword [rax + r14 + 0xb0]
test ecx, ecx
jne 0x14001767a
movdqu xmmword [rbp - 0x61], xmm0
xor edi, edi
jmp 0x140017717
lea rbx, [r14 + rcx]
mov edi, dword [rax + r14 + 0xb4]
add rdi, rbx
cmp rbx, rdi
jae 0x1400176f9
mov rdx, qword [rbp - 0x11]
mov ecx, dword [rbx + 4]
test ecx, ecx
je 0x1400176f4
mov eax, dword [rbx]
add rax, r14
mov qword [rbp - 0x61], rax
lea rax, [rbx + 8]
mov qword [rbp - 0x59], rax
lea rax, [rcx - 8]
shr rax, 1
mov dword [rbp - 0x51], eax
cmp rdx, r8
je 0x1400176d4
movups xmm0, xmmword [rbp - 0x61]
movups xmmword [rdx], xmm0
movsd xmm1, qword [rbp - 0x51]
movsd qword [rdx + 0x10], xmm1
add rdx, 0x18
mov qword [rbp - 0x11], rdx
jmp 0x1400176e9
lea r8, [rbp - 0x61]
lea rcx, [rbp - 0x19]
call fcn.140018760
mov r8, qword [rbp - 9]
mov rdx, qword [rbp - 0x11]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rdi
jb 0x140017692
movdqu xmm1, xmmword [rbp - 0x19]
movups xmmword [rbp - 0x61], xmm1
movsd xmm0, qword [rbp - 9]
movsd qword [rbp - 0x51], xmm0
mov rdi, qword [rbp - 0x51]
jmp 0x140017717
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x61], xmm0
xor edi, edi
mov r15, qword [rbp - 0x31]
mov r10, r15
sub r10, qword [rsi + 0x30]
mov r11, qword [rbp - 0x61]
mov rbx, qword [rbp - 0x59]
cmp r11, rbx
je 0x140017798
lea r9, [r11 + 0x10]
mov r13d, 0xf000
mov r15d, 0xa000
xor r12d, r12d
mov edx, r12d
cmp dword [r9], r12d
jbe 0x14001777f
nop word [rax + rax]
mov ecx, edx
mov rax, qword [r9 - 8]
movzx r8d, word [rax + rcx*2]
movzx eax, r8w
and ax, r13w
cmp ax, r15w
jne 0x140017778
and r8d, 0xfff
mov rax, qword [r9 - 0x10]
add qword [r8 + rax], r10
inc edx
cmp edx, dword [r9]
jb 0x140017750
add r9, 0x18
lea rax, [r9 - 0x10]
cmp rax, rbx
jne 0x140017742
mov r12, qword [rbp - 0x69]
mov r13, qword [rbp - 0x39]
mov r15, qword [rbp - 0x31]
test r11, r11
je 0x1400177f3
sub rdi, r11
movabs rax, 0x2aaaaaaaaaaaaaab
imul rdi
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 3
mov rax, r11
cmp rdx, 0x1000
jb 0x1400177eb
add rdx, 0x27
mov r11, qword [r11 - 8]
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400177eb
call qword [int.14001c568]
int3
mov rcx, r11
call fcn.140019f24
mov rdx, r14
lea rcx, [rbp - 0x61]
call fcn.140018200
mov rdx, rax
mov rcx, r13
call fcn.140017980
test al, al
jne 0x140017817
lea rdx, [0x140027c88]
jmp 0x140017896
mov r8, qword [rbp - 0x29]
add r8, r14
mov r9, qword [rbp - 0x41]
mov rdx, r12
mov rcx, r13
call fcn.140013550
mov rcx, qword [0x14001c2e8]
test al, al
jne 0x140017841
lea rdx, [0x140027cd0]
jmp 0x14001789d
mov ebx, dword [rsi + 0x28]
add rbx, r15
lea rdx, [0x140027d30]
call fcn.140015b10
mov rcx, rax
mov rdx, rbx
call qword [fcn.14001c368]
mov rcx, rax
lea rdx, [0x140015ce0]
call qword [fcn.14001c350]
xor eax, eax
mov dword [rbp - 0x69], eax
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, rbx
lea rdx, [rbp - 0x69]
mov rcx, r13
call fcn.140017d40
test al, al
jne 0x1400178d0
lea rdx, [0x140027d70]
mov rcx, qword [0x14001c2e8]
call fcn.140015b10
lea rdx, [0x140015ce0]
mov rcx, rax
call qword [fcn.14001c350]
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [0x14001c088]
mov rdx, r12
mov rcx, r13
call fcn.140013840
jmp 0x140017948
lea rdx, [0x140027db0]
mov rcx, qword [0x14001c2e8]
call fcn.140015b10
mov rcx, rax
lea rdx, [0x140012650]
call qword [fcn.14001c358]
mov rcx, rax
mov edx, dword [rbp - 0x69]
call qword [0x14001c380]
mov rcx, rax
lea rdx, [0x140015ce0]
call qword [fcn.14001c350]
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [0x14001c088]
mov rax, r12
jmp 0x14001794a
lea rdx, [0x140027b18]
mov rcx, qword [0x14001c2e8]
call fcn.140015b10
lea rdx, [0x140015ce0]
mov rcx, rax
call qword [fcn.14001c350]
xor eax, eax
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.1400199e0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret