Function at 0x140005c10
Capabilities:
Parse pe header

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
xor eax, eax
mov esi, edx
mov r8d, 0xd27
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x40], rax
mov r14, rcx
mov qword [r11 - 0x38], rax
xor ebx, ebx
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
call fcn.140005010
movsxd rax, dword [r14 + 0x3c]
mov ecx, 0x5a4d
lea rdi, [rax + r14]
cmp word [r14], cx
jne 0x140005edf
cmp dword [rdi], 0x4550
jne 0x140005edf
cmp esi, 0x40
jb 0x140005ed8
cmp esi, dword [rdi + 0x54]
jb 0x140005ed8
add rax, 0x108
mov r15d, esi
cmp rsi, rax
jb 0x140005ed8
mov eax, 0x8664
cmp word [rdi + 4], ax
jne 0x140005edf
movzx eax, word [rdi + 0x14]
lea rdx, [rdi + 0x24]
add rdx, rax
movzx eax, word [rdi + 6]
test eax, eax
je 0x140005ce7
mov r8d, eax
mov eax, dword [rdx + 4]
test eax, eax
jne 0x140005cce
mov ecx, dword [rdx]
mov eax, dword [rdi + 0x38]
jmp 0x140005cd3
mov rcx, rax
mov eax, dword [rdx]
add rcx, rax
cmp rcx, rbx
cmova rbx, rcx
add rdx, 0x28
sub r8, 1
jne 0x140005cc0
lea rcx, [rsp + 0x20]
call qword [0x140531758]
mov edx, dword [rsp + 0x24]
lea r8d, [rdx - 1]
lea ebp, [rdx - 1]
not r8d
add ebp, dword [rdi + 0x50]
lea rcx, [rdx - 1]
add rcx, rbx
and rbp, r8
and rcx, r8
cmp rbp, rcx
jne 0x140005edf
mov rcx, qword [rdi + 0x30]
mov r9d, 4
mov r8d, 0x3000
mov rdx, rbp
call qword [0x140531760]
mov rsi, rax
test rax, rax
jne 0x140005d5f
lea r9d, [rax + 4]
mov r8d, 0x3000
mov rdx, rbp
xor ecx, ecx
call qword [0x140531760]
mov rsi, rax
test rax, rax
jne 0x140005d5f
lea ecx, [rax + 0xe]
jmp 0x140005ee4
call qword [0x140531790]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x20]
call qword [0x140531768]
mov rbx, rax
test rax, rax
je 0x140005e9c
mov qword [rax + 8], rsi
mov r9d, 4
mov eax, dword [rsp + 0x24]
mov r8d, 0x1000
mov dword [rbx + 0x24], eax
mov rcx, rsi
mov edx, dword [rdi + 0x54]
call qword [0x140531760]
mov rbp, rax
test rax, rax
je 0x140005e9c
mov r8d, dword [rdi + 0x54]
mov rdx, r14
mov rcx, rax
call fcn.1401baaa0
movsxd rcx, dword [r14 + 0x3c]
mov r9, rbx
add rcx, rbp
mov r8, rdi
mov qword [rbx], rcx
mov rdx, r15
mov qword [rcx + 0x30], rsi
mov rcx, r14
call fcn.140004eb0
test eax, eax
je 0x140005ea7
mov rax, qword [rbx]
mov rdx, qword [rax + 0x30]
sub rdx, qword [rdi + 0x30]
je 0x140005e02
mov rcx, rbx
call fcn.1400057e0
mov dword [rbx + 0x20], eax
jmp 0x140005e09
mov dword [rbx + 0x20], 1
mov rcx, rbx
call fcn.140004bd0
test eax, eax
je 0x140005ea7
mov rcx, rbx
call fcn.1400059a0
test eax, eax
je 0x140005ea7
mov rax, qword [rbx]
mov ecx, dword [rax + 0xd0]
test ecx, ecx
je 0x140005e6a
mov rax, qword [rbx + 8]
mov rdi, qword [rcx + rax + 0x18]
test rdi, rdi
je 0x140005e6a
mov rax, qword [rdi]
test rax, rax
je 0x140005e6a
nop dword [rax]
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 0x140005e50
mov rax, qword [rbx]
mov edx, dword [rax + 0x28]
test edx, edx
je 0x140005e97
mov rcx, qword [rbx + 8]
xor r8d, r8d
lea rax, [rcx + rdx]
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x140005e90
mov ecx, 0x45a
jmp 0x140005ea1
mov dword [rbx + 0x1c], 1
mov rax, rbx
jmp 0x140005eec
mov ecx, SafeArrayGetDim
call qword [0x140531750]
test rsi, rsi
je 0x140005ebd
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [0x140531778]
test rbx, rbx
je 0x140005eea
call qword [0x140531790]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [0x140531788]
jmp 0x140005eea
mov ecx, SafeArrayGetDim
jmp 0x140005ee4
mov ecx, 0xc1
call qword [0x140531750]
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret