Function at 0x140003e9c
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
mov ebp, edx
mov r15, rcx
xor ebx, ebx
lea rcx, [rax - 0x48]
xor edx, edx
xor r14d, r14d
lea r8d, [rbx + 0x30]
call fcn.1401bc390
mov r8d, 0xd27
mov edx, ebp
mov rcx, r15
xor esi, esi
call fcn.140002978
movsxd rax, dword [r15 + 0x3c]
mov ecx, 0x5a4d
lea rdi, [rax + r15]
cmp word [r15], cx
jne 0x140004137
cmp dword [rdi], 0x4550
jne 0x140004137
cmp ebp, 0x40
jb 0x14000412d
cmp ebp, dword [rdi + 0x54]
jb 0x14000412d
add rax, 0x108
mov r12d, ebp
cmp rbp, rax
jb 0x14000412d
mov eax, 0x8664
cmp word [rdi + 4], ax
je 0x140003f46
mov ecx, 0xc1
call qword [0x14053acd0]
jmp 0x140004171
movzx eax, word [rdi + 6]
movzx ecx, word [rdi + 0x14]
test eax, eax
je 0x140003f81
lea rdx, [rdi + 0x24]
mov r8d, eax
add rdx, rcx
cmp dword [rdx + 4], ebx
jne 0x140003f68
mov ecx, dword [rdx]
mov eax, dword [rdi + 0x38]
jmp 0x140003f6d
mov ecx, dword [rdx + 4]
mov eax, dword [rdx]
add rcx, rax
cmp rcx, r14
cmova r14, rcx
add rdx, 0x28
sub r8, 1
jne 0x140003f5c
lea rcx, [rsp + 0x20]
call qword [0x14053acd8]
mov edx, dword [rsp + 0x24]
lea r8d, [rdx - 1]
lea ebx, [rdx - 1]
not r8d
add ebx, dword [rdi + 0x50]
lea rcx, [rdx - 1]
add rcx, r14
and rbx, r8
and rcx, r8
cmp rbx, rcx
jne 0x140003f36
mov rcx, qword [rdi + 0x30]
mov ebp, 4
mov r14d, 0x3000
mov r9d, ebp
mov r8d, r14d
mov rdx, rbx
call qword [0x14053ace0]
mov rsi, rax
test rax, rax
jne 0x140003ff6
mov r9d, ebp
mov r8d, r14d
mov rdx, rbx
xor ecx, ecx
call qword [0x14053ace0]
mov rsi, rax
test rax, rax
jne 0x140003ff6
lea ecx, [rbp + 0xa]
jmp 0x140003f3b
call qword [0x14053ad10]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x20]
call qword [0x14053ace8]
mov rbx, rax
test rax, rax
jne 0x140004020
mov ecx, SafeArrayGetDim
jmp 0x14000413c
mov qword [rax + 8], rsi
mov r9d, ebp
mov eax, dword [rsp + 0x24]
mov r8d, 0x1000
mov dword [rbx + 0x24], eax
mov rcx, rsi
mov edx, dword [rdi + 0x54]
call qword [0x14053ace0]
mov rbp, rax
test rax, rax
je 0x140004016
mov r8d, dword [rdi + 0x54]
mov rdx, r15
mov rcx, rax
call fcn.1401bcbf0
movsxd rcx, dword [r15 + 0x3c]
mov r9, rbx
add rcx, rbp
mov r8, rdi
mov qword [rbx], rcx
mov rdx, r12
mov qword [rcx + 0x30], rsi
mov rcx, r15
call fcn.140002858
test eax, eax
je 0x140004142
mov rax, qword [rbx]
mov rdx, qword [rax + 0x30]
sub rdx, qword [rdi + 0x30]
je 0x140004098
mov rcx, rbx
call fcn.140003710
mov dword [rbx + 0x20], eax
jmp 0x14000409f
mov dword [rbx + 0x20], 1
mov rcx, rbx
call fcn.14000266c
test eax, eax
je 0x140004142
mov rcx, rbx
call fcn.14000397c
test eax, eax
je 0x140004142
mov rax, qword [rbx]
cmp dword [rax + 0xd0], 0
je 0x1400040fa
mov ecx, dword [rax + 0xd0]
mov rax, qword [rbx + 8]
mov rdi, qword [rcx + rax + 0x18]
test rdi, rdi
je 0x1400040fa
jmp 0x1400040f2
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 0x1400040e1
mov rax, qword [rbx]
cmp dword [rax + 0x28], 0
je 0x140004128
mov rcx, qword [rbx + 8]
xor r8d, r8d
mov eax, dword [rax + 0x28]
add rax, rcx
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x140004121
mov ecx, 0x45a
jmp 0x14000413c
mov dword [rbx + 0x1c], 1
mov rax, rbx
jmp 0x140004173
mov ecx, SafeArrayGetDim
jmp 0x140003f3b
mov ecx, 0xc1
call qword [0x14053acd0]
test rsi, rsi
je 0x140004158
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [0x14053acf8]
test rbx, rbx
je 0x140004171
call qword [0x14053ad10]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [0x14053ad08]
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