Function at 0x140005080
Capabilities:
Parse pe header

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x50
xor eax, eax
xor ebx, ebx
lea r14, [0x140257460]
mov dword [rsp + 0x20], ebx
mov qword [r11 - 0x34], rax
mov qword [r11 - 0x2c], rax
mov qword [r11 - 0x24], rax
mov qword [r11 - 0x1c], rax
mov qword [r11 - 0x14], rax
mov dword [rsp + 0x4c], eax
movsxd rax, dword [0x14025749c]
mov ecx, 0x5a4d
cmp word [0x140257460], cx
lea rdi, [rax + r14]
jne 0x140005342
cmp dword [rdi], 0x4550
jne 0x140005342
cmp dword [rdi + 0x54], 0xe4400
ja 0x14000533b
add rax, 0x108
cmp rax, 0xe4400
ja 0x14000533b
mov eax, 0x8664
cmp word [rdi + 4], ax
jne 0x140005342
movzx eax, word [rdi + 0x14]
lea rdx, [rdi + 0x24]
add rdx, rax
movzx eax, word [rdi + 6]
test eax, eax
je 0x140005154
mov r8d, eax
nop dword [rax]
mov eax, dword [rdx + 4]
test eax, eax
jne 0x14000513c
mov ecx, dword [rdi + 0x38]
jmp 0x14000513f
mov rcx, rax
mov eax, dword [rdx]
add rcx, rax
cmp rcx, rbx
cmova rbx, rcx
add rdx, 0x28
dec r8
jne 0x140005130
lea rcx, [rsp + 0x20]
call qword [0x14034c280]
mov r8d, dword [rsp + 0x24]
lea edx, [r8 - 1]
lea ebp, [r8 - 1]
lea rcx, [r8 - 1]
add ebp, dword [rdi + 0x50]
not edx
add rcx, rbx
and rbp, rdx
and rcx, rdx
cmp rbp, rcx
jne 0x140005342
mov rcx, qword [rdi + 0x30]
mov r9d, 4
mov r8d, 0x3000
mov rdx, rbp
call qword [0x14034c288]
mov rsi, rax
test rax, rax
jne 0x1400051cd
lea r9d, [rax + 4]
mov r8d, 0x3000
mov rdx, rbp
xor ecx, ecx
call qword [0x14034c288]
mov rsi, rax
test rax, rax
jne 0x1400051cd
lea ecx, [rax + 0xe]
jmp 0x140005347
call qword [0x14034c2b8]
mov edx, 8
lea r8d, [rdx + 0x20]
mov rcx, rax
call qword [0x14034c290]
mov rbx, rax
test rax, rax
je 0x1400052ff
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 [0x14034c288]
mov rbp, rax
test rax, rax
je 0x1400052ff
mov r8d, dword [rdi + 0x54]
mov rdx, r14
mov rcx, rax
call fcn.140191ae0
movsxd rcx, dword [0x14025749c]
mov r9, rbx
add rcx, rbp
mov r8, rdi
mov qword [rbx], rcx
mov qword [rcx + 0x30], rsi
call fcn.1400048b0
test eax, eax
je 0x14000530a
mov rax, qword [rbx]
mov rdx, qword [rax + 0x30]
sub rdx, qword [rdi + 0x30]
je 0x14000526d
mov rcx, rbx
call fcn.1400049e0
mov dword [rbx + 0x20], eax
jmp 0x140005274
mov dword [rbx + 0x20], 1
mov rcx, rbx
call fcn.140004ab0
test eax, eax
je 0x14000530a
mov rcx, rbx
call fcn.140004d60
test eax, eax
je 0x14000530a
mov rax, qword [rbx]
mov ecx, dword [rax + 0xd0]
test ecx, ecx
je 0x1400052cd
mov rax, qword [rbx + 8]
mov rdi, qword [rcx + rax + 0x18]
test rdi, rdi
je 0x1400052cd
mov rax, qword [rdi]
test rax, rax
je 0x1400052cd
mov rcx, qword [rbx + 8]
xor r8d, r8d
lea edx, [r8 + 1]
call rax
mov rax, qword [rdi + 8]
lea rdi, [rdi + 8]
test rax, rax
jne 0x1400052b3
mov rax, qword [rbx]
mov edx, dword [rax + 0x28]
test edx, edx
je 0x1400052fa
mov rcx, qword [rbx + 8]
xor r8d, r8d
lea rax, [rcx + rdx]
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x1400052f3
mov ecx, 0x45a
jmp 0x140005304
mov dword [rbx + 0x1c], 1
mov rax, rbx
jmp 0x14000534f
mov ecx, SafeArrayGetDim
call qword [0x14034c278]
test rsi, rsi
je 0x140005320
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [0x14034c2a0]
test rbx, rbx
je 0x14000534d
call qword [0x14034c2b8]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [0x14034c2b0]
jmp 0x14000534d
mov ecx, SafeArrayGetDim
jmp 0x140005347
mov ecx, 0xc1
call qword [0x14034c278]
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 r14
ret