Function at 0x14003013c
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
push r14
push r15
sub rsp, 0x50
xor r13d, r13d
mov r12, rdx
mov rbp, rcx
mov edi, r13d
mov r15d, r13d
cmp rdx, 0x40
jb 0x14003018a
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400304e8
movsxd rax, dword [rcx + 0x3c]
add rax, 0x108
cmp rdx, rax
jae 0x140030194
mov ecx, 0xd
jmp 0x1400304ed
movsxd rsi, dword [rcx + 0x3c]
add rsi, rbp
cmp dword [rsi], 0x4550
jne 0x1400304e8
mov eax, 0x8664
cmp word [rsi + 4], ax
jne 0x1400304e8
test byte [rsi + 0x38], 1
jne 0x1400304e8
movzx ecx, word [rsi + 0x14]
mov r9d, dword [rsi + 0x38]
add rcx, 0x24
cmp r13w, word [rsi + 6]
jae 0x140030200
movzx r8d, word [rsi + 6]
add rcx, rsi
mov eax, dword [rcx + 4]
mov edx, dword [rcx]
test eax, eax
jne 0x1400301ea
lea rax, [r9 + rdx]
jmp 0x1400301ec
add eax, edx
cmp rax, rdi
cmovbe rax, rdi
add rcx, 0x28
mov rdi, rax
sub r8, 1
jne 0x1400301db
lea rcx, [rsp + 0x20]
call qword [0x140065138]
mov edx, dword [rsp + 0x24]
mov eax, dword [rsi + 0x50]
lea rbx, [rdx - 1]
add rbx, rax
lea rcx, [rdx - 1]
not rcx
lea rax, [rdx - 1]
add rax, rdi
and rbx, rcx
and rax, rcx
cmp rbx, rax
jne 0x1400304e8
mov rcx, qword [rsi + 0x30]
mov edi, 0x3000
mov r8d, edi
mov r9d, 4
mov rdx, rbx
call qword [0x140065130]
mov r14, rax
test rax, rax
jne 0x140030277
lea r9d, [rax + 4]
mov r8d, edi
mov rdx, rbx
xor ecx, ecx
call qword [0x140065130]
mov r14, rax
test rax, rax
je 0x140030320
lea rcx, [r14 + rbx]
mov rax, r14
jmp 0x1400302c3
mov ecx, 0x10
call fcn.14003b954
mov rdi, rax
test rax, rax
je 0x14003032a
mov qword [rax], r15
mov r9d, 4
mov r8d, 0x3000
mov qword [rax + 8], r14
mov rdx, rbx
xor ecx, ecx
mov r15, rax
call qword [0x140065130]
mov r14, rax
test rax, rax
je 0x14003030e
lea rcx, [rax + rbx]
movabs rdx, 0xffffffff00000000
and rcx, rdx
and rax, rdx
cmp rax, rcx
jb 0x140030280
call qword [0x140065160]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x70]
call qword [0x1400652d8]
mov rdi, rax
test rax, rax
jne 0x140030369
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [0x140065128]
mov rcx, r15
jmp 0x140030311
mov rcx, rdi
lea rdx, [fcn.14003011c]
xor r8d, r8d
call fcn.14002fb08
mov ecx, 0xe
jmp 0x1400304ed
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [0x140065128]
test r15, r15
je 0x140030320
mov rcx, qword [r15 + 8]
xor r9d, r9d
xor edx, edx
mov r8d, 0x8000
call fcn.14003011c
mov rbx, qword [r15]
mov rcx, r15
call fcn.14003b940
mov r15, rbx
test rbx, rbx
jne 0x140030340
jmp 0x140030320
mov qword [rax + 8], r14
movzx eax, word [rsi + 0x16]
shr eax, 0xd
and eax, 1
mov qword [rdi + 0x58], r13
mov dword [rdi + 0x20], eax
lea rax, [0x140030114]
mov qword [rdi + 0x28], rax
lea rax, [fcn.14003011c]
mov qword [rdi + 0x30], rax
lea rax, [0x140030124]
mov qword [rdi + 0x38], rax
lea rax, [0x14003012c]
mov qword [rdi + 0x40], rax
lea rax, [0x140030134]
mov qword [rdi + 0x48], rax
mov eax, dword [rsp + 0x24]
mov dword [rdi + 0x68], eax
mov qword [rdi + 0x70], r15
mov eax, dword [rsi + 0x54]
cmp r12, rax
jae 0x1400303e0
mov ecx, 0xd
call qword [0x140065120]
mov rcx, rdi
call fcn.14003067c
jmp 0x1400304f3
mov edx, dword [rsi + 0x54]
mov r9d, 4
mov r8d, 0x1000
mov rcx, r14
call qword [0x140065130]
mov r8d, dword [rsi + 0x54]
mov rdx, rbp
mov rcx, rax
mov rbx, rax
call fcn.140062d10
movsxd rax, dword [rbp + 0x3c]
mov r9, rdi
add rax, rbx
mov r8, rsi
mov qword [rdi], rax
mov rdx, r12
mov rcx, rbp
mov qword [rax + 0x30], r14
call fcn.14002fb64
test eax, eax
je 0x1400303d3
mov rax, qword [rdi]
mov rdx, qword [rax + 0x30]
sub rdx, qword [rsi + 0x30]
je 0x140030444
mov rcx, rdi
call fcn.14002fedc
jmp 0x140030449
mov eax, 1
mov rcx, rdi
mov dword [rdi + 0x24], eax
call fcn.14002ff90
test eax, eax
je 0x1400303d3
mov rcx, rdi
call fcn.14002fd50
test eax, eax
je 0x1400303d3
mov rax, qword [rdi]
mov ecx, dword [rax + 0xd0]
test ecx, ecx
je 0x1400304a1
mov rsi, qword [rdi + 8]
mov rbx, qword [rcx + rsi + 0x18]
test rbx, rbx
je 0x1400304a1
jmp 0x140030499
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 1]
call rax
lea rbx, [rbx + 8]
mov rax, qword [rbx]
test rax, rax
jne 0x140030489
mov rax, qword [rdi]
cmp dword [rax + 0x28], r13d
je 0x1400304df
mov eax, dword [rax + 0x28]
add rax, r14
cmp dword [rdi + 0x20], r13d
je 0x1400304d9
xor r8d, r8d
mov rcx, r14
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x1400304d0
mov ecx, 0x45a
jmp 0x1400303cd
mov dword [rdi + 0x1c], 1
jmp 0x1400304e3
mov qword [rdi + 0x60], rax
jmp 0x1400304e3
mov qword [rdi + 0x60], r13
mov rax, rdi
jmp 0x1400304f5
mov ecx, 0xc1
call qword [0x140065120]
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret