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

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x98
mov r14, qword [rcx]
mov r13, rcx
mov ebx, dword [rsp + 0x100]
mov ecx, 1
mov dword [rsp + 0x4c], ebx
mov r12, rdx
add ebx, ecx
mov byte [rsp + 0x30], cl
mov dword [rsp + 0x100], ebx
mov qword [rsp + 0x88], r14
lea eax, [rbx + 1]
lea ebp, [rcx + rax]
mov dword [rsp + 0x5c], eax
mov r15d, ebp
mov dword [rsp + 0x48], ebp
add ebp, ecx
mov dword [rsp + 0x38], eax
mov ebx, ebp
add ebp, ecx
mov dword [rsp + 0x54], ebp
add ebp, ecx
mov dword [rsp + 0x50], ebp
add ebp, ecx
cmp dword [r13 + 0x38], ebp
mov eax, ebp
mov rcx, r13
mov dword [rsp + 0x58], ebx
cmovg eax, dword [r13 + 0x38]
mov dword [r13 + 0x38], eax
call fcn.1800632e8
mov rsi, rax
test rax, rax
je 0x18004b204
test r12, r12
je 0x18004b204
cmp dword [r12 + 0x38], 0
je 0x18004b204
mov rdx, qword [r12]
lea r8, [0x1800ea97c]
mov r9d, Ordinal_96
lea rcx, str.sqlite__
call fcn.18005507c
test eax, eax
je 0x18004b204
mov rcx, qword [r12 + 0x70]
mov edi, 0xfff0bdc0
mov dword [rsp + 0x40], edi
test rcx, rcx
je 0x18004ab20
mov rax, qword [r14 + 0x20]
xor edi, edi
add rax, 0x18
mov dword [rsp + 0x40], edi
cmp qword [rax], rcx
je 0x18004ab20
lea edx, [rdi + 1]
add edi, edx
lea rax, [rax + 0x20]
cmp qword [rax], rcx
jne 0x18004ab11
mov dword [rsp + 0x40], edi
mov rax, qword [r14 + 0x20]
xor r9d, r9d
mov r8, qword [r12]
movsxd rcx, edi
shl rcx, 5
lea edx, [r9 + 0x1c]
mov rcx, qword [rcx + rax]
mov qword [rsp + 0x20], rcx
mov rcx, r13
call fcn.18004c528
test eax, eax
jne 0x18004b204
mov eax, dword [rsp + 0x108]
mov edx, 1
mov ecx, eax
mov dword [rsp + 0x68], eax
add eax, edx
mov dword [rsp + 0x20], reloc.WLDAP32.dll_Ordinal_97
mov dword [rsp + 0x34], eax
mov r9, r12
add eax, edx
mov r8d, edi
cmp dword [r13 + 0x34], eax
mov edx, ecx
mov rcx, r13
cmovg eax, dword [r13 + 0x34]
mov dword [r13 + 0x34], eax
call fcn.180058820
mov r8, qword [r12]
mov edx, ebx
mov rcx, rsi
call fcn.180031678
mov r14, qword [r12 + 0x10]
mov edx, 8
test r14, r14
je 0x18004b0fe
mov rax, qword [rsp + 0xf0]
lea r8d, [rdx - 6]
test rax, rax
je 0x18004abc9
cmp rax, r14
jne 0x18004b0f1
mov rax, qword [r14 + 0x48]
neg rax
sbb cl, cl
and byte [rsp + 0x30], cl
test byte [r12 + 0x40], 0x20
je 0x18004b0bb
mov eax, dword [r14 + 0x64]
and al, 3
cmp al, r8b
jne 0x18004b0bb
movzx ebx, word [r14 + 0x5e]
mov r8, qword [r12]
lea r15d, [rbx - 1]
mov edx, dword [rsp + 0x54]
mov rcx, rsi
call fcn.180031678
mov r8d, dword [rsp + 0x34]
lea eax, [r15 + rbp]
cmp dword [r13 + 0x38], eax
mov edx, reloc.WLDAP32.dll_Ordinal_97
mov rcx, rsi
mov dword [rsp + 0x20], edi
cmovg eax, dword [r13 + 0x38]
mov dword [r13 + 0x38], eax
mov r9d, dword [r14 + 0x58]
call fcn.1800315fc
mov rdx, r14
mov rcx, r13
call fcn.180031f78
mov r9d, dword [rsp + 0x5c]
mov r8d, ebx
and dword [rsp + 0x20], 0
mov edx, Ordinal_73
mov rcx, rsi
call fcn.1800315fc
mov ebx, dword [rsp + 0x100]
mov edx, Ordinal_73
movzx r8d, word [r14 + 0x5e]
mov rcx, rsi
and dword [rsp + 0x20], 0
lea r9d, [rbx + 2]
call fcn.1800315fc
xor r8d, r8d
mov dword [rsp + 0x20], ebx
lea r9d, [rbx + 1]
mov rcx, rsi
lea edx, [r8 + 0x3f]
call fcn.1800315fc
mov r9d, 0xfffffff8
lea r8, [0x1800ef120]
mov edx, eax
mov rcx, rsi
call fcn.180031eb4
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x18004acca
lea rcx, [rax + rax*2]
mov edx, 2
mov rax, qword [rsi + 0x88]
mov word [rax + rcx*8 - 0x16], dx
mov r8d, dword [rsp + 0x34]
xor r9d, r9d
and dword [rsp + 0x20], 0
mov rcx, rsi
lea edx, [r9 + 0x24]
call fcn.1800315fc
mov r9d, dword [rsp + 0x38]
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rcx, rsi
mov dword [rsp + 0x64], eax
lea edx, [r8 + 0x46]
call fcn.1800315fc
mov eax, dword [rsi + 0x90]
mov dword [rsp + 0x44], eax
test r15d, r15d
jle 0x18004af53
dec dword [r13 + 0x44]
mov eax, dword [r13 + 0x44]
mov rcx, qword [rsp + 0x88]
movsxd rdx, r15d
shl rdx, 2
mov dword [rsp + 0x3c], eax
call fcn.180016678
mov qword [rsp + 0x80], rax
mov rbx, rax
test rax, rax
je 0x18004b0da
xor edi, edi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], edi
mov rcx, rsi
lea edx, [rdi + 0xb]
call fcn.1800315fc
mov eax, dword [rsi + 0x90]
mov dword [rsp + 0x44], eax
lea eax, [rdi + 1]
cmp r15d, eax
jne 0x18004ad94
cmp word [r14 + 0x5e], ax
jne 0x18004ad94
cmp byte [r14 + 0x62], dil
je 0x18004ad94
mov r9d, dword [rsp + 0x3c]
lea edx, [rdi + 0x33]
mov r8d, ebp
mov dword [rsp + 0x20], edi
mov rcx, rsi
call fcn.1800315fc
test r15d, r15d
jle 0x18004ae7c
mov rax, rdi
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x70], rax
mov r12d, eax
mov rdx, qword [r14 + 0x40]
mov rcx, r13
mov rdx, qword [rax + rdx]
call fcn.18004e0fc
mov r9d, dword [rsp + 0x38]
mov r8d, r12d
and dword [rsp + 0x20], 0
mov edx, Ordinal_73
mov rcx, rsi
mov rdi, rax
call fcn.1800315fc
mov r8d, dword [rsp + 0x34]
mov r9d, r12d
mov ebx, dword [rsp + 0x48]
mov edx, 0x5a
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call fcn.1800315fc
xor r9d, r9d
lea ecx, [r12 + rbp]
mov dword [rsp + 0x20], ecx
mov r8d, ebx
mov rcx, rsi
lea edx, [r9 + 0x34]
call fcn.1800315fc
mov r9d, 0xfffffffe
mov r8, rdi
mov edx, eax
mov rcx, rsi
mov ebx, eax
call fcn.180031eb4
mov rdx, qword [rsp + 0x78]
xor edi, edi
mov dword [rdx], ebx
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x18004ae51
lea rcx, [rax + rax*2]
mov r8d, Ordinal_133
mov rax, qword [rsi + 0x88]
mov word [rax + rcx*8 - 0x16], r8w
mov rax, qword [rsp + 0x70]
add rdx, 4
add rax, 8
mov qword [rsp + 0x78], rdx
inc r12d
mov qword [rsp + 0x70], rax
cmp r12d, r15d
jl 0x18004adad
mov r12, qword [rsp + 0xe8]
mov r9d, dword [rsp + 0x38]
mov r8d, r15d
mov edx, Ordinal_73
mov dword [rsp + 0x20], edi
mov rcx, rsi
call fcn.1800315fc
mov r9d, dword [rsp + 0x3c]
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x20], edi
lea edx, [r8 + 0xb]
call fcn.1800315fc
mov edx, dword [rsp + 0x44]
mov rcx, rsi
dec edx
call fcn.180031fa4
mov ecx, dword [rsi + 0x90]
mov ebx, edi
mov dword [rax + 8], ecx
test r15d, r15d
jle 0x18004af27
mov rdi, qword [rsp + 0x80]
mov r13d, 1
mov r12d, dword [rsp + 0x34]
mov edx, dword [rdi]
mov rcx, rsi
call fcn.180031fa4
mov ecx, dword [rsi + 0x90]
mov r9d, ebx
mov r8d, r12d
mov edx, 0x5a
mov dword [rax + 8], ecx
lea eax, [rbx + rbp]
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.1800315fc
add ebx, r13d
lea rdi, [rdi + 4]
cmp ebx, r15d
jl 0x18004aede
mov r12, qword [rsp + 0xe8]
mov r13, qword [rsp + 0xe0]
mov edx, dword [rsp + 0x3c]
mov rcx, rsi
call fcn.1800319f0
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
call fcn.180016414
mov edi, dword [rsp + 0x40]
mov ebx, dword [rsp + 0x100]
mov r15d, dword [rsp + 0x48]
mov edx, 0x3f
mov r9d, ebx
mov dword [rsp + 0x20], r15d
mov rcx, rsi
lea r8d, [rdx - 0x3e]
call fcn.1800315fc
mov r9d, 0xfffffff8
lea r8, [0x1800f2390]
mov edx, eax
mov rcx, rsi
call fcn.180031eb4
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x18004afa8
lea rcx, [rax + rax*2]
mov edx, 2
mov rax, qword [rsi + 0x88]
mov word [rax + rcx*8 - 0x16], dx
mov r9d, dword [rsp + 0x44]
mov edx, 5
mov r8d, dword [rsp + 0x34]
mov rcx, rsi
and dword [rsp + 0x20], 0
call fcn.1800315fc
mov eax, dword [rsp + 0x50]
xor r8d, r8d
mov r9d, ebx
mov dword [rsp + 0x20], eax
mov rcx, rsi
lea edx, [r8 + 0x3f]
call fcn.1800315fc
mov r9d, 0xfffffff8
lea r8, [0x1800eef20]
mov edx, eax
mov rcx, rsi
call fcn.180031eb4
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x18004b015
lea rcx, [rax + rax*2]
mov edx, 1
mov rax, qword [rsi + 0x88]
mov word [rax + rcx*8 - 0x16], dx
mov r8d, dword [rsp + 0x58]
mov r9d, 3
mov rcx, rsi
mov dword [rsp + 0x20], r15d
lea edx, [r9 + 0x59]
call fcn.1800315fc
xor r9d, r9d
lea r8, [0x18010a544]
mov edx, eax
mov rcx, rsi
call fcn.180031eb4
mov r9d, dword [rsp + 0x4c]
mov edx, Ordinal_122
mov r8d, dword [rsp + 0xf8]
mov rcx, rsi
and dword [rsp + 0x20], 0
call fcn.1800315fc
mov eax, dword [rsp + 0x4c]
mov r9d, r15d
mov r8d, dword [rsp + 0xf8]
mov edx, reloc.WLDAP32.dll_Ordinal_122
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.1800315fc
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x18004b0a4
lea rcx, [rax + rax*2]
mov edx, 8
mov rax, qword [rsi + 0x88]
mov word [rax + rcx*8 - 0x16], dx
mov edx, dword [rsp + 0x64]
mov rcx, rsi
call fcn.180031fa4
mov ecx, dword [rsi + 0x90]
mov dword [rax + 8], ecx
jmp 0x18004b0df
movzx ebx, word [r14 + 0x60]
mov r8, qword [r14]
test byte [r14 + 0x64], dl
je 0x18004abfa
movzx r15d, word [r14 + 0x5e]
dec r15d
jmp 0x18004abfe
mov r15d, dword [rsp + 0x48]
mov rax, qword [rsp + 0xf0]
mov r8d, 2
lea edx, [r8 + 6]
mov r14, qword [r14 + 0x28]
test r14, r14
jne 0x18004abbb
xor r14d, r14d
cmp qword [rsp + 0xf0], r14
jne 0x18004b204
cmp byte [rsp + 0x30], r14b
je 0x18004b204
mov r9d, dword [rsp + 0x50]
lea edx, [r14 + 0x5d]
mov r8d, dword [rsp + 0x68]
mov rcx, rsi
mov dword [rsp + 0x20], r14d
call fcn.1800315fc
mov r8d, dword [rsp + 0x50]
lea edx, [r14 + 0x14]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
mov rcx, rsi
call fcn.1800315fc
mov r9d, dword [rsp + 0x54]
lea edx, [r14 + 0x49]
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov rcx, rsi
mov ebx, eax
call fcn.1800315fc
mov r8d, dword [rsp + 0x58]
lea r9d, [r14 + 3]
lea edx, [r14 + 0x5c]
mov dword [rsp + 0x20], r15d
mov rcx, rsi
call fcn.1800315fc
xor r9d, r9d
lea r8, [0x18010a544]
mov edx, eax
mov rcx, rsi
call fcn.180031eb4
mov ebp, dword [rsp + 0x4c]
lea edx, [r14 + 0x79]
mov r8d, dword [rsp + 0xf8]
mov r9d, ebp
mov rcx, rsi
mov dword [rsp + 0x20], r14d
call fcn.1800315fc
mov r8d, dword [rsp + 0xf8]
lea edx, [r14 + 0x7a]
mov r9d, r15d
mov dword [rsp + 0x20], ebp
mov rcx, rsi
call fcn.1800315fc
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x18004b1f1
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
lea edx, [r14 + 8]
mov word [rax + rcx*8 - 0x16], dx
mov edx, ebx
mov rcx, rsi
call fcn.180031fa4
mov ecx, dword [rsi + 0x90]
mov dword [rax + 8], ecx
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret