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

Disassembly:
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x14031a320]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov r14, qword [rsp + 0x110]
movzx ebp, r9b
mov rsi, qword [rcx]
mov r12, r8
mov qword [rsp + 0x60], r14
mov r15, rcx
mov byte [rsp + 0x50], r9b
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x78], rdx
test r8, r8
jne 0x14005a7a9
test r14, r14
je 0x14005b2f7
mov qword [rsp + 0xb8], rdi
mov rdi, qword [rcx + 0x140]
test rdi, rdi
je 0x14005b2ef
test r14, r14
jne 0x14005a7dc
mov rdx, qword [rdi]
mov rcx, rsi
call fcn.14005a6d0
test eax, eax
je 0x14005a7dc
or dword [rdi + 0x40], 0x1000
cmp byte [rsi + 0xbd], 0
je 0x14005a80f
test r14, r14
je 0x14005a7fe
lea rdx, [0x1402df794]
mov rcx, r15
call fcn.140007d30
jmp 0x14005b2ef
mov eax, dword [rsi + 0xb8]
mov dword [rdi + 0x38], eax
cmp eax, 1
jne 0x14005a80f
or dword [rdi + 0x40], eax
test bpl, bpl
jns 0x14005a857
mov eax, dword [rdi + 0x40]
mov rcx, r15
test al, 8
je 0x14005a82f
lea rdx, str.AUTOINCREMENT_not_allowed_on_WITHOUT_ROWID_tables
call fcn.140007d30
jmp 0x14005b2ef
test al, 4
jne 0x14005a847
mov r8, qword [rdi]
lea rdx, str.PRIMARY_KEY_missing_on_table__s
call fcn.140007d30
jmp 0x14005b2ef
or eax, 0x280
mov rdx, rdi
mov dword [rdi + 0x40], eax
call fcn.140059fd0
mov rcx, qword [rdi + 0x70]
mov qword [rsp + 0xf8], rbx
xor ebx, ebx
mov qword [rsp + 0xb0], r13
mov r13d, 0xffff8000
mov dword [rsp + 0x54], r13d
test rcx, rcx
je 0x14005a8a2
mov rax, qword [rsi + 0x20]
mov r13d, ebx
add rax, 0x18
mov dword [rsp + 0x54], ebx
cmp qword [rax], rcx
je 0x14005a8a2
inc r13d
lea rax, [rax + 0x20]
cmp qword [rax], rcx
jne 0x14005a891
mov dword [rsp + 0x54], r13d
mov rax, qword [rdi + 0x30]
test rax, rax
je 0x14005a8dd
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r15
lea r8d, [r9 + 4]
call fcn.140042210
cmp dword [r15 + 0x30], ebx
je 0x14005a8dd
mov rdx, qword [rdi + 0x30]
test rdx, rdx
je 0x14005a8d9
mov rcx, rsi
call fcn.140044f80
mov qword [rdi + 0x30], rbx
test byte [rdi + 0x40], 0x60
je 0x14005a9cd
mov r12d, ebx
mov ebp, ebx
cmp bx, word [rdi + 0x46]
jge 0x14005a9a8
xor r13d, r13d
mov r14d, r13d
nop dword [rax]
mov rax, qword [rdi + 8]
test byte [r14 + rax + 0x1c], 0x60
je 0x14005a989
mov rbx, qword [r14 + rax + 8]
mov r8d, 8
mov r9, rbx
mov qword [rsp + 0x20], r13
mov rdx, rdi
mov rcx, r15
call fcn.140042210
test eax, eax
je 0x14005a98c
test rbx, rbx
je 0x14005a93e
mov rdx, rbx
mov rcx, rsi
call fcn.140043b30
mov edx, 0x48
mov rcx, rsi
call fcn.1400048c0
mov rcx, rax
test rax, rax
je 0x14005a97e
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm0
mov qword [rcx + 0x40], rax
mov eax, 0xffffffff
mov word [rcx + 0x32], ax
mov byte [rcx], 0x78
mov dword [rcx + 0x28], 1
mov rax, qword [rdi + 8]
mov qword [r14 + rax + 8], rcx
jmp 0x14005a98c
inc r12d
movsx eax, word [rdi + 0x46]
inc ebp
add r14, 0x20
cmp ebp, eax
jl 0x14005a900
mov r13d, dword [rsp + 0x54]
test r12d, r12d
jne 0x14005a9bc
lea rdx, str.must_have_at_least_one_non_generated_column
mov rcx, r15
call fcn.140007d30
jmp 0x14005b2df
movzx ebp, byte [rsp + 0x50]
xor ebx, ebx
mov r14, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
movsx r10d, word [rdi + 0x46]
mov edx, ebx
mov rcx, qword [rdi + 8]
mov r8d, ebx
mov r11d, ebx
cmp r10d, 2
jl 0x14005aa17
lea eax, [r10 - 2]
shr eax, 1
inc eax
mov r9d, eax
neg eax
lea r10d, [r10 + rax*2]
nop word [rax + rax]
movzx eax, byte [rcx + 0x1a]
add edx, eax
movzx eax, byte [rcx + 0x3a]
add r8d, eax
add rcx, 0x40
sub r9, 1
jne 0x14005aa00
test r10d, r10d
jle 0x14005aa21
movzx r11d, byte [rcx + 0x1a]
lea ecx, [r8 + rdx]
add ecx, r11d
cmp word [rdi + 0x44], 0
lea eax, [rcx + 1]
cmovge eax, ecx
shl eax, 2
mov ecx, eax
mov eax, Ordinal_41
cmp rcx, 8
jae 0x14005aa5f
cmp rcx, 2
jae 0x14005aa50
movzx ecx, bx
jmp 0x14005aab2
add ax, 0xfff6
add rcx, rcx
cmp rcx, 8
jb 0x14005aa50
jmp 0x14005aa9d
cmp rcx, 0xff
jbe 0x14005aa81
nop dword [rax + rax]
add ax, 0x28
shr rcx, 4
cmp rcx, 0xff
ja 0x14005aa70
cmp rcx, 0xf
jbe 0x14005aa9d
nop word [rax + rax]
add ax, 0xa
shr rcx, 1
cmp rcx, 0xf
ja 0x14005aa90
and ecx, 7
lea rdx, [0x1402e83e0]
movzx ecx, word [rdx + rcx*2]
sub cx, 0xa
add cx, ax
mov rbx, qword [rdi + 0x10]
mov word [rdi + 0x4c], cx
test rbx, rbx
je 0x14005aad1
nop
mov rcx, rbx
call fcn.140059e40
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14005aac0
movzx eax, byte [rsi + 0xbd]
test al, al
jne 0x14005b23f
mov rbx, qword [r15 + 0x10]
test rbx, rbx
jne 0x14005ab14
cmp qword [r15 + 0xa0], rbx
jne 0x14005ab00
mov rax, qword [r15]
test byte [rax + 0x5c], 8
jne 0x14005ab00
mov byte [r15 + 0x23], 1
mov rcx, r15
call fcn.14002a390
mov rbx, rax
test rax, rax
je 0x14005b2df
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x14005ab3f
xor eax, eax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], eax
mov rcx, rbx
lea edx, [rax + 0x75]
call fcn.14002a730
xor r9d, r9d
jmp 0x14005ab68
lea eax, [rcx + 1]
xor r9d, r9d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov qword [rax + rcx*8], reloc.WLDAP32.dll_Ordinal_117
mov qword [rax + rcx*8 + 8], r9
mov qword [rax + rcx*8 + 0x10], r9
mov rax, qword [rdi + 0x18]
lea rcx, str.VIEW
test rax, rax
lea r8, str.TABLE
lea rdx, str.view
cmovne r8, rcx
lea rcx, str.table
cmovne rcx, rdx
mov qword [rsp + 0x70], rcx
test r14, r14
je 0x14005b082
mov ebp, dword [r15 + 0x38]
mov rcx, r15
inc ebp
lea eax, [rbp + 1]
lea r12d, [rax + 1]
mov dword [rsp + 0x58], eax
mov rax, qword [r15 + 0xa0]
mov dword [r15 + 0x38], r12d
test rax, rax
cmovne rcx, rax
mov byte [rcx + 0x21], 1
movsxd rcx, dword [rbx + 0x90]
mov edx, dword [r15 + 0x7c]
cmp dword [rbx + 0x94], ecx
jg 0x14005abfc
mov r9d, edx
mov dword [rsp + 0x20], r13d
mov edx, 0x62
mov rcx, rbx
lea r8d, [rdx - 0x61]
call fcn.14002a730
xor r9d, r9d
jmp 0x14005ac2d
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x62
mov dword [rax + rcx*8 + 4], 1
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r13d
mov qword [rax + rcx*8 + 0x10], r9
movsxd rax, dword [rbx + 0x90]
test eax, eax
jle 0x14005ac4d
lea rcx, [rax + rax*2]
mov edx, reloc.WS2_32.dll_recv
mov rax, qword [rbx + 0x88]
mov word [rax + rcx*8 - 0x16], dx
mov dword [r15 + 0x34], 2
movsxd r14, dword [rbx + 0x90]
lea edx, [r14 + 1]
cmp dword [rbx + 0x94], r14d
jg 0x14005ac81
xor r9d, r9d
mov dword [rsp + 0x20], edx
mov r8d, ebp
mov rcx, rbx
lea edx, [r9 + 0xd]
call fcn.14002a730
jmp 0x14005acab
mov rax, qword [rbx + 0x88]
lea rcx, [r14 + r14*2]
mov dword [rbx + 0x90], edx
mov dword [rax + rcx*8], reloc.WS2_32.dll_listen
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r9
cmp dword [r15 + 0x30], 0
jne 0x14005b2df
mov r13, qword [rsp + 0x60]
mov r8b, 0x41
mov rdx, r13
mov rcx, r15
call fcn.140081080
test rax, rax
je 0x14005b2df
movzx ecx, word [rax + 0x46]
mov word [rdi + 0x48], cx
mov word [rdi + 0x46], cx
mov rcx, qword [rax + 8]
mov qword [rdi + 8], rcx
xor ecx, ecx
mov word [rax + 0x46], cx
mov qword [rax + 8], rcx
cmp qword [rsi + 0x2e0], rcx
jne 0x14005acff
add dword [rax + 0x3c], 0xffffffff
jne 0x14005ad0c
mov rdx, rax
mov rcx, rsi
call fcn.140057020
xor ecx, ecx
mov qword [rsp + 0x98], rcx
lea r8, [rsp + 0x80]
mov dword [rsp + 0x90], ecx
mov rdx, r13
mov rcx, r15
mov byte [rsp + 0x80], reloc.WS2_32.dll_listen
mov dword [rsp + 0x84], ebp
mov qword [rsp + 0x88], 0
call fcn.140088980
cmp dword [r15 + 0x30], 0
jne 0x14005b2df
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x14005ad7f
xor eax, eax
xor r9d, r9d
mov r8d, ebp
mov dword [rsp + 0x20], eax
mov rcx, rbx
lea edx, [rax + 0x42]
call fcn.14002a730
xor r9d, r9d
jmp 0x14005adab
lea eax, [rcx + 1]
xor r9d, r9d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x42
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 8], r9
mov qword [rax + rcx*8 + 0x10], r9
mov rax, qword [rbx + 0x18]
lea r13, [0x140321520]
mov byte [rax + 0x1f], 0
mov rax, qword [rbx + 0x18]
mov dword [rax + 0x28], r9d
mov rax, qword [rbx]
mov edx, dword [rbx + 0x90]
cmp byte [rax + 0x63], 0
je 0x14005add6
mov rax, r13
jmp 0x14005adf1
lea eax, [rdx - 1]
test r14d, r14d
cmovns eax, r14d
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
movsxd rbp, dword [rbx + 0x90]
mov edx, dword [rsp + 0x84]
cmp dword [rbx + 0x94], ebp
jg 0x14005ae28
mov dword [rsp + 0x20], r9d
mov r8d, edx
xor r9d, r9d
mov rcx, rbx
lea edx, [r9 + 0xe]
call fcn.14002a730
mov ebp, eax
xor r9d, r9d
jmp 0x14005ae5c
lea eax, [rbp + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rbp*2]
mov rax, qword [rbx + 0x88]
add rcx, rbp
mov dword [rax + rcx*8], reloc.WLDAP32.dll_Ordinal_14
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r9
movsxd rcx, dword [rbx + 0x90]
mov edx, dword [rsp + 0x90]
mov r8d, dword [rsp + 0x8c]
mov r14d, dword [rsp + 0x58]
cmp dword [rbx + 0x94], ecx
jg 0x14005ae96
mov r9d, edx
mov dword [rsp + 0x20], r14d
mov edx, 0x5c
mov rcx, rbx
call fcn.14002a730
jmp 0x14005aec4
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x5c
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r9
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call fcn.14006c680
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x14005aefe
xor eax, eax
mov r9d, r12d
mov rcx, rbx
mov dword [rsp + 0x20], eax
lea edx, [rax + 0x7a]
lea r8d, [rax + 1]
call fcn.14002a730
xor r8d, r8d
jmp 0x14005af33
lea eax, [rcx + 1]
xor r8d, r8d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], Ordinal_127
mov dword [rax + rcx*8 + 4], 1
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x14005af60
mov edx, Ordinal_127
mov dword [rsp + 0x20], r12d
mov r9d, r14d
mov rcx, rbx
lea r8d, [rdx - 0x7a]
call fcn.14002a730
xor r8d, r8d
jmp 0x14005af92
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], Ordinal_127
mov dword [rax + rcx*8 + 4], 1
mov dword [rax + rcx*8 + 8], r14d
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r8
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x14005afbd
mov dword [rsp + 0x20], r8d
mov r9d, ebp
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 0xb]
call fcn.14002a730
xor r8d, r8d
jmp 0x14005afe7
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov qword [rax + rcx*8], Ordinal_14
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov rax, qword [rbx]
mov edx, dword [rbx + 0x90]
cmp byte [rax + 0x63], 0
jne 0x14005b00f
lea eax, [rdx - 1]
test ebp, ebp
cmovns eax, ebp
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea r13, [rax + rcx*8]
mov dword [r13 + 8], edx
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x14005b047
xor r9d, r9d
mov dword [rsp + 0x20], r8d
mov rcx, rbx
lea edx, [r9 + 0x75]
lea r8d, [r9 + 1]
call fcn.14002a730
mov rdx, rdi
mov rcx, rsi
call fcn.140059aa0
jmp 0x14005b0c2
lea eax, [rcx + 1]
mov rdx, rdi
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], reloc.WLDAP32.dll_Ordinal_117
mov qword [rax + rcx*8 + 4], 1
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov rcx, rsi
call fcn.140059aa0
jmp 0x14005b0c2
lea rcx, [r15 + 0x100]
test bpl, bpl
jne 0x14005b091
mov rcx, r12
mov rax, qword [rcx]
mov r9d, dword [rcx]
sub r9d, dword [r15 + 0xf0]
cmp byte [rax], 0x3b
je 0x14005b0a7
add r9d, dword [rcx + 8]
mov rax, qword [r15 + 0xf0]
lea rdx, str.CREATE__s__.s
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.140006e80
mov rcx, qword [rdi]
lea rdx, str.UPDATE__Q.sqlite_master_SET_type_s__name_Q__tbl_name_Q__rootpage_d__sql_Q_WHERE_rowid_d
mov r8, qword [rsi + 0x20]
mov r14, rax
mov eax, dword [r15 + 0x78]
movsxd rbp, dword [rsp + 0x54]
mov r9, qword [rsp + 0x70]
mov r12, rbp
mov dword [rsp + 0x40], eax
mov eax, dword [r15 + 0x7c]
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
mov rcx, r15
shl r12, 5
mov r8, qword [r12 + r8]
call fcn.140055f20
test r14, r14
je 0x14005b174
cmp qword [rsi + 0x2e0], 0
je 0x14005b12b
mov rdx, r14
mov rcx, rsi
call fcn.140004480
jmp 0x14005b174
cmp r14, qword [rsi + 0x1d0]
jae 0x14005b16c
cmp r14, qword [rsi + 0x1c0]
jb 0x14005b150
mov rax, qword [rsi + 0x1b8]
mov qword [r14], rax
mov qword [rsi + 0x1b8], r14
jmp 0x14005b174
cmp r14, qword [rsi + 0x1c8]
jb 0x14005b16c
mov rax, qword [rsi + 0x1a8]
mov qword [r14], rax
mov qword [rsi + 0x1a8], r14
jmp 0x14005b174
mov rcx, r14
call fcn.140004410
mov rax, qword [r15]
mov r10, qword [r15 + 0x10]
mov rdx, qword [rax + 0x20]
movsxd rcx, dword [r10 + 0x90]
mov rax, qword [rdx + r12 + 0x18]
mov edx, dword [rax]
inc edx
cmp dword [r10 + 0x94], ecx
jg 0x14005b1b6
mov r9d, 1
mov dword [rsp + 0x20], edx
mov r8d, ebp
mov rcx, r10
lea edx, [r9 + 0x5e]
call fcn.14002a730
xor r14d, r14d
jmp 0x14005b1ea
lea eax, [rcx + 1]
xor r14d, r14d
mov dword [r10 + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r10 + 0x88]
mov dword [rax + rcx*8], 0x5f
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], 1
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r14
test byte [rdi + 0x40], 8
je 0x14005b213
mov r8, qword [rsi + 0x20]
mov rax, qword [r8 + r12 + 0x18]
cmp qword [rax + 0x68], 0
jne 0x14005b213
mov r8, qword [r8 + r12]
lea rdx, str.CREATE_TABLE__Q.sqlite_sequence_name_seq_
mov rcx, r15
call fcn.140055f20
mov r8, qword [rdi]
lea rdx, str.tbl_name_q_AND_type_trigger
mov rcx, rsi
call fcn.140006e80
mov r8, rax
movzx r9d, r14w
mov edx, ebp
mov rcx, rbx
call fcn.14002af40
movzx eax, byte [rsi + 0xbd]
jmp 0x14005b242
xor r14d, r14d
test al, al
je 0x14005b2af
mov rcx, qword [rdi + 0x70]
mov r8, rdi
mov rdx, qword [rdi]
add rcx, 8
call fcn.140009520
test rax, rax
je 0x14005b2a4
cmp byte [rsi + 0x63], 0
jne 0x14005b2df
cmp byte [rsi + 0x64], 0
jne 0x14005b2df
cmp dword [rsi + 0xdc], 0
mov byte [rsi + 0x63], 1
jle 0x14005b281
mov dword [rsi + 0x178], 1
inc dword [rsi + 0x180]
mov rax, qword [rsi + 0x140]
mov word [rsi + 0x184], r14w
test rax, rax
je 0x14005b2df
mov dword [rax + 0x18], 7
jmp 0x14005b2df
mov qword [r15 + 0x140], r14
or dword [rsi + 0x2c], 1
cmp qword [rsp + 0x60], 0
jne 0x14005b2df
cmp qword [rdi + 0x18], 0
jne 0x14005b2df
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
test rax, rax
jne 0x14005b2d2
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
sub eax, dword [r15 + 0xf0]
add eax, 0xd
mov dword [rdi + 0x50], eax
mov rbx, qword [rsp + 0xf8]
mov r13, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140252d20
add rsp, 0xc0
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret