Function at 0x140032504
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 0x140032552
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400328b0
movsxd rax, dword [rcx + 0x3c]
add rax, 0x108
cmp rdx, rax
jae 0x14003255c
mov ecx, 0xd
jmp 0x1400328b5
movsxd rsi, dword [rcx + 0x3c]
add rsi, rbp
cmp dword [rsi], 0x4550
jne 0x1400328b0
mov eax, 0x8664
cmp word [rsi + 4], ax
jne 0x1400328b0
test byte [rsi + 0x38], 1
jne 0x1400328b0
movzx ecx, word [rsi + 0x14]
mov r9d, dword [rsi + 0x38]
add rcx, 0x24
cmp r13w, word [rsi + 6]
jae 0x1400325c8
movzx r8d, word [rsi + 6]
add rcx, rsi
mov eax, dword [rcx + 4]
mov edx, dword [rcx]
test eax, eax
jne 0x1400325b2
lea rax, [r9 + rdx]
jmp 0x1400325b4
add eax, edx
cmp rax, rdi
cmovbe rax, rdi
add rcx, 0x28
mov rdi, rax
sub r8, 1
jne 0x1400325a3
lea rcx, [rsp + 0x20]
call qword [0x140068140]
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 0x1400328b0
mov rcx, qword [rsi + 0x30]
mov edi, 0x3000
mov r8d, edi
mov r9d, 4
mov rdx, rbx
call qword [0x140068138]
mov r14, rax
test rax, rax
jne 0x14003263f
lea r9d, [rax + 4]
mov r8d, edi
mov rdx, rbx
xor ecx, ecx
call qword [0x140068138]
mov r14, rax
test rax, rax
je 0x1400326e8
lea rcx, [r14 + rbx]
mov rax, r14
jmp 0x14003268b
mov ecx, 0x10
call fcn.14003e814
mov rdi, rax
test rax, rax
je 0x1400326f2
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 [0x140068138]
mov r14, rax
test rax, rax
je 0x1400326d6
lea rcx, [rax + rbx]
movabs rdx, 0xffffffff00000000
and rcx, rdx
and rax, rdx
cmp rax, rcx
jb 0x140032648
call qword [0x140068190]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x70]
call qword [0x140068310]
mov rdi, rax
test rax, rax
jne 0x140032731
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [0x140068130]
mov rcx, r15
jmp 0x1400326d9
mov rcx, rdi
lea rdx, [fcn.1400324e4]
xor r8d, r8d
call fcn.140031ed0
mov ecx, 0xe
jmp 0x1400328b5
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [0x140068130]
test r15, r15
je 0x1400326e8
mov rcx, qword [r15 + 8]
xor r9d, r9d
xor edx, edx
mov r8d, 0x8000
call fcn.1400324e4
mov rbx, qword [r15]
mov rcx, r15
call fcn.14003e800
mov r15, rbx
test rbx, rbx
jne 0x140032708
jmp 0x1400326e8
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, [0x1400324dc]
mov qword [rdi + 0x28], rax
lea rax, [fcn.1400324e4]
mov qword [rdi + 0x30], rax
lea rax, [0x1400324ec]
mov qword [rdi + 0x38], rax
lea rax, [0x1400324f4]
mov qword [rdi + 0x40], rax
lea rax, [0x1400324fc]
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 0x1400327a8
mov ecx, 0xd
call qword [0x140068128]
mov rcx, rdi
call fcn.140032a44
jmp 0x1400328bb
mov edx, dword [rsi + 0x54]
mov r9d, 4
mov r8d, 0x1000
mov rcx, r14
call qword [0x140068138]
mov r8d, dword [rsi + 0x54]
mov rdx, rbp
mov rcx, rax
mov rbx, rax
call fcn.140065d00
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.140031f2c
test eax, eax
je 0x14003279b
mov rax, qword [rdi]
mov rdx, qword [rax + 0x30]
sub rdx, qword [rsi + 0x30]
je 0x14003280c
mov rcx, rdi
call fcn.1400322a4
jmp 0x140032811
mov eax, 1
mov rcx, rdi
mov dword [rdi + 0x24], eax
call fcn.140032358
test eax, eax
je 0x14003279b
mov rcx, rdi
call fcn.140032118
test eax, eax
je 0x14003279b
mov rax, qword [rdi]
mov ecx, dword [rax + 0xd0]
test ecx, ecx
je 0x140032869
mov rsi, qword [rdi + 8]
mov rbx, qword [rcx + rsi + 0x18]
test rbx, rbx
je 0x140032869
jmp 0x140032861
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 1]
call rax
lea rbx, [rbx + 8]
mov rax, qword [rbx]
test rax, rax
jne 0x140032851
mov rax, qword [rdi]
cmp dword [rax + 0x28], r13d
je 0x1400328a7
mov eax, dword [rax + 0x28]
add rax, r14
cmp dword [rdi + 0x20], r13d
je 0x1400328a1
xor r8d, r8d
mov rcx, r14
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x140032898
mov ecx, 0x45a
jmp 0x140032795
mov dword [rdi + 0x1c], 1
jmp 0x1400328ab
mov qword [rdi + 0x60], rax
jmp 0x1400328ab
mov qword [rdi + 0x60], r13
mov rax, rdi
jmp 0x1400328bd
mov ecx, 0xc1
call qword [0x140068128]
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