Function at 0x14004ae68
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 eax, dword [rcx + 0x38]
mov r13d, 1
mov ebp, dword [rsp + 0x100]
mov r12, rdx
mov rdi, qword [rcx]
mov r15, rcx
mov dword [rsp + 0x48], ebp
add ebp, r13d
mov dword [rsp + 0x3c], ebp
add ebp, r13d
mov dword [rsp + 0x34], ebp
add ebp, r13d
mov dword [rsp + 0x44], ebp
add ebp, r13d
mov r14d, ebp
mov dword [rsp + 0x58], ebp
add ebp, r13d
mov qword [rsp + 0x80], rdi
mov dword [rsp + 0x54], ebp
add ebp, r13d
mov dword [rsp + 0x50], ebp
add ebp, r13d
cmp eax, ebp
mov byte [rsp + 0x30], r13b
cmovle eax, ebp
mov dword [rcx + 0x38], eax
call fcn.1400646b0
mov rsi, rax
test rax, rax
je 0x14004b64f
test r12, r12
je 0x14004b64f
cmp dword [r12 + 0x38], 0
je 0x14004b64f
mov rdx, qword [r12]
lea r9d, [r13 + 0x5b]
lea r8, [0x1400fab60]
lea rcx, str.sqlite__
call fcn.140055ac4
test eax, eax
je 0x14004b64f
mov rcx, qword [r12 + 0x70]
mov ebx, 0xfff0bdc0
mov dword [rsp + 0x100], ebx
test rcx, rcx
je 0x14004af78
mov rax, qword [rdi + 0x20]
xor ebx, ebx
add rax, 0x18
mov dword [rsp + 0x100], ebx
cmp qword [rax], rcx
je 0x14004af78
add ebx, r13d
lea rax, [rax + 0x20]
cmp qword [rax], rcx
jne 0x14004af65
mov dword [rsp + 0x100], ebx
mov rax, qword [rdi + 0x20]
xor r9d, r9d
mov r8, qword [r12]
movsxd rcx, ebx
shl rcx, 5
lea edx, [r9 + 0x1c]
mov rcx, qword [rcx + rax]
mov qword [rsp + 0x20], rcx
mov rcx, r15
call fcn.14004cb04
test eax, eax
jne 0x14004b64f
mov r13d, dword [rsp + 0x108]
mov r9, r12
mov eax, dword [r15 + 0x34]
mov edi, r13d
mov dword [rsp + 0x60], r13d
mov r8d, ebx
inc r13d
mov dword [rsp + 0x20], reloc.WLDAP32.dll_Ordinal_97
mov edx, edi
mov dword [rsp + 0x108], r13d
lea ecx, [r13 + 1]
cmp eax, ecx
cmovle eax, ecx
mov rcx, r15
mov dword [r15 + 0x34], eax
call fcn.140059508
mov r8, qword [r12]
mov edx, r14d
mov rcx, rsi
call fcn.140031dcc
mov r14, qword [r12 + 0x10]
mov edx, 8
mov qword [rsp + 0x88], r14
test r14, r14
je 0x14004b548
mov rax, qword [rsp + 0xf0]
lea r8d, [rdx - 6]
test rax, rax
je 0x14004b02f
cmp rax, r14
jne 0x14004b52f
mov rax, qword [r14 + 0x48]
neg rax
sbb cl, cl
and byte [rsp + 0x30], cl
test byte [r12 + 0x40], 0x20
je 0x14004b05b
mov eax, dword [r14 + 0x64]
and al, 3
cmp al, r8b
jne 0x14004b05b
movzx ebx, word [r14 + 0x5e]
mov r8, r12
mov edi, ebx
jmp 0x14004b070
mov r8, r14
movzx ebx, word [r14 + 0x60]
mov edi, ebx
test byte [r14 + 0x64], dl
je 0x14004b070
movzx edi, word [r14 + 0x5e]
mov r8, qword [r8]
lea eax, [rdi - 1]
mov edx, dword [rsp + 0x54]
mov rcx, rsi
mov dword [rsp + 0x4c], eax
call fcn.140031dcc
mov eax, dword [r15 + 0x38]
lea ecx, [rbp - 1]
add ecx, edi
mov r8d, r13d
cmp eax, ecx
mov edx, reloc.WLDAP32.dll_Ordinal_97
cmovle eax, ecx
mov rcx, rsi
mov dword [r15 + 0x38], eax
mov eax, dword [rsp + 0x100]
mov r9d, dword [r14 + 0x58]
mov dword [rsp + 0x20], eax
call fcn.140031d50
mov rdx, r14
mov rcx, r15
call fcn.140032718
mov r9d, dword [rsp + 0x3c]
mov r8d, ebx
and dword [rsp + 0x20], 0
inc r9d
mov edx, Ordinal_73
mov rcx, rsi
call fcn.140031d50
mov ebx, dword [rsp + 0x3c]
mov edx, Ordinal_73
movzx r8d, word [r14 + 0x5e]
mov rcx, rsi
and dword [rsp + 0x20], 0
lea r9d, [rbx + 2]
call fcn.140031d50
xor r8d, r8d
mov dword [rsp + 0x20], ebx
lea r9d, [rbx + 1]
mov rcx, rsi
lea edx, [r8 + 0x3f]
call fcn.140031d50
mov r9d, 0xfffffff8
lea r8, [0x1400fcec0]
mov edx, eax
mov rcx, rsi
call fcn.140032658
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x14004b149
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
mov word [rax + rcx*8 - 0x16], 2
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, r13d
mov rcx, rsi
lea edx, [r9 + 0x24]
call fcn.140031d50
mov r9d, dword [rsp + 0x34]
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rcx, rsi
mov dword [rsp + 0x5c], eax
lea edx, [r8 + 0x46]
call fcn.140031d50
mov eax, dword [rsi + 0x90]
lea ebx, [rdi - 1]
mov dword [rsp + 0x40], eax
test ebx, ebx
jle 0x14004b3c1
dec dword [r15 + 0x44]
mov eax, dword [r15 + 0x44]
mov rcx, qword [rsp + 0x80]
mov edx, edi
mov dword [rsp + 0x38], eax
lea rdx, [rdx*4 - 4]
call fcn.140016ad8
mov qword [rsp + 0x78], rax
mov rdi, rax
test rax, rax
je 0x14004b51d
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
lea edx, [r9 + 0xb]
call fcn.140031d50
mov eax, dword [rsi + 0x90]
mov dword [rsp + 0x40], eax
mov eax, 1
cmp ebx, eax
jne 0x14004b216
cmp word [r14 + 0x5e], ax
jne 0x14004b216
cmp byte [r14 + 0x62], 0
je 0x14004b216
and dword [rsp + 0x20], 0
lea edx, [rax + 0x32]
mov r9d, dword [rsp + 0x38]
mov r8d, ebp
mov rcx, rsi
call fcn.140031d50
mov r12d, dword [rsp + 0x108]
xor r13d, r13d
xor eax, eax
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x68], rax
mov rdx, qword [r14 + 0x40]
mov rcx, r15
mov rdx, qword [rax + rdx]
call fcn.14004e820
mov r9d, dword [rsp + 0x34]
mov r8d, r13d
and dword [rsp + 0x20], 0
mov edx, Ordinal_73
mov rcx, rsi
mov rdi, rax
call fcn.140031d50
mov ebx, dword [rsp + 0x44]
mov r9d, r13d
mov r8d, r12d
mov dword [rsp + 0x20], ebx
mov edx, 0x5a
mov rcx, rsi
call fcn.140031d50
mov ecx, r13d
xor r9d, r9d
add ecx, ebp
mov r8d, ebx
mov dword [rsp + 0x20], ecx
mov rcx, rsi
lea edx, [r9 + 0x34]
call fcn.140031d50
mov r9d, 0xfffffffe
mov r8, rdi
mov edx, eax
mov rcx, rsi
mov ebx, eax
call fcn.140032658
mov rdx, qword [rsp + 0x70]
mov dword [rdx], ebx
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x14004b2c9
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
mov word [rax + rcx*8 - 0x16], 0x80
mov rax, qword [rsp + 0x68]
add rdx, 4
mov ecx, dword [rsp + 0x4c]
add rax, 8
inc r13d
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rdx
cmp r13d, ecx
jl 0x14004b22d
mov r9d, dword [rsp + 0x34]
mov r8d, ecx
and dword [rsp + 0x20], 0
mov rcx, rsi
mov edx, Ordinal_73
call fcn.140031d50
mov r9d, dword [rsp + 0x38]
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rcx, rsi
lea edx, [r8 + 0xb]
call fcn.140031d50
mov edx, dword [rsp + 0x40]
mov rcx, rsi
dec edx
call fcn.140032744
mov ecx, dword [rsi + 0x90]
xor ebx, ebx
mov rdi, qword [rsp + 0x78]
mov r12, qword [rsp + 0xe8]
mov r13d, dword [rsp + 0x108]
mov r15d, dword [rsp + 0x4c]
lea r14d, [rbx + 1]
mov dword [rax + 8], ecx
mov edx, dword [rdi]
mov rcx, rsi
call fcn.140032744
mov ecx, dword [rsi + 0x90]
mov r9d, ebx
mov r8d, r13d
mov edx, 0x5a
mov dword [rax + 8], ecx
lea eax, [rbx + rbp]
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.140031d50
add ebx, r14d
lea rdi, [rdi + 4]
cmp ebx, r15d
jl 0x14004b35a
mov edx, dword [rsp + 0x38]
mov rcx, rsi
call fcn.140032144
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call fcn.140016864
mov r14, qword [rsp + 0x88]
mov r15, qword [rsp + 0xe0]
mov edi, dword [rsp + 0x3c]
mov edx, 0x3f
mov ebx, dword [rsp + 0x44]
mov r9d, edi
mov rcx, rsi
mov dword [rsp + 0x20], ebx
lea r8d, [rdx - 0x3e]
call fcn.140031d50
mov r9d, 0xfffffff8
lea r8, [0x1401001d0]
mov edx, eax
mov rcx, rsi
call fcn.140032658
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x14004b415
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
mov word [rax + rcx*8 - 0x16], 2
mov r9d, dword [rsp + 0x40]
mov r8d, r13d
and dword [rsp + 0x20], 0
mov edx, 5
mov rcx, rsi
call fcn.140031d50
mov eax, dword [rsp + 0x50]
xor r8d, r8d
mov r9d, edi
mov dword [rsp + 0x20], eax
mov rcx, rsi
lea edx, [r8 + 0x3f]
call fcn.140031d50
mov r9d, 0xfffffff8
lea r8, [0x1400fcc60]
mov edx, eax
mov rcx, rsi
call fcn.140032658
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x14004b47d
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
mov word [rax + rcx*8 - 0x16], 1
mov r8d, dword [rsp + 0x58]
mov r9d, 3
mov rcx, rsi
mov dword [rsp + 0x20], ebx
lea edx, [r9 + 0x59]
call fcn.140031d50
xor r9d, r9d
lea r8, [0x140118574]
mov edx, eax
mov rcx, rsi
call fcn.140032658
mov r9d, dword [rsp + 0x48]
mov edx, Ordinal_122
mov r8d, dword [rsp + 0xf8]
mov rcx, rsi
and dword [rsp + 0x20], 0
call fcn.140031d50
mov eax, dword [rsp + 0x48]
mov r9d, ebx
mov r8d, dword [rsp + 0xf8]
mov edx, reloc.WLDAP32.dll_Ordinal_122
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.140031d50
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x14004b508
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
mov word [rax + rcx*8 - 0x16], 8
mov edx, dword [rsp + 0x5c]
mov rcx, rsi
call fcn.140032744
mov ecx, dword [rsi + 0x90]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0xf0]
mov r8d, 2
lea edx, [r8 + 6]
mov r14, qword [r14 + 0x28]
mov qword [rsp + 0x88], r14
test r14, r14
jne 0x14004b021
mov edi, dword [rsp + 0x60]
xor r15d, r15d
cmp qword [rsp + 0xf0], r15
jne 0x14004b64f
cmp byte [rsp + 0x30], r15b
je 0x14004b64f
mov r9d, dword [rsp + 0x50]
lea edx, [r15 + 0x5d]
mov r8d, edi
mov dword [rsp + 0x20], r15d
mov rcx, rsi
call fcn.140031d50
mov r8d, dword [rsp + 0x50]
lea edx, [r15 + 0x14]
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov rcx, rsi
call fcn.140031d50
mov r9d, dword [rsp + 0x54]
lea edx, [r15 + 0x49]
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov rcx, rsi
mov ebx, eax
call fcn.140031d50
mov r8d, dword [rsp + 0x58]
lea r9d, [r15 + 3]
mov edi, dword [rsp + 0x44]
lea edx, [r15 + 0x5c]
mov rcx, rsi
mov dword [rsp + 0x20], edi
call fcn.140031d50
xor r9d, r9d
lea r8, [0x140118574]
mov edx, eax
mov rcx, rsi
call fcn.140032658
mov r14d, dword [rsp + 0x48]
lea edx, [r15 + 0x79]
mov r8d, dword [rsp + 0xf8]
mov r9d, r14d
mov rcx, rsi
mov dword [rsp + 0x20], r15d
call fcn.140031d50
mov r8d, dword [rsp + 0xf8]
lea edx, [r15 + 0x7a]
mov r9d, edi
mov dword [rsp + 0x20], r14d
mov rcx, rsi
call fcn.140031d50
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x14004b63c
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
mov word [rax + rcx*8 - 0x16], 8
mov edx, ebx
mov rcx, rsi
call fcn.140032744
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