Function at 0x140015250
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x50
xor ebx, ebx
lea rcx, [rsp + 0x24]
xor edx, edx
lea r8d, [rbx + 0x2c]
mov rdi, rbx
mov dword [rsp + 0x20], ebx
call fcn.140061330
lea r13, [0x140787e40]
mov edx, 0x1d5a00
mov rcx, r13
mov r8d, 0x13d5
call fcn.1400151f0
movsxd rax, dword [0x140787e7c]
mov ecx, 0x5a4d
lea rsi, [rax + r13]
cmp word [0x140787e40], cx
jne 0x14001551f
cmp dword [rsi], 0x4550
jne 0x14001551f
cmp dword [rsi + 0x54], 0x1d5a00
ja 0x140015518
add rax, 0x108
cmp rax, 0x1d5a00
ja 0x140015518
mov eax, 0x8664
cmp word [rsi + 4], ax
jne 0x14001551f
movzx eax, word [rsi + 6]
movzx ecx, word [rsi + 0x14]
test eax, eax
je 0x14001532b
lea rdx, [rcx + rsi + 0x24]
mov r8, rax
mov eax, dword [rdx + 4]
test eax, eax
jne 0x140015312
mov ecx, dword [rsi + 0x38]
jmp 0x140015315
mov rcx, rax
mov eax, dword [rdx]
add rcx, rax
cmp rcx, rdi
cmova rdi, rcx
add rdx, 0x28
sub r8, 1
jne 0x140015306
lea rcx, [rsp + 0x20]
call qword [0x140962a30]
mov r11d, dword [rsp + 0x24]
mov eax, dword [rsi + 0x50]
lea edx, [r11 - 1]
lea r12d, [rax + r11 - 1]
lea rcx, [r11 + rdi - 1]
not edx
and r12, rdx
and rcx, rdx
cmp r12, rcx
jne 0x14001551f
mov rcx, qword [rsi + 0x30]
mov r9d, 4
mov r8d, 0x3000
mov rdx, r12
call qword [0x140962a38]
mov rbp, rax
test rax, rax
jne 0x14001539f
lea r9d, [rax + 4]
mov r8d, 0x3000
mov rdx, r12
xor ecx, ecx
call qword [0x140962a38]
mov rbp, rax
test rax, rax
je 0x1400154dc
call qword [0x140962a68]
mov edx, 8
lea r8d, [rdx + 0x20]
mov rcx, rax
call qword [0x140962a40]
mov rbx, rax
test rax, rax
je 0x1400154dc
mov qword [rax + 8], rbp
mov eax, dword [rsp + 0x24]
mov r9d, 4
mov dword [rbx + 0x24], eax
mov edx, dword [rsi + 0x54]
mov r8d, 0x1000
mov rcx, rbp
call qword [0x140962a38]
mov rdi, rax
test rax, rax
je 0x1400154dc
mov r8d, dword [rsi + 0x54]
mov rdx, r13
mov rcx, rax
call fcn.140061b40
movsxd rax, dword [0x140787e7c]
mov r9, rbx
add rax, rdi
mov r8, rsi
mov edx, 0x1d5a00
mov qword [rbx], rax
mov rcx, r13
mov qword [rax + 0x30], rbp
call fcn.140014a10
test eax, eax
je 0x1400154e7
mov rax, qword [rbx]
mov rdx, qword [rax + 0x30]
sub rdx, qword [rsi + 0x30]
je 0x140015447
mov rcx, rbx
call fcn.140014b30
mov dword [rbx + 0x20], eax
jmp 0x14001544e
mov dword [rbx + 0x20], 1
mov rcx, rbx
call fcn.140014c00
test eax, eax
je 0x1400154e7
mov rcx, rbx
call fcn.140014ed0
test eax, eax
je 0x1400154e7
mov rax, qword [rbx]
mov ecx, dword [rax + 0xd0]
test ecx, ecx
je 0x1400154aa
mov rax, qword [rbx + 8]
mov rdi, qword [rcx + rax + 0x18]
test rdi, rdi
je 0x1400154aa
mov rax, qword [rdi]
test rax, rax
je 0x1400154aa
nop dword [rax]
mov rcx, qword [rbx + 8]
xor r8d, r8d
lea edx, [r8 + 1]
call rax
mov rax, qword [rdi + 8]
add rdi, 8
test rax, rax
jne 0x140015490
mov rax, qword [rbx]
mov edx, dword [rax + 0x28]
test edx, edx
je 0x1400154d7
mov rcx, qword [rbx + 8]
xor r8d, r8d
lea rax, [rcx + rdx]
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x1400154d0
mov ecx, 0x45a
jmp 0x1400154e1
mov dword [rbx + 0x1c], 1
mov rax, rbx
jmp 0x14001552c
mov ecx, 0xe
call qword [0x140962a28]
test rbp, rbp
je 0x1400154fd
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [0x140962a50]
test rbx, rbx
je 0x14001552a
call qword [0x140962a68]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [0x140962a60]
jmp 0x14001552a
mov ecx, 0xd
jmp 0x140015524
mov ecx, 0xc1
call qword [0x140962a28]
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r13
pop r12
pop rdi
ret