Function at 0x140015410
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x50
xor ebx, ebx
mov r14, rcx
mov ebp, edx
lea rcx, [rsp + 0x24]
lea r8d, [rbx + 0x2c]
xor edx, edx
mov rdi, rbx
mov dword [rsp + 0x20], ebx
call fcn.140062190
mov r8d, 0xd27
mov edx, ebp
mov rcx, r14
call fcn.1400153b0
movsxd rax, dword [r14 + 0x3c]
mov ecx, 0x5a4d
lea rsi, [rax + r14]
cmp word [r14], cx
jne 0x1400156df
cmp dword [rsi], 0x4550
jne 0x1400156df
cmp ebp, 0x40
jb 0x1400156d8
cmp ebp, dword [rsi + 0x54]
jb 0x1400156d8
add rax, 0x108
mov r13, rbp
cmp rbp, rax
jb 0x1400156d8
mov eax, 0x8664
cmp word [rsi + 4], ax
jne 0x1400156df
movzx eax, word [rsi + 6]
movzx ecx, word [rsi + 0x14]
test eax, eax
je 0x1400154eb
lea rdx, [rcx + rsi + 0x24]
mov r8, rax
mov eax, dword [rdx + 4]
test eax, eax
jne 0x1400154d2
mov ecx, dword [rsi + 0x38]
jmp 0x1400154d5
mov rcx, rax
mov eax, dword [rdx]
add rcx, rax
cmp rcx, rdi
cmova rdi, rcx
add rdx, 0x28
sub r8, 1
jne 0x1400154c6
lea rcx, [rsp + 0x20]
call qword [0x141f41860]
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 0x1400156df
mov rcx, qword [rsi + 0x30]
mov r9d, 4
mov r8d, 0x3000
mov rdx, r12
call qword [0x141f41868]
mov rbp, rax
test rax, rax
jne 0x14001555f
lea r9d, [rax + 4]
mov r8d, 0x3000
mov rdx, r12
xor ecx, ecx
call qword [0x141f41868]
mov rbp, rax
test rax, rax
je 0x14001569c
call qword [0x141f41898]
mov edx, 8
lea r8d, [rdx + 0x20]
mov rcx, rax
call qword [0x141f41870]
mov rbx, rax
test rax, rax
je 0x14001569c
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 [0x141f41868]
mov rdi, rax
test rax, rax
je 0x14001569c
mov r8d, dword [rsi + 0x54]
mov rdx, r14
mov rcx, rax
call fcn.140062290
movsxd rax, dword [r14 + 0x3c]
mov r9, rbx
add rax, rdi
mov r8, rsi
mov rdx, r13
mov qword [rbx], rax
mov rcx, r14
mov qword [rax + 0x30], rbp
call fcn.140014bf0
test eax, eax
je 0x1400156a7
mov rax, qword [rbx]
mov rdx, qword [rax + 0x30]
sub rdx, qword [rsi + 0x30]
je 0x140015602
mov rcx, rbx
call fcn.140014d10
mov dword [rbx + 0x20], eax
jmp 0x140015609
mov dword [rbx + 0x20], 1
mov rcx, rbx
call fcn.140014de0
test eax, eax
je 0x1400156a7
mov rcx, rbx
call fcn.1400150b0
test eax, eax
je 0x1400156a7
mov rax, qword [rbx]
mov ecx, dword [rax + 0xd0]
test ecx, ecx
je 0x14001566a
mov rax, qword [rbx + 8]
mov rdi, qword [rcx + rax + 0x18]
test rdi, rdi
je 0x14001566a
mov rax, qword [rdi]
test rax, rax
je 0x14001566a
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 0x140015650
mov rax, qword [rbx]
mov edx, dword [rax + 0x28]
test edx, edx
je 0x140015697
mov rcx, qword [rbx + 8]
xor r8d, r8d
lea rax, [rcx + rdx]
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x140015690
mov ecx, 0x45a
jmp 0x1400156a1
mov dword [rbx + 0x1c], 1
mov rax, rbx
jmp 0x1400156ec
mov ecx, 0xe
call qword [0x141f41858]
test rbp, rbp
je 0x1400156bd
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [0x141f41880]
test rbx, rbx
je 0x1400156ea
call qword [0x141f41898]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [0x141f41890]
jmp 0x1400156ea
mov ecx, 0xd
jmp 0x1400156e4
mov ecx, 0xc1
call qword [0x141f41858]
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 r14
pop r13
pop r12
ret