Function at 0x140080800
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov rax, qword [rdx]
mov rsi, rcx
movzx ebp, byte [rdx + 0x24]
mov rdi, rdx
mov rbx, qword [rcx + 0x10]
not ebp
xor ecx, ecx
and ebp, 1
mov r12d, dword [rax]
mov r13d, ecx
mov eax, dword [rdx + 8]
mov dword [rsp + 0x90], eax
mov eax, dword [rsp + 0xc0]
lea r15d, [r12 + rbp]
mov dword [rsp + 0x30], ecx
add r15d, dword [rsp + 0xb8]
test eax, eax
je 0x140080865
mov r14d, r9d
sub r14d, eax
jmp 0x140080872
mov eax, dword [rsi + 0x38]
lea r14d, [rax + 1]
add eax, r15d
mov dword [rsi + 0x38], eax
mov eax, dword [r8 + 0xc]
test eax, eax
je 0x14008087e
inc eax
jmp 0x140080882
mov eax, dword [r8 + 8]
dec dword [rsi + 0x44]
mov ecx, 5
mov r9d, dword [rsp + 0xb0]
mov r8d, r14d
mov dword [rsp + 0x98], eax
test r9d, r9d
mov eax, dword [rsi + 0x44]
mov dword [rdx + 0x1c], eax
mov eax, 1
mov rdx, qword [rdx]
cmovne eax, ecx
mov rcx, rsi
mov byte [rsp + 0x20], al
call fcn.140052bf0
test ebp, ebp
je 0x14008091e
movsxd rcx, dword [rbx + 0x90]
lea edx, [r14 + r12]
mov r8d, dword [rdi + 0xc]
cmp dword [rbx + 0x94], ecx
jg 0x1400808ed
xor eax, eax
mov r9d, edx
mov rcx, rbx
mov dword [rsp + 0x20], eax
lea edx, [rax + 0x7e]
call fcn.14002feb0
jmp 0x14008091e
lea eax, [rcx + 1]
xor r9d, r9d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x7e
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
cmp dword [rsp + 0xc0], r13d
jne 0x14008094c
mov eax, dword [rsp + 0xb8]
test eax, eax
jle 0x14008094c
mov edx, dword [rsp + 0xa8]
lea r8d, [r14 + r12]
add r8d, ebp
mov r9d, eax
mov rcx, rsi
call fcn.140050b40
cmp dword [rsp + 0x90], r13d
jle 0x140080c2b
mov r8, qword [rsp + 0xa0]
mov r9d, r14d
mov rdx, rdi
mov dword [rsp + 0x20], r15d
mov rcx, rsi
call fcn.140080740
mov edx, dword [rsi + 0x38]
mov rcx, rbx
mov dword [rsp + 0x30], eax
lea eax, [rdx + 1]
add edx, dword [rdi + 8]
mov dword [rsp + 0xc0], eax
mov eax, r12d
mov dword [rsi + 0x38], edx
sub eax, dword [rdi + 8]
add eax, ebp
mov dword [rsp + 0x34], eax
test ebp, ebp
je 0x1400809aa
lea r8d, [r14 + r12]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetElemsize
jmp 0x1400809b3
mov r8d, dword [rdi + 0xc]
mov edx, 0x78
call fcn.140030020
movsxd rcx, dword [rbx + 0x90]
mov edx, dword [rdi + 8]
mov r8d, dword [rsp + 0xc0]
mov dword [rsp + 0xb0], eax
cmp dword [rbx + 0x94], ecx
jg 0x1400809ef
mov dword [rsp + 0x20], edx
mov r9d, r14d
mov edx, 0x5a
mov rcx, rbx
call fcn.14002feb0
jmp 0x140080a20
lea eax, [rcx + 1]
xor r9d, r9d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x5a
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r14d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r9
mov rax, qword [rbx]
cmp byte [rax + 0x67], r13b
je 0x140080a32
lea rcx, [0x140298780]
jmp 0x140080a45
movsxd rax, dword [rdi + 0x18]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rcx, [rax + rcx*8]
mov rax, qword [rsi]
mov qword [rsp + 0x38], rcx
cmp byte [rax + 0x67], r13b
jne 0x140080e4f
mov rbp, qword [rcx + 0x10]
xor edx, edx
mov eax, dword [rsp + 0x34]
add eax, dword [rsp + 0xb8]
mov dword [rcx + 8], eax
movzx r8d, word [rbp + 6]
mov rcx, qword [rbp + 0x18]
call fcn.1401b04b0
mov rcx, qword [rbx]
cmp byte [rcx + 0x67], r13b
je 0x140080a91
mov r8, rbp
mov edx, 0xfffffff8
call fcn.140031080
jmp 0x140080acc
mov eax, dword [rbx + 0x90]
dec eax
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
cmp byte [rax + rcx*8 + 1], r13b
lea rdx, [rax + rcx*8]
je 0x140080ac4
mov r9d, 0xfffffff8
mov r8, rbp
mov rcx, rbx
call fcn.140031280
jmp 0x140080acc
mov qword [rdx + 0x10], rbp
mov byte [rdx + 1], 0xf8
movzx r9d, word [rbp + 8]
mov rcx, rsi
movzx eax, word [rbp + 6]
mov r8d, dword [rsp + 0x90]
sub r9d, eax
mov rdx, qword [rdi]
dec r9d
call fcn.1400820e0
mov rcx, qword [rsp + 0x38]
mov qword [rcx + 0x10], rax
movsxd rbp, dword [rbx + 0x90]
lea edx, [rbp + 1]
cmp dword [rbx + 0x94], ebp
jg 0x140080b21
xor r9d, r9d
mov dword [rsp + 0x20], edx
mov r8d, edx
mov rcx, rbx
lea edx, [r9 + 0xe]
call fcn.14002feb0
jmp 0x140080b58
lea eax, [rbp + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rbp*2]
mov rax, qword [rbx + 0x88]
add rcx, rbp
xor r8d, r8d
mov dword [rax + rcx*8], SafeArrayDestroy
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r8
dec dword [rsi + 0x44]
mov edx, 0xa
mov eax, dword [rsi + 0x44]
mov rcx, rbx
mov dword [rdi + 0x14], eax
mov r8d, dword [rsi + 0x38]
inc r8d
mov dword [rsi + 0x38], r8d
mov r9d, dword [rdi + 0x14]
mov dword [rdi + 0x10], r8d
call fcn.140030090
mov r8d, dword [rdi + 0xc]
mov edx, 0x92
mov rcx, rbx
call fcn.140030020
mov eax, dword [rsp + 0x98]
test eax, eax
je 0x140080bb1
mov r9d, dword [rdi + 0x1c]
mov r8d, eax
mov edx, reloc.OLEAUT32.dll_SafeArrayGetElemsize
mov rcx, rbx
call fcn.140030090
mov rax, qword [rbx]
mov edx, dword [rbx + 0x90]
cmp byte [rax + 0x67], r13b
je 0x140080bc9
lea rax, [0x140298780]
jmp 0x140080be0
movsxd rax, dword [rsp + 0xb0]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + rcx*8]
mov r8d, dword [rsp + 0xc0]
mov rcx, rsi
mov dword [rax + 8], edx
mov edx, r14d
mov r9d, dword [rdi + 8]
call fcn.140050b40
mov rax, qword [rbx]
mov edx, dword [rbx + 0x90]
cmp byte [rax + 0x67], r13b
je 0x140080c12
lea rax, [0x140298780]
jmp 0x140080c28
mov rax, qword [rbx + 0x88]
lea rcx, [rbp*2]
add rcx, rbp
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
mov r8d, dword [rsp + 0x98]
test r8d, r8d
je 0x140080d72
movsxd rcx, dword [rbx + 0x90]
mov ebp, dword [rdi + 0xc]
lea edx, [rcx + 4]
cmp dword [rbx + 0x94], ecx
jg 0x140080c6a
xor eax, eax
mov r9d, edx
mov rcx, rbx
mov dword [rsp + 0x20], eax
lea edx, [rax + 0x3c]
call fcn.14002feb0
xor r9d, r9d
jmp 0x140080c9b
lea eax, [rcx + 1]
xor r9d, r9d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x3c
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x140080cc6
mov dword [rsp + 0x20], r9d
mov r8d, ebp
xor r9d, r9d
mov rcx, rbx
lea edx, [r9 + 0x20]
call fcn.14002feb0
xor r9d, r9d
jmp 0x140080cef
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x20
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 8], r13
mov qword [rax + rcx*8 + 0x10], r9
mov eax, dword [rsp + 0x90]
sub r12d, eax
movsxd r13, dword [rbx + 0x90]
lea edx, [r14 + rax]
cmp dword [rbx + 0x94], r13d
jg 0x140080d2d
xor r9d, r9d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], edx
mov r8d, ebp
mov rcx, rbx
lea edx, [r9 + 0x28]
call fcn.14002ff10
mov r13d, eax
jmp 0x140080d62
lea eax, [r13 + 1]
mov dword [rbx + 0x90], eax
lea rcx, [r13*2]
mov rax, qword [rbx + 0x88]
add rcx, r13
mov dword [rax + rcx*8], 0xfd28
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], edx
mov dword [rax + rcx*8 + 0x10], r12d
mov r8d, ebp
mov edx, 0x82
mov rcx, rbx
call fcn.140030020
mov r10d, dword [rsp + 0x30]
test r10d, r10d
jne 0x140080d9a
mov r8, qword [rsp + 0xa0]
mov r9d, r14d
mov rdx, rdi
mov dword [rsp + 0x20], r15d
mov rcx, rsi
call fcn.140080740
mov r10d, eax
mov eax, dword [rsp + 0x90]
sub r15d, eax
movzx edx, byte [rdi + 0x24]
movsxd rcx, dword [rbx + 0x90]
and edx, 1
mov r8d, dword [rdi + 0xc]
or edx, 0x8a
lea r9d, [r14 + rax]
cmp dword [rbx + 0x94], ecx
jg 0x140080ddf
mov dword [rsp + 0x28], r15d
mov rcx, rbx
mov dword [rsp + 0x20], r9d
mov r9d, r10d
call fcn.14002ff10
jmp 0x140080e16
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov byte [rax + rcx*8], dl
xor edx, edx
mov word [rax + rcx*8 + 2], dx
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r10d
mov dword [rax + rcx*8 + 0xc], r9d
mov dword [rax + rcx*8 + 0x10], r15d
mov byte [rax + rcx*8 + 1], 0xfd
test r13d, r13d
je 0x140080e4f
mov edx, dword [rdi + 0x20]
test edx, edx
jne 0x140080e28
mov edx, dword [rbx + 0x90]
mov rax, qword [rbx]
cmp byte [rax + 0x67], 0
je 0x140080e3a
lea rax, [0x140298780]
jmp 0x140080e4c
movsxd rax, r13d
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret