Function at 0x14004a8cc
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 ebx, dword [rsp + 0x100]
mov r13, rcx
mov ecx, 1
mov dword [rsp + 0x4c], ebx
mov r12, rdx
add ebx, ecx
mov byte [rsp + 0x30], cl
mov qword [rsp + 0x88], r14
lea eax, [rbx + 1]
mov dword [rsp + 0x100], ebx
lea ebp, [rcx + rax]
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x40], eax
mov r15d, ebp
mov dword [rsp + 0x44], ebp
add ebp, ecx
mov ebx, ebp
add ebp, ecx
mov dword [rsp + 0x50], ebp
add ebp, ecx
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x54], ebp
add ebp, ecx
mov rcx, r13
cmp dword [r13 + 0x38], ebp
mov eax, ebp
cmovg eax, dword [r13 + 0x38]
mov dword [r13 + 0x38], eax
call fcn.140063194
mov rsi, rax
test rax, rax
je 0x14004b0c4
test r12, r12
je 0x14004b0c4
cmp dword [r12 + 0x38], 0
je 0x14004b0c4
mov rdx, qword [r12]
lea r8, [0x1400e1aec]
lea rcx, str.sqlite__
mov r9d, Ordinal_96
call fcn.140054f54
test eax, eax
je 0x14004b0c4
mov rcx, qword [r12 + 0x70]
mov edi, 0xfff0bdc0
mov dword [rsp + 0x48], edi
test rcx, rcx
je 0x14004a9e0
mov rax, qword [r14 + 0x20]
xor edi, edi
add rax, 0x18
mov dword [rsp + 0x48], edi
cmp qword [rax], rcx
je 0x14004a9e0
lea edx, [rdi + 1]
lea rax, [rax + 0x20]
add edi, edx
cmp qword [rax], rcx
jne 0x14004a9d1
mov dword [rsp + 0x48], edi
mov rax, qword [r14 + 0x20]
mov r8, qword [r12]
xor r9d, r9d
movsxd rcx, edi
lea edx, [r9 + 0x1c]
shl rcx, 5
mov rcx, qword [rcx + rax]
mov qword [rsp + 0x20], rcx
mov rcx, r13
call fcn.14004c3e8
test eax, eax
jne 0x14004b0c4
mov eax, dword [rsp + 0x108]
mov edx, 1
mov r9, r12
mov ecx, eax
mov dword [rsp + 0x68], eax
add eax, edx
mov dword [rsp + 0x34], eax
add eax, edx
mov edx, ecx
cmp dword [r13 + 0x34], eax
mov r8d, edi
mov rcx, r13
cmovg eax, dword [r13 + 0x34]
mov dword [rsp + 0x20], reloc.WLDAP32.dll_Ordinal_97
mov dword [r13 + 0x34], eax
call fcn.1400586f0
mov r8, qword [r12]
mov edx, ebx
mov rcx, rsi
call fcn.1400313cc
mov r14, qword [r12 + 0x10]
mov edx, 8
test r14, r14
je 0x14004afbe
mov rax, qword [rsp + 0xf0]
lea r8d, [rdx - 6]
test rax, rax
je 0x14004aa89
cmp rax, r14
jne 0x14004afb1
mov rax, qword [r14 + 0x48]
neg rax
sbb cl, cl
and byte [rsp + 0x30], cl
test byte [r12 + 0x40], 0x20
je 0x14004af7b
mov eax, dword [r14 + 0x64]
and al, 3
cmp al, r8b
jne 0x14004af7b
movzx ebx, word [r14 + 0x5e]
mov r8, qword [r12]
lea r15d, [rbx - 1]
mov edx, dword [rsp + 0x50]
mov rcx, rsi
call fcn.1400313cc
mov r8d, dword [rsp + 0x34]
lea eax, [r15 + rbp]
cmp dword [r13 + 0x38], eax
mov edx, reloc.WLDAP32.dll_Ordinal_97
mov rcx, rsi
cmovg eax, dword [r13 + 0x38]
mov dword [rsp + 0x20], edi
mov dword [r13 + 0x38], eax
mov r9d, dword [r14 + 0x58]
call fcn.140031350
mov rdx, r14
mov rcx, r13
call fcn.140031cd4
mov r9d, dword [rsp + 0x60]
and dword [rsp + 0x20], 0
mov r8d, ebx
mov edx, Ordinal_73
mov rcx, rsi
call fcn.140031350
mov ebx, dword [rsp + 0x100]
movzx r8d, word [r14 + 0x5e]
and dword [rsp + 0x20], 0
lea r9d, [rbx + 2]
mov edx, Ordinal_73
mov rcx, rsi
call fcn.140031350
xor r8d, r8d
lea r9d, [rbx + 1]
lea edx, [r8 + 0x3f]
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call fcn.140031350
lea r8, [0x1400e4c40]
mov r9d, 0xfffffff8
mov edx, eax
mov rcx, rsi
call fcn.140031c10
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x14004ab8a
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
mov edx, 2
mov word [rax + rcx*8 - 0x16], dx
mov r8d, dword [rsp + 0x34]
and dword [rsp + 0x20], 0
xor r9d, r9d
lea edx, [r9 + 0x24]
mov rcx, rsi
call fcn.140031350
mov r9d, dword [rsp + 0x40]
and dword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x5c], eax
lea edx, [r8 + 0x46]
call fcn.140031350
mov eax, dword [rsi + 0x90]
mov dword [rsp + 0x3c], eax
test r15d, r15d
jle 0x14004ae13
dec dword [r13 + 0x44]
mov eax, dword [r13 + 0x44]
mov rcx, qword [rsp + 0x88]
movsxd rdx, r15d
mov dword [rsp + 0x38], eax
shl rdx, 2
call fcn.1400165f4
mov rbx, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14004af9a
xor edi, edi
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 0xb]
mov rcx, rsi
mov dword [rsp + 0x20], edi
call fcn.140031350
mov eax, dword [rsi + 0x90]
mov dword [rsp + 0x3c], eax
lea eax, [rdi + 1]
cmp r15d, eax
jne 0x14004ac51
cmp word [r14 + 0x5e], ax
jne 0x14004ac51
cmp byte [r14 + 0x62], dil
je 0x14004ac51
mov r9d, dword [rsp + 0x38]
lea edx, [rdi + 0x33]
mov r8d, ebp
mov rcx, rsi
mov dword [rsp + 0x20], edi
call fcn.140031350
test r15d, r15d
jle 0x14004ad42
mov rax, rdi
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x70], rax
mov r12d, eax
mov rdx, qword [r14 + 0x40]
mov rcx, r13
mov rdx, qword [rax + rdx]
call fcn.14004dfb0
mov r9d, dword [rsp + 0x40]
and dword [rsp + 0x20], 0
mov r8d, r12d
mov edx, Ordinal_73
mov rcx, rsi
mov rdi, rax
call fcn.140031350
mov ebx, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x34]
mov r9d, r12d
mov edx, 0x5a
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call fcn.140031350
lea ecx, [r12 + rbp]
xor r9d, r9d
mov dword [rsp + 0x20], ecx
lea edx, [r9 + 0x34]
mov r8d, ebx
mov rcx, rsi
call fcn.140031350
mov r9d, 0xfffffffe
mov r8, rdi
mov edx, eax
mov rcx, rsi
mov ebx, eax
call fcn.140031c10
mov rdx, qword [rsp + 0x80]
xor edi, edi
mov dword [rdx], ebx
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x14004ad14
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
mov r8d, Ordinal_133
mov word [rax + rcx*8 - 0x16], r8w
mov rax, qword [rsp + 0x70]
add rdx, 4
inc r12d
add rax, 8
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x70], rax
cmp r12d, r15d
jl 0x14004ac6d
mov r12, qword [rsp + 0xe8]
mov r9d, dword [rsp + 0x40]
mov r8d, r15d
mov edx, Ordinal_73
mov rcx, rsi
mov dword [rsp + 0x20], edi
call fcn.140031350
mov r9d, dword [rsp + 0x38]
xor r8d, r8d
lea edx, [r8 + 0xb]
mov rcx, rsi
mov dword [rsp + 0x20], edi
call fcn.140031350
mov edx, dword [rsp + 0x3c]
mov rcx, rsi
dec edx
call fcn.140031d00
mov ecx, dword [rsi + 0x90]
mov ebx, edi
mov dword [rax + 8], ecx
test r15d, r15d
jle 0x14004adea
mov rdi, qword [rsp + 0x78]
mov r12d, dword [rsp + 0x34]
mov r13d, 1
mov edx, dword [rdi]
mov rcx, rsi
call fcn.140031d00
mov ecx, dword [rsi + 0x90]
mov r9d, ebx
mov dword [rax + 8], ecx
lea eax, [rbx + rbp]
mov r8d, r12d
mov edx, 0x5a
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.140031350
add ebx, r13d
lea rdi, [rdi + 4]
cmp ebx, r15d
jl 0x14004ada1
mov r12, qword [rsp + 0xe8]
mov r13, qword [rsp + 0xe0]
mov edx, dword [rsp + 0x38]
mov rcx, rsi
call fcn.14003174c
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x88]
call fcn.140016390
mov edi, dword [rsp + 0x48]
mov ebx, dword [rsp + 0x100]
mov r15d, dword [rsp + 0x44]
mov edx, 0x3f
mov r9d, ebx
lea r8d, [rdx - 0x3e]
mov rcx, rsi
mov dword [rsp + 0x20], r15d
call fcn.140031350
lea r8, [0x1400e9e10]
mov r9d, 0xfffffff8
mov edx, eax
mov rcx, rsi
call fcn.140031c10
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x14004ae68
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
mov edx, 2
mov word [rax + rcx*8 - 0x16], dx
mov r9d, dword [rsp + 0x3c]
mov r8d, dword [rsp + 0x34]
and dword [rsp + 0x20], 0
mov edx, 5
mov rcx, rsi
call fcn.140031350
mov eax, dword [rsp + 0x54]
xor r8d, r8d
lea edx, [r8 + 0x3f]
mov r9d, ebx
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.140031350
lea r8, [0x1400e4f20]
mov r9d, 0xfffffff8
mov rcx, rsi
mov edx, eax
call fcn.140031c10
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x14004aed5
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
mov edx, 1
mov word [rax + rcx*8 - 0x16], dx
mov r8d, dword [rsp + 0x58]
mov r9d, 3
mov rcx, rsi
lea edx, [r9 + 0x59]
mov dword [rsp + 0x20], r15d
call fcn.140031350
lea r8, [0x140101d04]
xor r9d, r9d
mov edx, eax
mov rcx, rsi
call fcn.140031c10
mov r9d, dword [rsp + 0x4c]
mov r8d, dword [rsp + 0xf8]
and dword [rsp + 0x20], 0
mov edx, Ordinal_122
mov rcx, rsi
call fcn.140031350
mov eax, dword [rsp + 0x4c]
mov r8d, dword [rsp + 0xf8]
mov r9d, r15d
mov edx, reloc.WLDAP32.dll_Ordinal_122
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.140031350
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x14004af64
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
mov edx, 8
mov word [rax + rcx*8 - 0x16], dx
mov edx, dword [rsp + 0x5c]
mov rcx, rsi
call fcn.140031d00
mov ecx, dword [rsi + 0x90]
mov dword [rax + 8], ecx
jmp 0x14004af9f
movzx ebx, word [r14 + 0x60]
mov r8, qword [r14]
test byte [r14 + 0x64], dl
je 0x14004aaba
movzx r15d, word [r14 + 0x5e]
dec r15d
jmp 0x14004aabe
mov r15d, dword [rsp + 0x44]
mov rax, qword [rsp + 0xf0]
mov r8d, 2
lea edx, [r8 + 6]
mov r14, qword [r14 + 0x28]
test r14, r14
jne 0x14004aa7b
xor r14d, r14d
cmp qword [rsp + 0xf0], r14
jne 0x14004b0c4
cmp byte [rsp + 0x30], r14b
je 0x14004b0c4
mov r9d, dword [rsp + 0x54]
mov r8d, dword [rsp + 0x68]
lea edx, [r14 + 0x5d]
mov rcx, rsi
mov dword [rsp + 0x20], r14d
call fcn.140031350
mov r8d, dword [rsp + 0x54]
lea edx, [r14 + 0x14]
xor r9d, r9d
mov rcx, rsi
mov dword [rsp + 0x20], r14d
call fcn.140031350
mov r9d, dword [rsp + 0x50]
lea edx, [r14 + 0x49]
xor r8d, r8d
mov rcx, rsi
mov ebx, eax
mov dword [rsp + 0x20], r14d
call fcn.140031350
mov r8d, dword [rsp + 0x58]
lea r9d, [r14 + 3]
lea edx, [r14 + 0x5c]
mov rcx, rsi
mov dword [rsp + 0x20], r15d
call fcn.140031350
lea r8, [0x140101d04]
xor r9d, r9d
mov rcx, rsi
mov edx, eax
call fcn.140031c10
mov ebp, dword [rsp + 0x4c]
mov r8d, dword [rsp + 0xf8]
lea edx, [r14 + 0x79]
mov r9d, ebp
mov rcx, rsi
mov dword [rsp + 0x20], r14d
call fcn.140031350
mov r8d, dword [rsp + 0xf8]
lea edx, [r14 + 0x7a]
mov r9d, r15d
mov rcx, rsi
mov dword [rsp + 0x20], ebp
call fcn.140031350
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x14004b0b1
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.140031d00
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