Function at 0x1400051a4
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x50
xorps xmm0, xmm0
mov ebx, edx
xor r12d, r12d
mov r8d, 0x13d5
mov esi, r12d
mov rbp, rcx
movups xmmword [rax - 0x48], xmm0
movups xmmword [rax - 0x38], xmm0
movups xmmword [rax - 0x28], xmm0
call fcn.140004050
movsxd rax, dword [rbp + 0x3c]
mov ecx, 0x5a4d
lea rdi, [rax + rbp]
cmp word [rbp], cx
jne 0x140005475
cmp dword [rdi], 0x4550
jne 0x140005475
cmp ebx, 0x40
jb 0x14000546e
cmp ebx, dword [rdi + 0x54]
jb 0x14000546e
add rax, 0x108
mov r15d, ebx
cmp rbx, rax
jb 0x14000546e
mov eax, 0x8664
cmp word [rdi + 4], ax
jne 0x140005475
movzx eax, word [rdi + 0x14]
add rax, 0x24
cmp r12w, word [rdi + 6]
jae 0x14000527b
movzx r8d, word [rdi + 6]
lea rcx, [rax + rdi]
mov edx, dword [rcx]
cmp dword [rcx + 4], r12d
jne 0x140005261
mov eax, dword [rdi + 0x38]
jmp 0x140005264
mov eax, dword [rcx + 4]
add rax, rdx
cmp rax, rsi
cmovbe rax, rsi
add rcx, 0x28
mov rsi, rax
sub r8, 1
jne 0x140005254
lea rcx, [rsp + 0x20]
call qword [0x140b11898]
mov edx, dword [rsp + 0x24]
lea r8d, [rdx - 1]
lea ebx, [rdx - 1]
not r8d
add ebx, dword [rdi + 0x50]
lea rcx, [rdx - 1]
add rcx, rsi
and rbx, r8
and rcx, r8
cmp rbx, rcx
jne 0x140005475
mov rcx, qword [rdi + 0x30]
mov r14d, 4
mov r9d, r14d
mov r8d, 0x3000
mov rdx, rbx
call qword [0x140b119d8]
mov rsi, rax
test rax, rax
jne 0x1400052f5
mov r9d, r14d
mov r8d, 0x3000
mov rdx, rbx
xor ecx, ecx
call qword [0x140b119d8]
mov rsi, rax
test rax, rax
jne 0x1400052f5
lea ecx, [rax + 0xe]
jmp 0x14000547a
call qword [0x140b11d28]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x20]
call qword [0x140b11b18]
mov rbx, rax
test rax, rax
jne 0x140005358
mov ecx, 0xe
call qword [0x140b11758]
test rsi, rsi
je 0x140005336
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [0x140b11d10]
test rbx, rbx
je 0x140005480
call qword [0x140b11d28]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [0x140b11d20]
jmp 0x140005480
mov qword [rax + 8], rsi
mov r9d, r14d
mov eax, dword [rsp + 0x24]
mov r8d, 0x1000
mov dword [rbx + 0x24], eax
mov rcx, rsi
mov edx, dword [rdi + 0x54]
call qword [0x140b119d8]
mov r14, rax
test rax, rax
je 0x140005315
mov r8d, dword [rdi + 0x54]
mov rdx, rbp
mov rcx, rax
call fcn.140006630
movsxd rcx, dword [rbp + 0x3c]
mov r9, rbx
add rcx, r14
mov r8, rdi
mov qword [rbx], rcx
mov rdx, r15
mov qword [rcx + 0x30], rsi
mov rcx, rbp
call fcn.140003f18
test eax, eax
je 0x140005320
mov rax, qword [rbx]
mov rdx, qword [rax + 0x30]
sub rdx, qword [rdi + 0x30]
je 0x1400053cd
mov rcx, rbx
call fcn.140004630
jmp 0x1400053d2
mov eax, 1
mov rcx, rbx
mov dword [rbx + 0x20], eax
call fcn.140003da4
test eax, eax
je 0x140005320
mov rcx, rbx
call fcn.1400047d0
test eax, eax
je 0x140005320
mov rdx, qword [rbx]
mov rax, rdx
mov ecx, dword [rdx + 0xd0]
test ecx, ecx
je 0x14000543b
mov rax, qword [rbx + 8]
mov rdi, qword [rcx + rax + 0x18]
mov rax, rdx
test rdi, rdi
je 0x14000543b
mov r9, qword [rdi]
test r9, r9
je 0x14000543b
mov rcx, qword [rbx + 8]
xor r8d, r8d
lea edx, [r8 + 1]
call r9
lea rdi, [rdi + 8]
mov r9, qword [rdi]
test r9, r9
jne 0x14000541e
mov rax, qword [rbx]
cmp dword [rax + 0x28], r12d
je 0x140005469
mov rcx, qword [rbx + 8]
xor r8d, r8d
mov eax, dword [rax + 0x28]
add rax, rcx
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x140005462
mov ecx, 0x45a
jmp 0x14000531a
mov dword [rbx + 0x1c], 1
mov rax, rbx
jmp 0x140005482
mov ecx, 0xd
jmp 0x14000547a
mov ecx, 0xc1
call qword [0x140b11758]
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret