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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x148
mov byte [rsp + 0x4c], 0
mov qword [rsp + 0xa0], 0
mov dword [rsp + 0x84], 0
mov dword [rsp + 0xc0], 0
mov rax, qword [rsp + 0x150]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x50], rax
mov edx, 0xf
mov rcx, qword [rsp + 0x50]
call fcn.14004a160
mov dword [rsp + 0xc4], eax
mov dword [rsp + 0x48], 0
mov rax, qword [rsp + 0x160]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x158]
movsxd rax, dword [rax + 0x14]
imul rax, rax, 0x38
mov rcx, qword [rsp + 0x158]
add rax, qword [rcx + 0x20]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x60]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0
mov rax, qword [rsp + 0x158]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x58], rax
jmp 0x140103944
mov rax, qword [rsp + 0x58]
add rax, 0x38
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xe0]
cmp qword [rsp + 0x58], rax
jae 0x140103b17
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x12]
and eax, 2
test eax, eax
jne 0x1401039cb
mov rdx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0xc8]
call fcn.140076370
test eax, eax
je 0x1401039cb
xor r8d, r8d
mov rdx, qword [rsp + 0xc8]
mov rax, qword [rsp + 0x150]
mov rcx, qword [rax]
call fcn.1400799b0
mov r8, rax
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x150]
call fcn.140054600
mov qword [rsp + 0xa0], rax
mov r8, qword [rsp + 0x168]
mov rdx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x58]
call fcn.140103770
test eax, eax
je 0x140103b12
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0x40
jl 0x140103a1a
movabs rax, 0x8000000000000000
mov qword [rsp + 0xd0], rax
jmp 0x140103a44
mov eax, dword [rsp + 0x80]
mov ecx, 1
mov qword [rsp + 0x110], rcx
movzx ecx, al
mov rax, qword [rsp + 0x110]
shl rax, cl
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xd8], rax
movzx eax, byte [rsp + 0x4c]
test eax, eax
jne 0x140103a9a
movsxd rax, dword [rsp + 0x80]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 8]
mov r9, qword [rcx + rax]
mov rax, qword [rsp + 0x90]
mov r8, qword [rax]
lea rdx, str.automatic_index_on__s__s_
mov ecx, 0x11c
call sym.sqlite3.exe_sqlite3_log
mov byte [rsp + 0x4c], 1
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x78]
and rcx, rax
mov rax, rcx
test rax, rax
jne 0x140103b12
mov eax, dword [rsp + 0x48]
inc eax
mov r8d, eax
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x150]
mov rcx, qword [rax]
call fcn.140102850
test eax, eax
je 0x140103ad9
jmp 0x14010437e
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x48]
mov rdx, qword [rsp + 0x58]
mov qword [rcx + rax*8], rdx
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x78]
or rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
jmp 0x140103936
mov rax, qword [rsp + 0x70]
movzx ecx, word [rsp + 0x48]
mov word [rax + 0x3c], cx
mov rax, qword [rsp + 0x70]
movzx ecx, word [rsp + 0x48]
mov word [rax + 0x18], cx
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x38], 0x4241
mov rax, qword [rsp + 0x78]
not rax
movabs rcx, 0x8000000000000000
or rax, rcx
mov rcx, qword [rsp + 0x160]
mov rcx, qword [rcx + 0x50]
and rcx, rax
mov rax, rcx
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x90]
movsx eax, word [rax + 0x36]
cmp eax, 0x3f
jle 0x140103b8c
mov dword [rsp + 0xa8], 0x3f
jmp 0x140103b9f
mov rax, qword [rsp + 0x90]
movsx eax, word [rax + 0x36]
mov dword [rsp + 0xa8], eax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0xb0], eax
mov dword [rsp + 0x40], 0
jmp 0x140103bc1
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xb0]
cmp dword [rsp + 0x40], eax
jge 0x140103c0c
mov eax, dword [rsp + 0x40]
mov ecx, 1
mov qword [rsp + 0x118], rcx
movzx ecx, al
mov rax, qword [rsp + 0x118]
shl rax, cl
mov rcx, qword [rsp + 0x108]
and rcx, rax
mov rax, rcx
test rax, rax
je 0x140103c0a
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
jmp 0x140103bb7
mov rax, qword [rsp + 0x160]
movabs rcx, 0x8000000000000000
mov rax, qword [rax + 0x50]
and rax, rcx
test rax, rax
je 0x140103c42
mov rax, qword [rsp + 0x90]
movsx eax, word [rax + 0x36]
mov ecx, dword [rsp + 0x48]
lea eax, [rcx + rax - 0x3f]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
inc eax
lea r9, [rsp + 0x138]
xor r8d, r8d
movzx edx, ax
mov rax, qword [rsp + 0x150]
mov rcx, qword [rax]
call fcn.140065450
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140103c78
jmp 0x14010437e
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x60]
lea rcx, str.auto_index
mov qword [rax], rcx
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x90]
mov qword [rax + 0x18], rcx
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x78], 0
mov rax, qword [rsp + 0x158]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x58], rax
jmp 0x140103cd8
mov rax, qword [rsp + 0x58]
add rax, 0x38
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xe0]
cmp qword [rsp + 0x58], rax
jae 0x140103e48
mov r8, qword [rsp + 0x168]
mov rdx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x58]
call fcn.140103770
test eax, eax
je 0x140103e43
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0xac], eax
cmp dword [rsp + 0xac], 0x40
jl 0x140103d3a
movabs rax, 0x8000000000000000
mov qword [rsp + 0xe8], rax
jmp 0x140103d64
mov eax, dword [rsp + 0xac]
mov ecx, 1
mov qword [rsp + 0x120], rcx
movzx ecx, al
mov rax, qword [rsp + 0x120]
shl rax, cl
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x78]
and rcx, rax
mov rax, rcx
test rax, rax
jne 0x140103e43
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x78]
or rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
movsxd rax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
mov rdx, qword [rsp + 0x58]
movzx edx, word [rdx + 0x20]
mov word [rcx + rax*2], dx
mov rdx, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x150]
call fcn.14008b480
mov qword [rsp + 0xf8], rax
cmp qword [rsp + 0xf8], 0
je 0x140103e10
mov rax, qword [rsp + 0xf8]
mov rax, qword [rax]
mov qword [rsp + 0x100], rax
jmp 0x140103e1f
lea rax, [0x140181e04]
mov qword [rsp + 0x100], rax
movsxd rax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x40]
mov rdx, qword [rsp + 0x100]
mov qword [rcx + rax*8], rdx
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
jmp 0x140103cca
mov dword [rsp + 0x40], 0
jmp 0x140103e5c
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xb0]
cmp dword [rsp + 0x40], eax
jge 0x140103eda
mov eax, dword [rsp + 0x40]
mov ecx, 1
mov qword [rsp + 0x130], rcx
movzx ecx, al
mov rax, qword [rsp + 0x130]
shl rax, cl
mov rcx, qword [rsp + 0x108]
and rcx, rax
mov rax, rcx
test rax, rax
je 0x140103ed5
movsxd rax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
movzx edx, word [rsp + 0x40]
mov word [rcx + rax*2], dx
movsxd rax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x40]
lea rdx, [0x140181e04]
mov qword [rcx + rax*8], rdx
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
jmp 0x140103e52
mov rax, qword [rsp + 0x160]
movabs rcx, 0x8000000000000000
mov rax, qword [rax + 0x50]
and rax, rcx
test rax, rax
je 0x140103f5a
mov dword [rsp + 0x40], 0x3f
jmp 0x140103f0c
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x90]
movsx eax, word [rax + 0x36]
cmp dword [rsp + 0x40], eax
jge 0x140103f5a
movsxd rax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
movzx edx, word [rsp + 0x40]
mov word [rcx + rax*2], dx
movsxd rax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x40]
lea rdx, [0x140181e04]
mov qword [rcx + rax*8], rdx
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
jmp 0x140103f02
movsxd rax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
mov edx, 0xffffffff
mov word [rcx + rax*2], dx
movsxd rax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x40]
lea rdx, [0x140181e04]
mov qword [rcx + rax*8], rdx
mov rax, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x150]
mov ecx, dword [rcx + 0x34]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x150]
mov eax, dword [rax + 0x34]
inc eax
mov rcx, qword [rsp + 0x150]
mov dword [rcx + 0x34], eax
mov eax, dword [rsp + 0x48]
inc eax
mov r9d, eax
mov rax, qword [rsp + 0x170]
mov r8d, dword [rax + 8]
mov edx, 0x74
mov rcx, qword [rsp + 0x50]
call fcn.14004a1e0
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x150]
call fcn.14004b100
mov rax, qword [rsp + 0x150]
mov rax, qword [rax]
mov eax, dword [rax + 0x60]
and eax, 0x80000
test eax, eax
jne 0x14010405e
mov rax, qword [rsp + 0x150]
mov eax, dword [rax + 0x38]
inc eax
mov dword [rsp + 0xb4], eax
mov rax, qword [rsp + 0x150]
mov ecx, dword [rsp + 0xb4]
mov dword [rax + 0x38], ecx
mov rax, qword [rsp + 0x170]
mov ecx, dword [rsp + 0xb4]
mov dword [rax + 0x34], ecx
mov rax, qword [rsp + 0x170]
mov r9d, dword [rax + 0x34]
mov r8d, 0x2710
mov edx, 0x4d
mov rcx, qword [rsp + 0x50]
call fcn.14004a1e0
mov rax, qword [rsp + 0x158]
mov rax, qword [rax]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x170]
movzx ecx, byte [rcx + 0x40]
imul rcx, rcx, 0x68
lea rax, [rax + rcx + 8]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x40]
shr eax, 5
and eax, 1
test eax, eax
je 0x140104113
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x34]
mov dword [rsp + 0xb8], eax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x47
mov rcx, qword [rsp + 0x50]
call fcn.14004a1e0
mov dword [rsp + 0xc0], eax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x30]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, dword [rsp + 0xb8]
mov edx, 0xb
mov rcx, qword [rsp + 0x50]
call fcn.14004a410
mov r8d, dword [rsp + 0xb8]
mov edx, 0xc
mov rcx, qword [rsp + 0x50]
call fcn.14004a1a0
mov dword [rsp + 0x68], eax
jmp 0x140104132
mov rax, qword [rsp + 0x170]
mov r8d, dword [rax + 4]
mov edx, 0x24
mov rcx, qword [rsp + 0x50]
call fcn.14004a1a0
mov dword [rsp + 0x68], eax
cmp qword [rsp + 0xa0], 0
je 0x140104188
mov rcx, qword [rsp + 0x150]
call fcn.14004b280
mov dword [rsp + 0x84], eax
mov r9d, 0x10
mov r8d, dword [rsp + 0x84]
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x150]
call fcn.1400730c0
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x38]
bts eax, 0x11
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0x38], eax
mov rcx, qword [rsp + 0x150]
call fcn.140053fa0
mov dword [rsp + 0x88], eax
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x88]
mov rax, qword [rsp + 0x170]
mov r8d, dword [rax + 4]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x150]
call fcn.140076ed0
mov dword [rsp + 0xbc], eax
mov rax, qword [rsp + 0x170]
cmp dword [rax + 0x34], 0
je 0x14010422f
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0x18]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xbc]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov rax, qword [rsp + 0x170]
mov r8d, dword [rax + 0x34]
mov edx, 0xb4
mov rcx, qword [rsp + 0x50]
call fcn.14004a610
mov r9d, dword [rsp + 0x88]
mov rax, qword [rsp + 0x170]
mov r8d, dword [rax + 8]
mov edx, 0x8a
mov rcx, qword [rsp + 0x50]
call fcn.14004a1e0
mov dx, 0x10
mov rcx, qword [rsp + 0x50]
call fcn.14004ad00
cmp qword [rsp + 0xa0], 0
je 0x14010427c
mov edx, dword [rsp + 0x84]
mov rcx, qword [rsp + 0x50]
call fcn.14004b980
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x40]
shr eax, 5
and eax, 1
test eax, eax
je 0x140104319
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0xbc]
add ecx, eax
mov eax, ecx
mov r8d, eax
mov edx, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0x50]
call fcn.14004ac80
mov rax, qword [rsp + 0x170]
mov eax, dword [rax + 8]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x98]
mov r9d, dword [rax + 0x38]
mov rax, qword [rsp + 0x170]
mov r8d, dword [rax + 4]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x150]
call fcn.1401035e0
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
call fcn.14004a230
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x40]
and eax, 0xffffffdf
mov rcx, qword [rsp + 0x98]
mov dword [rcx + 0x40], eax
jmp 0x14010434b
mov eax, dword [rsp + 0x68]
inc eax
mov r9d, eax
mov rax, qword [rsp + 0x170]
mov r8d, dword [rax + 4]
mov edx, 0x27
mov rcx, qword [rsp + 0x50]
call fcn.14004a1e0
mov dx, 3
mov rcx, qword [rsp + 0x50]
call fcn.14004ad00
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
call fcn.14004adb0
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x150]
call fcn.140054010
mov edx, dword [rsp + 0xc4]
mov rcx, qword [rsp + 0x50]
call fcn.14004adb0
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x150]
mov rcx, qword [rax]
call fcn.140054c70
add rsp, 0x148
ret