Function at 0x140013be0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x330]
sub rsp, 0x430
mov rax, qword [0x140093020]
xor rax, rsp
mov qword [rbp + 0x320], rax
mov r15, r9
mov r12, r8
mov qword [rsp + 0x50], r8
mov rdi, rdx
mov r14, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rdx
mov rax, qword [rbp + 0x390]
mov qword [rsp + 0x40], rax
xor r13d, r13d
mov qword [rbp - 0x30], r13
movzx edx, byte [rsp + 0x30]
lea rcx, [rbp - 0x28]
call fcn.140004df0
lea rdx, [0x140085c58]
lea rcx, [rbp - 0x28]
call fcn.140001650
lea rcx, [rbp - 0x28]
call fcn.1400034a0
lea rcx, [rbp - 8]
call fcn.140003180
mov dword [rbp + 0x18], r13d
mov rbx, qword [r12]
test rbx, rbx
jne 0x140013c89
mov dword [rdi], 0xc00000ef
mov byte [rdi + 0x58], bl
jmp 0x140013f6c
xorps xmm0, xmm0
movups xmmword [rbp + 0x38], xmm0
lea rax, [fcn.14004a0fc]
mov qword [rbp + 0x38], rax
mov rsi, r13
mov qword [rbp + 0x40], r13
movups xmmword [rbp + 0xd0], xmm0
movups xmmword [rbp + 0xe0], xmm0
movups xmmword [rbp + 0xf0], xmm0
movups xmmword [rbp + 0x100], xmm0
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0x110]
call fcn.140045d80
mov rax, qword [r14 + 8]
mov qword [rbp + 0x20], r13
mov rax, qword [rax + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea rdx, [rbp + 0x20]
mov qword [rsp + 0x20], rdx
mov r9d, 0x40
lea r8, [rbp + 0xd0]
mov rdx, rbx
call qword [rax + 0x18]
mov eax, 0x5a4d
cmp word [rbp + 0xd0], ax
je 0x140013d1e
mov dword [rdi], 0xc000012f
mov byte [rdi + 0x58], 0
jmp 0x140013f6c
mov rax, qword [r14 + 8]
movsxd rdx, dword [rbp + 0x10c]
add rdx, qword [r12]
mov qword [rbp + 0x20], r13
je 0x140013d60
mov rax, qword [rax + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0x20]
mov qword [rsp + 0x20], r8
mov r9d, pe_nt_image_headers64
lea r8, [rbp + 0x110]
call qword [rax + 0x18]
nop word [rax + rax]
cmp dword [rbp + 0x110], 0x4550
je 0x140013d7b
mov dword [rdi], 0xc000007b
mov byte [rdi + 0x58], 0
jmp 0x140013f6c
mov r12d, dword [rbp + 0x198]
mov edx, 0x10b
mov rcx, qword [rbp + 0x128]
cmp cx, dx
cmove r12d, dword [rbp + 0x188]
mov r14d, r12d
test r12d, r12d
je 0x140013f54
mov eax, dword [rbp + 0x19c]
cmp cx, dx
cmove eax, dword [rbp + 0x18c]
mov dword [rsp + 0x48], eax
mov ebx, eax
mov qword [rbp + 0x20], rbx
mov ecx, eax
call fcn.14004dc78
mov rsi, rax
mov qword [rbp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 8]
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax]
mov qword [rbp + 0x30], r13
add rdx, r14
jne 0x140013dee
mov eax, 0xc0000141
jmp 0x140013e0f
mov rax, qword [rcx + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0x30]
mov qword [rsp + 0x20], r8
mov r9, rbx
mov r8, rsi
call qword [rax + 0x18]
test eax, eax
jns 0x140013e1a
mov dword [rdi], eax
mov byte [rdi + 0x58], 0
jmp 0x140013f5e
mov rbx, rsi
cmp dword [rsp + 0x48], 0x28
ja 0x140013ebc
mov ecx, dword [rsi + 0x14]
cmp ecx, dword [rsi + 0x18]
cmovbe ecx, dword [rsi + 0x18]
imul eax, ecx, 0xff
add eax, dword [rsi + 0x24]
sub eax, r12d
mov qword [rbp + 0x20], rax
mov ecx, eax
call fcn.14004dc78
mov rbx, rax
mov rcx, rsi
mov rsi, rax
mov qword [rbp + 0x40], rax
test rcx, rcx
je 0x140013e61
call fcn.14004a0fc
nop
mov r12, qword [rsp + 0x38]
mov rcx, qword [r12 + 8]
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax]
mov qword [rbp + 0x30], r13
add rdx, r14
jne 0x140013e83
mov eax, 0xc0000141
jmp 0x140013ea5
mov rax, qword [rcx + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0x30]
mov qword [rsp + 0x20], r8
mov r9, qword [rbp + 0x20]
mov r8, rbx
call qword [rax + 0x18]
test eax, eax
jns 0x140013ec1
mov dword [rdi], eax
mov byte [rdi + 0x58], 0
test rbx, rbx
je 0x140013f6c
mov rcx, rbx
jmp 0x140013f66
mov r12, qword [rsp + 0x38]
mov r11d, dword [rbx + 0x24]
sub r11, r14
add r11, rbx
mov ecx, dword [rbx + 0x20]
sub rcx, r14
add rcx, rbx
mov qword [rbp + 0x30], rcx
mov eax, dword [rbx + 0x1c]
sub rax, r14
add rax, rbx
mov qword [rsp + 0x38], rax
mov r9d, r13d
cmp dword [rbx + 0x14], r13d
jbe 0x140013f54
nop
cmp r15, 0xffff
ja 0x140013f0b
movzx r10d, r9w
mov ecx, r10d
add ecx, dword [rbx + 0x10]
movzx eax, r15w
cmp eax, ecx
jmp 0x140013f45
cmp r9d, dword [rbx + 0x18]
jae 0x140014380
mov eax, r9d
movzx r10d, word [r11 + rax*2]
mov eax, dword [rcx + rax*4]
sub rax, r14
add rax, rbx
mov r8, r15
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140013f43
inc rax
test ecx, ecx
jne 0x140013f30
test edx, edx
je 0x140013fab
inc r9d
cmp r9d, dword [rbx + 0x14]
mov rcx, qword [rbp + 0x30]
jb 0x140013ef0
mov dword [rdi], 0xc0000225
mov byte [rdi + 0x58], 0
test rsi, rsi
je 0x140013f6c
mov rcx, rsi
call fcn.14004a0fc
nop
lea rcx, [rbp - 8]
call fcn.140002f90
lea rcx, [rbp - 0x28]
call fcn.140002d40
mov rax, rdi
mov rcx, qword [rbp + 0x320]
xor rcx, rsp
call fcn.1400433a0
mov rbx, qword [rsp + 0x488]
add rsp, 0x430
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax]
movzx eax, r10w
mov rcx, qword [rsp + 0x38]
mov ebx, dword [rcx + rax*4]
add rbx, rdx
mov qword [rbp - 0x30], rbx
lea rax, [rdx + r14]
cmp rbx, rax
jb 0x140014326
mov rax, qword [rbp + 0x20]
add rax, rdx
add rax, r14
cmp rbx, rax
ja 0x140014326
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x220]
call fcn.140045d80
mov rax, qword [r12 + 8]
mov qword [rbp + 0x30], r13
test rbx, rbx
je 0x140014030
mov rax, qword [rax + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea rdx, [rbp + 0x30]
mov qword [rsp + 0x20], rdx
mov r9d, 0xff
lea r8, [rbp + 0x220]
mov rdx, rbx
call qword [rax + 0x18]
nop
lea rdx, [rbp + 0x220]
lea rcx, [rbp + 0x88]
call fcn.140003040
nop
lea rdx, [0x1400860d4]
lea rcx, [rbp + 0x88]
call fcn.140015b20
mov r9, rax
xor r8d, r8d
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0x88]
call fcn.1400083a0
nop
lea rdx, str..dll
mov rcx, rax
call fcn.140002f00
mov rdx, rax
lea rcx, [rbp + 0xa8]
call fcn.140002fc0
nop
lea rcx, [rbp - 0x58]
call fcn.140002f90
lea rdx, [0x1400860d4]
lea rcx, [rbp + 0x88]
call fcn.140015b20
lea r8, [rax + 1]
mov r9, 0xffffffffffffffff
lea rdx, [rbp + 0x68]
lea rcx, [rbp + 0x88]
call fcn.1400083a0
nop
lea rdx, [rbp + 0xa8]
lea rcx, [rbp + 0x48]
call fcn.140012c20
nop
mov byte [rbp + 0x1a], 1
lea rcx, [rbp + 0x48]
call fcn.140003390
lea rcx, [rbp - 0x28]
call fcn.140003390
mov rbx, qword [rbp + 0x58]
lea rcx, [rbp + 0x48]
call fcn.140002960
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.1400035b0
lea rdx, [0x1400860d8]
lea rcx, [rbp + 0x68]
call fcn.140015b20
test rax, rax
sete byte [rbp + 0x1b]
lea rcx, [rbp + 0x68]
test rax, rax
jne 0x14001413c
call fcn.140002ee0
lea rcx, [rax + 1]
call fcn.14004e79c
mov word [rbp + 0x18], ax
jmp 0x140014166
call fcn.140003390
lea rcx, [rbp - 8]
call fcn.140003390
mov rbx, qword [rbp + 0x78]
lea rcx, [rbp + 0x68]
call fcn.140003f10
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.1400039d0
mov eax, 0x10b
cmp word [rbp + 0x128], ax
setne r13b
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea r8, [rbp + 0x48]
lea rdx, [rbp + 0x20]
mov rcx, r12
call fcn.140013530
nop
cmp qword [rbp + 0x20], 0
jne 0x14001424f
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x30]
mov qword [rsp + 0x58], rax
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x60]
call fcn.1400103f0
nop
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x80]
call fcn.1400031e0
movzx eax, word [rbp + 0x18]
mov word [rbp - 0x60], ax
movzx eax, byte [rbp + 0x1a]
mov byte [rbp - 0x5e], al
movzx eax, byte [rbp + 0x1b]
mov byte [rbp - 0x5d], al
mov r8d, 0x107
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.140015770
nop
lea rcx, [rbp + 0x20]
call fcn.140008e30
nop
lea rcx, [rbp + 0x48]
call fcn.140002d40
nop
lea rcx, [rbp + 0x68]
call fcn.140002f90
nop
lea rcx, [rbp + 0xa8]
call fcn.140002f90
nop
lea rcx, [rbp + 0x88]
call fcn.140002f90
nop
test rsi, rsi
je 0x14001424a
mov rcx, rsi
call fcn.14004a0fc
nop
jmp 0x140013f6c
lea rcx, [rbp + 0x48]
cmp byte [rbp + 0x1b], 0
je 0x1400142b2
call fcn.140002c00
movzx r9d, word [rbp + 0x18]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x20]
mov rdx, rdi
mov rcx, r12
call fcn.140013bb0
nop
lea rcx, [rbp + 0x20]
call fcn.140008e30
nop
lea rcx, [rbp + 0x48]
call fcn.140002d40
nop
lea rcx, [rbp + 0x68]
call fcn.140002f90
nop
lea rcx, [rbp + 0xa8]
call fcn.140002f90
nop
lea rcx, [rbp + 0x88]
call fcn.140002f90
nop
jmp 0x140014313
call fcn.140002c00
mov rbx, rax
lea rcx, [rbp + 0x68]
call fcn.140002ee0
mov qword [rsp + 0x20], rbx
mov r9, rax
lea r8, [rbp + 0x20]
mov rdx, rdi
mov rcx, r12
call fcn.140013bb0
nop
lea rcx, [rbp + 0x20]
call fcn.140008e30
nop
lea rcx, [rbp + 0x48]
call fcn.140002d40
nop
lea rcx, [rbp + 0x68]
call fcn.140002f90
nop
lea rcx, [rbp + 0xa8]
call fcn.140002f90
nop
lea rcx, [rbp + 0x88]
call fcn.140002f90
nop
test rsi, rsi
je 0x140014321
mov rcx, rsi
call fcn.14004a0fc
nop
jmp 0x140013f6c
mov qword [rsp + 0x58], rbx
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x60]
call fcn.140002db0
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x80]
call fcn.140002fc0
movzx eax, word [rbp + 0x18]
mov word [rbp - 0x60], ax
movzx eax, byte [rbp + 0x1a]
mov byte [rbp - 0x5e], al
movzx eax, byte [rbp + 0x1b]
mov byte [rbp - 0x5d], al
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.140015770
nop
test rsi, rsi
je 0x14001437b
mov rcx, rsi
call fcn.14004a0fc
nop
jmp 0x140013f6c
mov dword [rdi], 0xc0000225
mov byte [rdi + 0x58], 0
jmp 0x140013f5e