Function at 0x140003c40
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
sub rsp, 0x50
xor ebx, ebx
lea rcx, [rsp + 0x24]
xor edx, edx
lea r8d, [rbx + 0x2c]
mov dword [rsp + 0x20], ebx
call fcn.140155500
call fcn.140003be0
movsxd rax, dword [0x14020b72c]
lea r12, [0x14020b6f0]
mov ecx, 0x5a4d
cmp word [0x14020b6f0], cx
lea rdi, [rax + r12]
jne 0x140003eff
cmp dword [rdi], 0x4550
jne 0x140003eff
cmp dword [rdi + 0x54], 0x1d8e00
ja 0x140003ef8
add rax, 0x108
cmp rax, 0x1d8e00
ja 0x140003ef8
mov eax, 0x8664
cmp word [rdi + 4], ax
jne 0x140003eff
movzx eax, word [rdi + 6]
movzx ecx, word [rdi + 0x14]
test eax, eax
je 0x140003d0b
lea rdx, [rcx + rdi + 0x24]
mov r8d, eax
mov eax, dword [rdx + 4]
test eax, eax
jne 0x140003cf3
mov ecx, dword [rdi + 0x38]
jmp 0x140003cf6
mov rcx, rax
mov eax, dword [rdx]
add rcx, rax
cmp rcx, rbx
cmova rbx, rcx
add rdx, 0x28
dec r8
jne 0x140003ce7
lea rcx, [rsp + 0x20]
call qword [0x14042db48]
mov r11d, dword [rsp + 0x24]
mov eax, dword [rdi + 0x50]
lea edx, [r11 - 1]
lea ebp, [rax + r11 - 1]
lea rcx, [r11 + rbx - 1]
not edx
and rbp, rdx
and rcx, rdx
cmp rbp, rcx
jne 0x140003eff
mov rcx, qword [rdi + 0x30]
mov r9d, 4
mov r8d, 0x3000
mov rdx, rbp
call qword [0x14042db50]
mov rsi, rax
test rax, rax
jne 0x140003d83
lea r9d, [rax + 4]
mov r8d, 0x3000
mov rdx, rbp
xor ecx, ecx
call qword [0x14042db50]
mov rsi, rax
test rax, rax
jne 0x140003d83
lea ecx, [rax + 0xe]
jmp 0x140003f04
call qword [0x14042db80]
mov edx, 8
lea r8d, [rdx + 0x20]
mov rcx, rax
call qword [0x14042db58]
mov rbx, rax
test rax, rax
je 0x140003ebc
mov qword [rax + 8], rsi
mov eax, dword [rsp + 0x24]
mov r9d, 4
mov dword [rbx + 0x24], eax
mov edx, dword [rdi + 0x54]
mov r8d, 0x1000
mov rcx, rsi
call qword [0x14042db50]
mov rbp, rax
test rax, rax
je 0x140003ebc
mov r8d, dword [rdi + 0x54]
mov rdx, r12
mov rcx, rax
call fcn.140155600
movsxd rax, dword [0x14020b72c]
mov rdx, rbx
add rax, rbp
mov rcx, rdi
mov qword [rbx], rax
mov qword [rax + 0x30], rsi
call fcn.140003410
test eax, eax
je 0x140003ec7
mov rax, qword [rbx]
mov rdx, qword [rax + 0x30]
sub rdx, qword [rdi + 0x30]
je 0x140003e23
mov rcx, rbx
call fcn.140003530
mov dword [rbx + 0x20], eax
jmp 0x140003e2a
mov dword [rbx + 0x20], 1
mov rcx, rbx
call fcn.140003600
test eax, eax
je 0x140003ec7
mov rcx, rbx
call fcn.1400038b0
test eax, eax
je 0x140003ec7
mov rax, qword [rbx]
mov ecx, dword [rax + 0xd0]
test ecx, ecx
je 0x140003e8a
mov rax, qword [rbx + 8]
mov rdi, qword [rcx + rax + 0x18]
test rdi, rdi
je 0x140003e8a
mov rax, qword [rdi]
test rax, rax
je 0x140003e8a
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 0x140003e70
mov rax, qword [rbx]
mov edx, dword [rax + 0x28]
test edx, edx
je 0x140003eb7
mov rcx, qword [rbx + 8]
xor r8d, r8d
lea rax, [rcx + rdx]
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x140003eb0
mov ecx, 0x45a
jmp 0x140003ec1
mov dword [rbx + 0x1c], 1
mov rax, rbx
jmp 0x140003f0c
mov ecx, SafeArrayGetDim
call qword [0x14042db40]
test rsi, rsi
je 0x140003edd
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [0x14042db68]
test rbx, rbx
je 0x140003f0a
call qword [0x14042db80]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [0x14042db78]
jmp 0x140003f0a
mov ecx, SafeArrayGetDim
jmp 0x140003f04
mov ecx, 0xc1
call qword [0x14042db40]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret