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

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push r12
push r13
push r15
sub rsp, 0x90
mov rsi, qword [rcx]
mov r13, r8
mov r12, qword [rsp + 0xe0]
mov r15, rdx
mov rbx, rcx
test r8, r8
jne 0x14007991b
test r12, r12
je 0x140079e74
mov qword [rsp + 0x78], r14
mov r14, qword [rcx + 0x220]
test r14, r14
je 0x140079e6f
cmp byte [rsi + 0xa1], 0
je 0x140079943
mov eax, dword [rsi + 0x9c]
mov dword [r14 + 0x38], eax
test r9b, 0x20
je 0x140079986
movzx eax, byte [r14 + 0x46]
test al, 8
je 0x140079963
lea rdx, str.AUTOINCREMENT_not_allowed_on_WITHOUT_ROWID_tables
call fcn.140038df0
jmp 0x140079e6f
test al, 4
jne 0x140079978
mov r8, qword [r14]
lea rdx, str.PRIMARY_KEY_missing_on_table__s
call fcn.140038df0
jmp 0x140079986
or al, 0x60
mov rdx, r14
mov byte [r14 + 0x46], al
call fcn.140079410
mov rcx, qword [r14 + 0x68]
xor eax, eax
mov qword [rsp + 0x88], rbp
mov ebp, 0xfff0bdc0
mov qword [rsp + 0x80], rdi
test rcx, rcx
je 0x1400799c6
mov edx, dword [rsi + 0x28]
mov ebp, eax
test edx, edx
jle 0x1400799c6
mov rax, qword [rsi + 0x20]
add rax, 0x18
cmp qword [rax], rcx
je 0x1400799c6
inc ebp
add rax, 0x20
cmp ebp, edx
jl 0x1400799b7
mov rax, qword [r14 + 0x30]
test rax, rax
je 0x1400799e6
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rcx, rbx
lea r8d, [r9 + 4]
call fcn.14006b350
mov rcx, r14
call fcn.140079200
mov rdi, qword [r14 + 0x10]
test rdi, rdi
je 0x140079a08
mov rcx, rdi
call fcn.140079320
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1400799f7
cmp byte [rsi + 0xa1], 0
jne 0x140079e10
mov rcx, rbx
call fcn.140094390
mov r15, rax
test rax, rax
je 0x140079e5f
xor eax, eax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], eax
mov rcx, r15
lea edx, [rax + 0x3d]
call fcn.140056030
mov rcx, qword [r14 + 0x18]
lea rax, str.VIEW
test rcx, rcx
lea r8, str.TABLE
lea rdx, str.view
cmovne r8, rax
lea rax, str.table
cmovne rax, rdx
mov qword [rsp + 0x50], rax
test r12, r12
je 0x140079cb2
inc dword [rbx + 0x54]
mov edx, reloc.WS2_32.dll_getservbyname
mov eax, dword [rbx + 0x54]
mov rcx, rbx
mov dword [rsp + 0xc0], eax
inc eax
mov dword [rsp + 0xd0], eax
inc eax
mov dword [rbx + 0x54], eax
lea r8d, [rdx - 0x36]
mov rax, qword [rbx + 0x1c0]
test rax, rax
mov dword [rsp + 0x20], ebp
cmovne rcx, rax
mov byte [rcx + 0x21], 1
mov rcx, r15
mov r9d, dword [rbx + 0x1a4]
call fcn.140056030
mov rax, qword [r15]
lea r12, [0x140330198]
mov ecx, dword [r15 + 0x3c]
dec ecx
cmp byte [rax + 0x51], 0
je 0x140079ae0
mov rax, r12
jmp 0x140079aef
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [r15 + 8]
lea rax, [rax + rcx*8]
mov r8d, dword [rsp + 0xc0]
xor r9d, r9d
mov byte [rax + 3], 4
mov rcx, r15
mov dword [rbx + 0x50], 2
mov edi, dword [r15 + 0x3c]
inc edi
lea edx, [r9 + 0x11]
mov dword [rsp + 0x20], edi
call fcn.140056030
mov eax, dword [rsp + 0xc0]
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0xe0]
mov rcx, rbx
mov dword [rsp + 0x5c], eax
xor eax, eax
mov qword [rsp + 0x60], rax
mov word [rsp + 0x58], reloc.WS2_32.dll_listen
call fcn.140098e10
mov r8d, dword [rsp + 0xc0]
xor eax, eax
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov rcx, r15
lea edx, [rax + 0x12]
call fcn.140056030
mov ecx, dword [r15 + 0x3c]
mov rax, qword [r15 + 0x30]
dec ecx
sub edi, 1
mov dword [rax + 0x64], ecx
mov edx, dword [r15 + 0x3c]
jns 0x140079b7e
lea edi, [rdx - 1]
mov rax, qword [r15]
cmp byte [rax + 0x51], 0
jne 0x140079b96
movsxd rax, edi
lea rcx, [rax + rax*2]
mov rax, qword [r15 + 8]
lea r12, [rax + rcx*8]
mov dword [r12 + 8], edx
cmp dword [rbx + 0x4c], 0
jne 0x140079e5f
mov rdx, qword [rsp + 0xe0]
mov rcx, rbx
call fcn.1400942a0
test rax, rax
je 0x140079e5f
movzx ecx, word [rax + 0x3e]
xor edi, edi
mov word [r14 + 0x3e], cx
mov rdx, rax
mov rcx, qword [rax + 8]
mov qword [r14 + 8], rcx
mov rcx, rsi
mov word [rax + 0x3e], di
mov qword [rax + 8], rdi
call fcn.1400776e0
mov r8d, dword [rsp + 0x5c]
lea edx, [rdi + 0x14]
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov rcx, r15
call fcn.140056030
mov r9d, dword [rsp + 0x64]
mov edx, gethostbyname
mov r8d, dword [rsp + 0x60]
mov rcx, r15
mov r12d, dword [rsp + 0xd0]
mov edi, eax
mov dword [rsp + 0x20], r12d
call fcn.140056030
xor r8d, r8d
mov rdx, r14
mov rcx, r15
call fcn.140086df0
xor eax, eax
lea r9d, [r12 + 1]
mov rcx, r15
mov dword [rsp + 0x20], eax
lea edx, [rax + 0x4b]
lea r8d, [rax + 1]
call fcn.140056030
mov edx, 0x54
lea eax, [r12 + 1]
mov r9d, r12d
mov dword [rsp + 0x20], eax
mov rcx, r15
lea r8d, [rdx - 0x53]
call fcn.140056030
xor r12d, r12d
mov r9d, edi
xor r8d, r8d
mov dword [rsp + 0x20], r12d
mov rcx, r15
lea edx, [r12 + 0xe]
call fcn.140056030
mov edx, edi
mov rcx, r15
call fcn.1400566e0
xor r9d, r9d
mov dword [rsp + 0x20], r12d
lea edx, [r12 + 0x3d]
mov rcx, r15
lea r8d, [r12 + 1]
call fcn.140056030
mov rdx, r14
mov rcx, rsi
call fcn.140078ed0
jmp 0x140079cf7
cmp byte [rsp + 0xd8], 0
lea rcx, [rbx + 0x248]
jne 0x140079cc6
mov rcx, r13
mov rax, qword [rcx]
mov r9d, dword [rcx]
sub r9d, dword [rbx + 0x238]
cmp byte [rax], 0x3b
je 0x140079cdc
add r9d, dword [rcx + 8]
mov rax, qword [rbx + 0x238]
lea rdx, str.CREATE__s__.s
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.140037e60
mov rcx, qword [r14]
lea r9, str.sqlite_temp_master
mov r8, qword [rsi + 0x20]
lea rdx, str.UPDATE__Q._s_SET_type_s__name_Q__tbl_name_Q__rootpage_d__sql_Q_WHERE_rowid_d
mov rdi, rax
movsxd r12, ebp
lea rax, str.sqlite_master
shl r12, 5
cmp ebp, 1
cmovne r9, rax
mov eax, dword [rbx + 0x1a0]
mov r8, qword [r12 + r8]
mov dword [rsp + 0x48], eax
mov eax, dword [rbx + 0x1a4]
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1400768b0
test rdi, rdi
je 0x140079dac
cmp qword [rsi + 0x328], 0
je 0x140079d79
mov rdx, rdi
mov rcx, rsi
call fcn.140035e30
jmp 0x140079dac
cmp rdi, qword [rsi + 0x170]
jb 0x140079da4
cmp rdi, qword [rsi + 0x178]
jae 0x140079da4
mov rax, qword [rsi + 0x168]
mov qword [rdi], rax
dec dword [rsi + 0x154]
mov qword [rsi + 0x168], rdi
jmp 0x140079dac
mov rcx, rdi
call fcn.140035dc0
mov edx, ebp
mov rcx, rbx
call fcn.140078d00
test byte [r14 + 0x46], 8
je 0x140079de0
mov r8, qword [rsi + 0x20]
mov rax, qword [r8 + r12 + 0x18]
cmp qword [rax + 0x68], 0
jne 0x140079de0
mov r8, qword [r8 + r12]
lea rdx, str.CREATE_TABLE__Q.sqlite_sequence_name_seq_
mov rcx, rbx
call fcn.1400768b0
mov r8, qword [r14]
lea rdx, str.tbl_name_q_AND_type_trigger
mov rcx, rsi
call fcn.140037e60
mov r8, rax
mov edx, ebp
mov rcx, r15
call fcn.140056260
cmp byte [rsi + 0xa1], 0
mov r15, qword [rsp + 0xc8]
je 0x140079e5f
mov rcx, qword [r14 + 0x68]
mov r8, r14
mov rdx, qword [r14]
add rcx, 8
call fcn.14003a4c0
test rax, rax
je 0x140079e2e
mov byte [rsi + 0x51], 1
jmp 0x140079e5f
mov qword [rbx + 0x220], rax
or dword [rsi + 0x2c], 2
cmp qword [r14 + 0x18], rax
jne 0x140079e5f
cmp qword [r15], rax
mov rcx, qword [rbx + 0x238]
cmovne r13, r15
mov edx, dword [r13]
sub edx, ecx
call fcn.140038bf0
add eax, 0xd
mov dword [r14 + 0x48], eax
mov rdi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x88]
mov r14, qword [rsp + 0x78]
add rsp, 0x90
pop r15
pop r13
pop r12
pop rsi
pop rbx
ret