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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rbp, qword [rdx]
mov rbx, rdx
mov rsi, qword [rcx + 0x10]
xor edi, edi
movsxd r10, r9d
mov r12, r8
mov r11, rcx
mov qword [rsp + 0x48], rbp
movzx edx, byte [rbp]
mov r14d, 0x400
mov r15d, 0x800
lea eax, [rdx - 0x2d]
test al, 0xf7
je 0x140099c3f
cmp dl, 0x32
jne 0x1400994eb
mov ebp, dword [rsp + 0xe8]
lea edx, [rdi + 0x4b]
mov r9d, ebp
xor r8d, r8d
mov rcx, rsi
call fcn.140030090
jmp 0x140099b9b
mov r13, qword [r8 + 0x60]
mov r14d, edi
mov dword [rsp + 0x30], 5
mov r15, rdi
mov qword [rsp + 0x40], r13
test dword [r13 + 0x38], 0x400
jne 0x14009952d
mov rax, qword [r13 + 0x20]
test rax, rax
je 0x14009952d
mov rax, qword [rax + 0x38]
cmp byte [r10 + rax], dil
je 0x14009952d
cmp dword [rsp + 0xe0], edi
mov eax, edi
sete al
jmp 0x140099534
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x38], eax
test r9d, r9d
jle 0x14009955e
mov r8, qword [r13 + 0x48]
mov rax, rdi
mov rcx, qword [r8 + rax*8]
test rcx, rcx
je 0x140099556
cmp qword [rcx], rbp
je 0x1400995ee
inc rax
cmp rax, r10
jl 0x140099544
movzx r8d, word [r13 + 0x3c]
cmp r10d, r8d
jge 0x14009959b
mov rax, qword [r13 + 0x48]
sub r8d, r10d
lea rdx, [rax + r10*8]
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdx]
lea ecx, [r14 + 1]
lea rdx, [rdx + 8]
cmp qword [rax], rbp
cmovne ecx, r14d
mov r14d, ecx
sub r8, 1
jne 0x140099580
test dword [rbp + 4], 0x1000
mov dword [rsp + 0x34], edi
je 0x140099752
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x20]
cmp dword [rcx], 1
je 0x140099752
cmp dword [rbp + 0x2c], edi
je 0x140099690
test dword [rbp + 4], 0x2000000
je 0x140099690
mov rcx, qword [rbp + 0x10]
movzx eax, byte [rcx]
cmp al, 0xb0
jne 0x1400995e2
movzx eax, byte [rcx + 2]
cmp al, 0xb1
jne 0x140099605
mov rax, qword [rcx + 0x20]
mov ecx, dword [rax]
jmp 0x14009961a
mov rdx, rbx
mov rcx, r12
call fcn.140098f80
mov eax, dword [rsp + 0xe8]
jmp 0x140099c84
cmp al, 0x8a
jne 0x140099615
mov rax, qword [rcx + 0x20]
mov rcx, qword [rax + 0x20]
mov ecx, dword [rcx]
jmp 0x14009961a
mov ecx, 1
cmp r14d, ecx
cmovg ecx, r14d
movsxd rbp, ecx
mov rcx, qword [r11]
shl rbp, 2
test rcx, rcx
je 0x14009963a
mov rdx, rbp
call fcn.140007120
jmp 0x140099642
mov rcx, rbp
call fcn.140006990
mov r15, rax
test rax, rax
je 0x140099657
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.1401b04b0
mov rbp, qword [rsp + 0x48]
lea rax, [rsp + 0x34]
mov rcx, qword [rsp + 0xc0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov qword [rsp + 0x20], r15
lea r8d, [r9 + 4]
call fcn.14004dc50
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x48], rbp
jmp 0x140099777
mov r8, qword [rsp + 0x40]
mov r9, rbp
mov r13, qword [r11]
mov edx, r10d
mov rcx, r11
call fcn.140099170
mov r12, rax
cmp byte [r13 + 0x67], dil
jne 0x140099725
mov rcx, qword [rsp + 0xc0]
movsxd rbp, r14d
shl rbp, 2
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400996d0
mov rdx, rbp
call fcn.140007120
jmp 0x1400996d8
mov rcx, rbp
call fcn.140006990
mov r15, rax
test rax, rax
je 0x1400996ed
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.1401b04b0
mov rcx, qword [rsp + 0xc0]
lea rax, [rsp + 0x34]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov rdx, r12
mov qword [rsp + 0x20], r15
lea r8d, [r9 + 4]
call fcn.14004dc50
mov rbp, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov dword [rbp + 0x2c], ecx
jmp 0x14009972a
mov eax, 5
test r12, r12
je 0x14009973e
mov rdx, r12
mov rcx, r13
call fcn.14004bb20
mov eax, dword [rsp + 0x30]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0xd0]
mov qword [rsp + 0x48], rbp
jmp 0x140099777
xor r9d, r9d
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, r11
mov qword [rsp + 0x20], rdi
lea r8d, [r9 + 4]
call fcn.14004dc50
mov dword [rsp + 0x30], eax
cmp eax, 4
jne 0x14009978b
cmp dword [rsp + 0x38], edi
mov eax, edi
sete al
mov dword [rsp + 0x38], eax
jmp 0x14009978f
mov eax, dword [rsp + 0x38]
test eax, eax
mov ecx, 0x20
mov edx, 0x24
cmovne edx, ecx
movsxd rcx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], ecx
jg 0x1400997c3
mov r8d, dword [rsp + 0x34]
xor r9d, r9d
mov rcx, rsi
mov dword [rsp + 0x20], edi
call fcn.14002feb0
jmp 0x1400997f6
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov byte [rax + rcx*8], dl
mov edx, dword [rsp + 0x34]
mov dword [rax + rcx*8 + 4], edx
mov word [rax + rcx*8 + 2], di
mov qword [rax + rcx*8 + 8], rdi
mov qword [rax + rcx*8 + 0x10], rdi
mov byte [rax + rcx*8 + 1], dil
or dword [r13 + 0x38], 0x800
cmp dword [r12 + 0x50], edi
jne 0x140099818
mov rax, qword [rsp + 0xc0]
dec dword [rax + 0x44]
mov eax, dword [rax + 0x44]
mov dword [r12 + 0x10], eax
cmp dword [rsp + 0xd8], edi
jle 0x140099833
mov eax, dword [r13 + 0x38]
bt eax, 0x14
jb 0x140099833
bts eax, 0x12
mov dword [r13 + 0x38], eax
mov eax, dword [r12 + 0x50]
mov rbp, qword [r12 + 0x58]
mov dword [rsp + 0x3c], eax
add eax, r14d
mov dword [r12 + 0x50], eax
cdqe
lea r13, [rax + rax*4]
mov rax, qword [rbx + 8]
shl r13, 2
mov r12, qword [rax]
lea rdx, [r13 + 0x10]
mov rcx, qword [r12]
mov rcx, qword [rcx]
call fcn.140007120
mov r14, rax
test rax, rax
je 0x14009989d
mov rax, qword [r12 + 0x60]
mov qword [r14], rax
mov qword [r14 + 8], r13
mov qword [r12 + 0x60], r14
add r14, 0x10
je 0x14009989d
test rbp, rbp
je 0x14009989d
mov r8, qword [rbp - 8]
mov rdx, rbp
mov rcx, r14
call fcn.1401ae830
mov r12, qword [rsp + 0xd0]
mov qword [r12 + 0x58], r14
test r14, r14
je 0x140099b3f
movsxd rax, dword [rsp + 0x3c]
mov r8, qword [rsp + 0x40]
movsxd r13, dword [rsp + 0xd8]
lea rcx, [rax + rax*4]
movzx eax, word [r8 + 0x3c]
cmp r13d, eax
jge 0x140099ad4
movsxd rdx, dword [rsp + 0x30]
lea r14, [r14 + rcx*4]
mov ecx, dword [rsp + 0xe8]
lea r9, [r13*8]
mov r12, qword [rsp + 0x48]
mov r11, rdx
mov ebx, dword [rsp + 0x34]
add r14, 4
mov qword [rsp + 0x60], rdx
mov eax, r13d
mov edx, ecx
mov qword [rsp + 0x58], r9
sub edx, r13d
mov qword [rsp + 0x50], r15
sub eax, ecx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x3c], eax
mov r10, r15
mov ebp, ecx
mov rax, qword [r8 + 0x48]
mov rcx, qword [r9 + rax]
cmp qword [rcx], r12
jne 0x140099aa0
cmp r11, 1
jne 0x14009998e
movsxd rdx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], edx
jg 0x140099969
mov r9d, ebp
mov dword [rsp + 0x20], edi
mov r8d, ebx
mov edx, 0x87
mov rcx, rsi
call fcn.14002feb0
mov edx, eax
jmp 0x1400999fb
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rsi + 0x90], eax
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x87
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], edi
jmp 0x1400999f2
test r15, r15
je 0x1400999a1
mov r8d, dword [r10]
add r10, 4
mov qword [rsp + 0x50], r10
jmp 0x1400999a4
mov r8d, edi
movsxd rdx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], edx
jg 0x1400999ce
mov r9d, r8d
mov dword [rsp + 0x20], ebp
mov r8d, ebx
mov edx, 0x5e
mov rcx, rsi
call fcn.14002feb0
mov edx, eax
jmp 0x1400999fb
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rsi + 0x90], eax
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x5e
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], rdi
mov dword [rax + rcx*8 + 4], ebx
mov dword [r14], edx
movsxd rcx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], ecx
jg 0x140099a25
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov r8d, ebp
mov rcx, rsi
lea edx, [r9 + 0x32]
call fcn.14002feb0
jmp 0x140099a4e
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x32
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 8], rdi
mov qword [rax + rcx*8 + 0x10], rdi
mov ecx, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x30]
add ecx, ebp
cmp ecx, r13d
jne 0x140099a83
cmp dword [rsp + 0x38], edi
mov dword [r14 - 4], ebx
sete al
add al, 0x26
mov byte [r14 + 0xc], al
test r13d, r13d
jle 0x140099a7d
mov dword [r14 + 4], edx
mov dword [r14 + 8], ecx
jmp 0x140099a88
mov dword [r14 + 8], edi
jmp 0x140099a88
mov byte [r14 + 0xc], reloc.OLEAUT32.dll_UnRegisterTypeLib
mov r8, qword [rsp + 0x40]
add r14, 0x14
mov r9, qword [rsp + 0x58]
mov r10, qword [rsp + 0x50]
mov r11, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x3c]
inc ebp
movzx eax, word [r8 + 0x3c]
dec edx
add r9, 8
mov dword [rsp + 0x30], edx
add ecx, ebp
mov qword [rsp + 0x58], r9
cmp ecx, eax
jl 0x140099925
mov rbx, qword [rsp + 0xc8]
mov r12, qword [rsp + 0xd0]
test r13d, r13d
jle 0x140099b44
test dword [r8 + 0x38], 0x100400
jne 0x140099b44
movsxd rcx, dword [rsi + 0x90]
mov edx, dword [r12 + 8]
cmp dword [rsi + 0x94], ecx
jg 0x140099b10
xor r9d, r9d
mov dword [rsp + 0x20], r13d
mov r8d, edx
mov rcx, rsi
lea edx, [r9 + 0x7d]
call fcn.14002feb0
jmp 0x140099b44
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x7d
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], edi
mov dword [rax + rcx*8 + 0xc], r13d
mov qword [rax + rcx*8 + 0x10], rdi
jmp 0x140099b44
mov dword [r12 + 0x50], edi
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax]
test r15, r15
je 0x140099b88
test rcx, rcx
je 0x140099c32
cmp r15, qword [rcx + 0x1f0]
jae 0x140099c1c
cmp r15, qword [rcx + 0x1e0]
jb 0x140099bfd
mov rax, qword [rcx + 0x1d8]
mov qword [r15], rax
mov qword [rcx + 0x1d8], r15
mov ebp, dword [rsp + 0xe8]
mov r14d, 0x400
mov r15d, 0x800
mov rcx, qword [r12 + 0x60]
test dword [rcx + 0x38], 0x200000
je 0x140099bb4
test word [rbx + 0x14], r15w
jne 0x140099c82
test byte [rbx + 0x12], 4
jne 0x140099c82
mov edx, 0x200
cmp dword [r12], 0
je 0x140099bd7
mov rax, qword [rbx]
test byte [rax + 4], 1
je 0x140099c82
mov rax, qword [rbx + 0x30]
test qword [r12 + 0x68], rax
jne 0x140099c82
test edi, edi
je 0x140099c57
movzx eax, word [rbx + 0x12]
test r14w, ax
je 0x140099c57
or ax, dx
mov word [rbx + 0x12], ax
jmp 0x140099c5c
cmp r15, qword [rcx + 0x1e8]
jb 0x140099c1c
mov rax, qword [rcx + 0x1c8]
mov qword [r15], rax
mov qword [rcx + 0x1c8], r15
jmp 0x140099b88
cmp qword [rcx + 0x308], rdi
je 0x140099c32
mov rdx, r15
call fcn.140006c50
jmp 0x140099b88
mov rcx, r15
call fcn.140006b90
jmp 0x140099b88
mov r8d, dword [rsp + 0xe8]
mov rdx, qword [rbp + 0x18]
call fcn.140051370
mov ebp, eax
jmp 0x140099b9b
or word [rbx + 0x12], 4
movsxd rax, dword [rbx + 0x18]
test eax, eax
js 0x140099c82
mov rcx, qword [rbx + 8]
imul rbx, rax, 0x38
add rbx, qword [rcx + 0x20]
add byte [rbx + 0x16], 0xff
jne 0x140099c82
inc edi
test byte [rbx + 0x12], 4
je 0x140099bc3
mov eax, ebp
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret