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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rdi, qword [rsp + 0xa0]
mov r13, qword [rcx + 8]
mov rax, rcx
mov rbx, qword [rax + 0x10]
mov rax, qword [rax]
movsxd r11, dword [rdi]
mov rbp, qword [rax + 8]
mov r14, qword [rax]
mov rcx, qword [rdi + 0x20]
movzx esi, byte [rbx + 0x10]
mov rax, qword [rsp + 0xb0]
xor r12d, r12d
mov qword [rbx], rdx
mov rdx, qword [rdi + 8]
mov r10, r8
imul rsi, rsi, 0x68
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x30], rbp
mov dword [rax], r12d
test r11d, r11d
jle 0x18009b19d
mov r12, qword [rsp + 0xb8]
add rdx, 5
mov r8d, r11d
xor r15d, r15d
movsxd rcx, dword [rdx + 3]
imul rcx, rcx, 0x38
add rcx, qword [r13 + 0x20]
mov byte [rdx], r15b
mov rax, qword [rcx + 0x28]
and rax, r10
cmp rax, qword [rcx + 0x28]
jne 0x18009b189
test word [rcx + 0x14], r9w
jne 0x18009b189
test r12, r12
jne 0x18009b186
mov al, byte [rcx + 0x17]
cmp al, 0x49
jb 0x18009b186
cmp al, 0x4a
jbe 0x18009b189
mov byte [rdx], 1
add rdx, 0xc
dec r8
jne 0x18009b153
mov rcx, qword [rsp + 0x88]
xor r12d, r12d
mov r15, r11
xor edx, edx
mov qword [rsp + 0x38], r11
shl r15, 3
mov r8, r15
call fcn.1800c5900
mov qword [rdi + 0x30], r12
mov dword [rdi + 0x28], r12d
mov dword [rdi + 0x3c], r12d
mov qword [rdi + 0x48], 0x19
mov dword [rdi + 0x50], r12d
movabs rax, 0x546d42aea2879f2e
mov qword [rdi + 0x40], rax
mov rax, qword [rsi + rbp + 0x58]
mov qword [rdi + 0x58], rax
mov dword [rdi + 0x78], r12d
mov rbp, qword [rsi + rbp + 0x28]
mov rax, qword [rbp + 0x50]
test rax, rax
je 0x18009b205
mov rcx, qword [r14]
cmp qword [rax], rcx
je 0x18009b205
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x18009b1f7
mov r13, qword [rax + 0x10]
mov rax, qword [r14]
mov rdx, rdi
inc dword [rax + 0x48]
mov rax, qword [r13]
mov rcx, r13
call qword [rax + 0x18]
mov esi, eax
mov rax, qword [r14]
dec dword [rax + 0x48]
test esi, esi
je 0x18009b25e
cmp esi, 0x13
je 0x18009b25e
cmp esi, 7
jne 0x18009b23c
mov rcx, qword [r14]
call fcn.180029560
jmp 0x18009b25e
mov r8, qword [r13 + 0x10]
test r8, r8
jne 0x18009b24f
mov ecx, esi
call fcn.1800a8644
mov r8, rax
lea rdx, [0x1800fd238]
mov rcx, r14
call fcn.18002bda4
mov rax, qword [rbp + 0x50]
cmp byte [rax + 0x1d], r12b
je 0x18009b2af
mov rax, qword [r14]
mov r12d, dword [rax + 0x28]
xor eax, eax
mov ebp, eax
test r12d, r12d
jle 0x18009b28b
mov edx, ebp
mov rcx, r14
call fcn.18006f9f4
inc ebp
cmp ebp, r12d
jl 0x18009b278
xor eax, eax
cmp dword [r14 + 0x78], eax
je 0x18009b2ac
mov ebp, eax
test r12d, r12d
jle 0x18009b2ac
mov r8d, ebp
xor edx, edx
mov rcx, r14
call fcn.18006fac0
inc ebp
cmp ebp, r12d
jl 0x18009b298
xor r12d, r12d
mov rcx, qword [r13 + 0x10]
call sym.WWStartupCtrl64.dll_sqlite3_free
mov qword [r13 + 0x10], r12
test esi, esi
je 0x18009b2ce
cmp esi, 0x13
cmove esi, r12d
mov eax, esi
jmp 0x18009b582
mov rcx, qword [rbx + 0x48]
mov r8, r15
xor edx, edx
or esi, 0xffffffff
call fcn.1800c5900
lea r8d, [rsi + 0x21]
lea rcx, [rbx + 0x18]
xor edx, edx
call fcn.1800c5900
mov r15, qword [rsp + 0x38]
mov r11, qword [rdi + 8]
xor r9d, r9d
mov r10d, r9d
mov ebp, r9d
test r15, r15
jle 0x18009b427
mov rax, qword [rsp + 0x88]
add r11, 5
mov r13d, r15d
mov r8d, dword [rax + rbp*8]
dec r8d
js 0x18009b414
movsxd rax, dword [r11 + 3]
cmp r8d, r13d
jge 0x18009b4d3
test eax, eax
js 0x18009b4d3
mov rcx, qword [rsp + 0x20]
cmp eax, dword [rcx + 0x14]
jge 0x18009b4d3
mov rdx, qword [rbx + 0x48]
movsxd rcx, r8d
cmp qword [rdx + rcx*8], r9
jne 0x18009b4d3
cmp byte [r11], r9b
je 0x18009b4d3
mov r9, rax
mov rax, qword [rsp + 0x20]
imul r9, r9, 0x38
add r9, qword [rax + 0x20]
mov rax, qword [r9 + 0x28]
or qword [rbx], rax
mov rax, qword [rsp + 0x88]
cmp r8d, esi
mov qword [rdx + rcx*8], r9
cmovg esi, r8d
cmp byte [rax + rbp*8 + 4], 0
je 0x18009b3c1
cmp r10d, 0x10
jge 0x18009b3b6
movzx eax, word [rsp + 0xa8]
bt eax, r10d
jb 0x18009b3b6
mov eax, 1
mov ecx, r8d
shl ax, cl
or word [rbx + 0x22], ax
cmp byte [r9 + 0x17], 0x4a
jne 0x18009b3c1
or dword [rbx + 0x1c], 2
mov ecx, r10d
mov eax, 1
shl eax, cl
xor ecx, ecx
cmp r10d, 0x1f
mov edx, ecx
cmovle edx, eax
test dword [rdi + 0x78], edx
je 0x18009b481
mov ecx, r8d
mov eax, 1
shl eax, cl
or dword [rbx + 0x30], eax
mov rcx, qword [rsp + 0xb0]
mov al, byte [r9 + 0x17]
xor r9d, r9d
cmp al, 0x49
jb 0x18009b40c
cmp al, 0x4a
ja 0x18009b40c
cmp dword [rcx], r9d
jne 0x18009b4a6
mov rax, qword [rsp + 0x88]
inc rbp
inc r10d
add r11, 0xc
cmp rbp, r15
jl 0x18009b318
mov ebp, 1
mov ecx, r9d
lea eax, [rbp + rsi]
mov word [rbx + 0x3c], ax
test esi, esi
js 0x18009b452
mov rax, qword [rbx + 0x48]
cmp qword [rax], r9
je 0x18009b4fe
add ecx, ebp
add rax, 8
cmp ecx, esi
jle 0x18009b43f
mov eax, dword [rdi + 0x28]
mov dword [rbx + 0x18], eax
mov eax, dword [rdi + 0x38]
xor eax, dword [rbx + 0x1c]
and eax, ebp
xor dword [rbx + 0x1c], eax
mov rax, qword [rdi + 0x30]
mov dword [rdi + 0x38], r9d
mov qword [rbx + 0x28], rax
cmp dword [rdi + 0x3c], r9d
je 0x18009b523
mov eax, dword [rdi + 0x10]
jmp 0x18009b526
test byte [r9 + 0x14], 1
je 0x18009b3ec
and dword [rdi + 0x50], 0xfffffffe
mov dword [rdi + 0x3c], ecx
mov rcx, qword [rsp + 0xb0]
mov dword [rcx], 1
jmp 0x18009b3f4
cmp dword [rdi + 0x38], r9d
je 0x18009b4be
mov rcx, qword [rdi + 0x30]
call sym.WWStartupCtrl64.dll_sqlite3_free
xor eax, eax
mov qword [rdi + 0x30], rax
mov dword [rdi + 0x38], eax
mov rax, qword [rsp + 0xb8]
mov dword [rax], 1
xor eax, eax
jmp 0x18009b582
mov rcx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x28]
lea rdx, str._s.xBestIndex_malfunction
mov r8, qword [r8 + rcx + 0x28]
mov rcx, r14
mov r8, qword [r8]
call fcn.18002bda4
mov eax, 1
jmp 0x18009b582
mov rcx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x28]
lea rdx, str._s.xBestIndex_malfunction
mov r8, qword [r8 + rcx + 0x28]
mov rcx, r14
mov r8, qword [r8]
call fcn.18002bda4
mov eax, ebp
jmp 0x18009b582
mov eax, r9d
mov byte [rbx + 0x20], al
mov word [rbx + 0x12], r9w
movsd xmm0, qword [rdi + 0x40]
call fcn.18002d7cc
mov word [rbx + 0x14], ax
mov rcx, qword [rdi + 0x48]
call fcn.18002d76c
mov word [rbx + 0x16], ax
test byte [rdi + 0x50], bpl
je 0x18009b556
bts dword [rbx + 0x38], 0xc
jmp 0x18009b55b
btr dword [rbx + 0x38], 0xc
mov rcx, qword [rsp + 0x80]
mov rdx, rbx
call fcn.180099920
mov edi, eax
test byte [rbx + 0x1c], bpl
je 0x18009b580
mov rcx, qword [rbx + 0x28]
call sym.WWStartupCtrl64.dll_sqlite3_free
and dword [rbx + 0x1c], 0xfffffffe
mov eax, edi
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret