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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r8, qword [rdx + 0x28]
xor r13d, r13d
mov rdi, qword [rcx]
mov r14, rdx
mov rsi, rcx
mov ebx, 0xfff0bdc0
test r8, r8
je 0x1400ae283
movsxd rax, dword [rdi + 0x28]
mov ebx, r13d
test eax, eax
jle 0x1400ae283
mov rdx, rax
mov ecx, r13d
mov rax, qword [rdi + 0x20]
add rax, 0x18
nop word [rax + rax]
cmp qword [rax], r8
je 0x1400ae283
inc ebx
inc rcx
add rax, 0x20
cmp rcx, rdx
jl 0x1400ae270
mov rcx, qword [r14 + 0x30]
lea r8, [rsp + 0x60]
mov rdx, qword [r14 + 8]
add rcx, 8
call fcn.140049a30
test rax, rax
je 0x1400ae2a4
mov r9, qword [rax + 0x10]
jmp 0x1400ae2a7
mov r9, r13
mov rax, qword [rdi + 0x20]
mov edx, ntohs
mov r9, qword [r9]
mov rcx, rsi
mov r8, qword [r14]
movsxd r12, ebx
mov r15, r12
shl r15, 5
cmp ebx, 1
mov rdi, qword [r15 + rax]
mov eax, reloc.WS2_32.dll_recv
cmovne edx, eax
mov qword [rsp + 0x20], rdi
call fcn.140085160
test eax, eax
jne 0x1400ae61e
lea rax, str.sqlite_master
mov qword [rsp + 0x20], rdi
cmp ebx, 1
lea r8, str.sqlite_temp_master
mov rcx, rsi
cmovne r8, rax
xor r9d, r9d
lea edx, [r9 + 9]
call fcn.140085160
test eax, eax
jne 0x1400ae61e
mov qword [rsp + 0x68], rbp
mov rbp, qword [rsi + 0x10]
test rbp, rbp
jne 0x1400ae36e
mov rcx, rsi
call fcn.140065af0
mov qword [rsi + 0x10], rax
mov rbp, rax
test rax, rax
je 0x1400ae34f
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor r8d, r8d
mov edx, 0x99
mov rcx, rax
call fcn.140065c50
cmp qword [rsi + 0x1c0], r13
jne 0x1400ae365
mov rax, qword [rsi]
test byte [rax + 0x4c], 8
jne 0x1400ae365
mov byte [rsi + 0x23], 1
test rbp, rbp
je 0x1400ae619
mov rax, qword [rsi + 0x1c0]
mov rdi, rsi
test rax, rax
cmovne rdi, rax
mov eax, dword [rdi + 0x16c]
bt eax, ebx
jb 0x1400ae3b6
bts eax, ebx
mov dword [rdi + 0x16c], eax
mov rax, qword [rdi]
mov rcx, qword [rax + 0x20]
mov rax, qword [rcx + r15 + 0x18]
mov ecx, dword [rax]
mov dword [rdi + r12*4 + 0x170], ecx
cmp ebx, 1
jne 0x1400ae3b6
mov rcx, rdi
call fcn.14008c920
mov eax, dword [rdi + 0x168]
mov edx, ebx
bts eax, ebx
mov rcx, rsi
mov dword [rdi + 0x168], eax
call fcn.140086860
mov rcx, qword [rbp + 0x30]
mov eax, dword [rbp + 0x3c]
add eax, 9
cmp eax, dword [rcx + 0x60]
jle 0x1400ae3f2
mov rcx, rbp
call fcn.140065ba0
test eax, eax
je 0x1400ae3f2
mov edi, r13d
jmp 0x1400ae598
movsxd rdi, dword [rbp + 0x3c]
mov rax, qword [rbp + 8]
lea rcx, [rdi + rdi*2]
mov word [rax + rcx*8], WSAGetLastError
lea rdx, [rax + rcx*8]
mov dword [rdx + 4], r13d
lea rcx, [rdi + rdi*2]
mov dword [rdx + 0xc], r13d
lea eax, [rdi + 9]
mov dword [rdx + 8], eax
mov qword [rdx + 0x10], r13
mov byte [rdx + 3], r13b
lea edx, [rdi + 8]
mov rax, qword [rbp + 8]
mov word [rax + rcx*8 + 0x18], 0x61
mov dword [rax + rcx*8 + 0x1c], r13d
mov qword [rax + rcx*8 + 0x20], 1
mov qword [rax + rcx*8 + 0x28], r13
mov byte [rax + rcx*8 + 0x1b], r13b
lea rcx, [rdi + rdi*2]
mov rax, qword [rbp + 8]
mov word [rax + rcx*8 + 0x30], 0x2f
mov dword [rax + rcx*8 + 0x34], r13d
mov dword [rax + rcx*8 + 0x38], 1
mov dword [rax + rcx*8 + 0x3c], 2
mov qword [rax + rcx*8 + 0x40], r13
mov byte [rax + rcx*8 + 0x33], r13b
lea rcx, [rdi + rdi*2]
mov rax, qword [rbp + 8]
mov word [rax + rcx*8 + 0x48], 0x4e
mov dword [rax + rcx*8 + 0x4c], 2
mov dword [rax + rcx*8 + 0x50], edx
mov dword [rax + rcx*8 + 0x54], 1
mov qword [rax + rcx*8 + 0x58], r13
mov byte [rax + rcx*8 + 0x4b], r13b
lea rcx, [rdi + rdi*2]
mov rax, qword [rbp + 8]
mov word [rax + rcx*8 + 0x60], 0x61
mov dword [rax + rcx*8 + 0x64], r13d
mov qword [rax + rcx*8 + 0x68], 1
mov qword [rax + rcx*8 + 0x70], r13
mov byte [rax + rcx*8 + 0x63], r13b
lea rcx, [rdi + rdi*2]
mov rax, qword [rbp + 8]
mov word [rax + rcx*8 + 0x78], 0x2f
mov qword [rax + rcx*8 + 0x7c], r13
mov dword [rax + rcx*8 + 0x84], 2
mov qword [rax + rcx*8 + 0x88], r13
mov byte [rax + rcx*8 + 0x7b], r13b
lea rcx, [rdi + rdi*2]
mov rax, qword [rbp + 8]
mov word [rax + rcx*8 + 0x90], 0x4e
mov dword [rax + rcx*8 + 0x94], 2
mov dword [rax + rcx*8 + 0x98], edx
mov dword [rax + rcx*8 + 0x9c], 1
mov qword [rax + rcx*8 + 0xa0], r13
mov byte [rax + rcx*8 + 0x93], r13b
lea rcx, [rdi + rdi*2]
mov rax, qword [rbp + 8]
mov word [rax + rcx*8 + 0xa8], 0x5f
mov qword [rax + rcx*8 + 0xac], r13
mov dword [rax + rcx*8 + 0xb4], r13d
mov qword [rax + rcx*8 + 0xb8], r13
mov byte [rax + rcx*8 + 0xab], r13b
lea rcx, [rdi + 8]
mov rax, qword [rbp + 8]
lea rcx, [rcx + rcx*2]
mov word [rax + rcx*8], 9
mov dword [rax + rcx*8 + 4], r13d
lea rdx, [rax + rcx*8]
lea eax, [rdi + 1]
mov dword [rdx + 8], eax
mov dword [rdx + 0xc], r13d
mov qword [rdx + 0x10], r13
mov byte [rdx + 3], r13b
add dword [rbp + 0x3c], 9
mov r8, qword [r14]
lea edx, [rdi + 1]
xor r9d, r9d
mov rcx, rbp
call fcn.140066230
lea edx, [rdi + 4]
mov r9d, 0xfffffffe
lea r8, str.trigger
mov rcx, rbp
call fcn.140066230
mov edx, ebx
mov rcx, rsi
call fcn.140087e40
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor r8d, r8d
mov rcx, rbp
lea edx, [r9 + 0x3d]
call fcn.140065c50
mov rdi, qword [r14]
xor r9d, r9d
mov r8d, ebx
mov dword [rsp + 0x20], r13d
mov rcx, rbp
lea edx, [r9 + 0x7e]
call fcn.140065c50
xor r9d, r9d
mov r8, rdi
mov edx, eax
mov rcx, rbp
call fcn.140066230
cmp dword [rsi + 0x54], 3
jge 0x1400ae619
mov dword [rsi + 0x54], 3
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret