Function at 0x140015a8c
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
xor ebx, ebx
mov r15, rcx
mov ebp, edx
and dword [rax - 0x48], ebx
lea rcx, [rax - 0x44]
lea r8d, [rbx + 0x2c]
xor edx, edx
xor r14d, r14d
call fcn.1401aca80
mov r8d, 0xd27
mov edx, ebp
mov rcx, r15
xor esi, esi
call fcn.140014f64
movsxd rax, dword [r15 + 0x3c]
mov ecx, 0x5a4d
lea rdi, [rax + r15]
cmp word [r15], cx
jne 0x140015d2a
cmp dword [rdi], 0x4550
jne 0x140015d2a
cmp ebp, 0x40
jb 0x140015d20
cmp ebp, dword [rdi + 0x54]
jb 0x140015d20
add rax, 0x108
mov r12d, ebp
cmp rbp, rax
jb 0x140015d20
mov eax, 0x8664
cmp word [rdi + 4], ax
je 0x140015b39
mov ecx, 0xc1
call qword [0x141a025d0]
jmp 0x140015d64
movzx eax, word [rdi + 6]
movzx ecx, word [rdi + 0x14]
test eax, eax
je 0x140015b73
lea rdx, [rdi + 0x24]
mov r8d, eax
add rdx, rcx
cmp dword [rdx + 4], ebx
jne 0x140015b5b
mov ecx, dword [rdx]
mov eax, dword [rdi + 0x38]
jmp 0x140015b60
mov ecx, dword [rdx + 4]
mov eax, dword [rdx]
add rcx, rax
cmp rcx, r14
cmova r14, rcx
add rdx, 0x28
dec r8
jne 0x140015b4f
lea rcx, [rsp + 0x20]
call qword [0x141a025d8]
mov r8d, dword [rsp + 0x24]
lea edx, [r8 - 1]
lea ebx, [r8 - 1]
lea rcx, [r8 - 1]
add ebx, dword [rdi + 0x50]
not edx
add rcx, r14
and rbx, rdx
and rcx, rdx
cmp rbx, rcx
jne 0x140015b29
mov rcx, qword [rdi + 0x30]
mov ebp, 4
mov r14d, 0x3000
mov r9d, ebp
mov r8d, r14d
mov rdx, rbx
call qword [0x141a025e0]
mov rsi, rax
test rax, rax
jne 0x140015be9
mov r9d, ebp
mov r8d, r14d
mov rdx, rbx
xor ecx, ecx
call qword [0x141a025e0]
mov rsi, rax
test rax, rax
jne 0x140015be9
lea ecx, [rbp + 0xa]
jmp 0x140015b2e
call qword [0x141a02610]
mov edx, 8
lea r8d, [rdx + 0x20]
mov rcx, rax
call qword [0x141a025e8]
mov rbx, rax
test rax, rax
jne 0x140015c13
mov ecx, 0xe
jmp 0x140015d2f
mov qword [rax + 8], rsi
mov eax, dword [rsp + 0x24]
mov r9d, ebp
mov dword [rbx + 0x24], eax
mov edx, dword [rdi + 0x54]
mov r8d, 0x1000
mov rcx, rsi
call qword [0x141a025e0]
mov rbp, rax
test rax, rax
je 0x140015c09
mov r8d, dword [rdi + 0x54]
mov rdx, r15
mov rcx, rax
call fcn.1401ad310
movsxd rcx, dword [r15 + 0x3c]
mov r9, rbx
add rcx, rbp
mov r8, rdi
mov rdx, r12
mov qword [rbx], rcx
mov qword [rcx + 0x30], rsi
mov rcx, r15
call fcn.140014e4c
test eax, eax
je 0x140015d35
mov rax, qword [rbx]
mov rdx, qword [rax + 0x30]
sub rdx, qword [rdi + 0x30]
je 0x140015c8b
mov rcx, rbx
call fcn.140015660
mov dword [rbx + 0x20], eax
jmp 0x140015c92
mov dword [rbx + 0x20], 1
mov rcx, rbx
call fcn.140014cc0
test eax, eax
je 0x140015d35
mov rcx, rbx
call fcn.14001580c
test eax, eax
je 0x140015d35
mov rax, qword [rbx]
cmp dword [rax + 0xd0], 0
je 0x140015ced
mov ecx, dword [rax + 0xd0]
mov rax, qword [rbx + 8]
mov rdi, qword [rcx + rax + 0x18]
test rdi, rdi
je 0x140015ced
jmp 0x140015ce5
mov rcx, qword [rbx + 8]
xor r8d, r8d
lea edx, [r8 + 1]
call rax
lea rdi, [rdi + 8]
mov rax, qword [rdi]
test rax, rax
jne 0x140015cd4
mov rax, qword [rbx]
cmp dword [rax + 0x28], 0
je 0x140015d1b
mov rcx, qword [rbx + 8]
mov eax, dword [rax + 0x28]
xor r8d, r8d
lea edx, [r8 + 1]
add rax, rcx
call rax
test eax, eax
jne 0x140015d14
mov ecx, 0x45a
jmp 0x140015d2f
mov dword [rbx + 0x1c], 1
mov rax, rbx
jmp 0x140015d66
mov ecx, 0xd
jmp 0x140015b2e
mov ecx, 0xc1
call qword [0x141a025d0]
test rsi, rsi
je 0x140015d4b
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [0x141a025f8]
test rbx, rbx
je 0x140015d64
call qword [0x141a02610]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [0x141a02608]
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