Function at 0x1400d9540
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0xffffffff
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x40]
inc rax
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x40], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x48], 0xb
je 0x1400d9991
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x48]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 1
je 0x1400d95c6
cmp dword [rsp + 0x3c], 7
je 0x1400d963d
cmp dword [rsp + 0x3c], 8
je 0x1400d968f
cmp dword [rsp + 0x3c], 9
je 0x1400d979f
jmp 0x1400d98b7
call fcn.1400e31d0
mov rcx, qword [rsp + 0x30]
cmp dword [rcx + 0x4c], eax
jl 0x1400d95f0
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x28], 0
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x48], 7
jmp 0x1400d9630
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x4c]
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x4c]
inc eax
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 0x4c], eax
mov rax, qword [rsp + 0x30]
add rax, 0x30
mov rcx, qword [rsp + 0x30]
add rcx, 0x28
mov r8, rax
mov rdx, rcx
mov ecx, dword [rsp + 0x58]
call fcn.1400e31e0
nop
mov dword [rsp + 0x38], 0xffffffff
jmp 0x1400d98b7
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x38], 0
jne 0x1400d967a
mov rax, qword [rsp + 0x30]
add rax, 0x38
mov qword [rsp + 0x20], 0
mov r9, rax
mov r8d, 0xffffffff
lea rdx, [0x140294448]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call fcn.1400f7930
nop
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x40], 8
jmp 0x1400d98b7
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x38], 0
jne 0x1400d978a
mov qword [rsp + 0x48], 0
lea rax, [0x1402ada7f]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov r8d, 0xffffffff
lea rdx, [0x140294460]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call fcn.1400f7930
nop
mov rcx, qword [rsp + 0x60]
call fcn.1400f8820
cmp eax, 0x64
jne 0x1400d9747
mov edx, 1
mov rcx, qword [rsp + 0x60]
call fcn.1400f8b00
mov qword [rsp + 0x88], rax
mov r9, qword [rsp + 0x88]
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x48]
lea rcx, str._z_sSELECT_name_FROM___w_.sqlite_schema
call fcn.1400f6430
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400d9739
mov eax, 7
jmp 0x1400d9993
lea rax, [0x1402944a0]
mov qword [rsp + 0x70], rax
jmp 0x1400d96de
mov rcx, qword [rsp + 0x60]
call fcn.1400f8cc0
mov rax, qword [rsp + 0x30]
add rax, 0x38
mov qword [rsp + 0x20], 0
mov r9, rax
mov r8d, 0xffffffff
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call fcn.1400f7930
mov rcx, qword [rsp + 0x48]
call fcn.1400f66d0
nop
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x40], 9
jmp 0x1400d98b7
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x38], 0
jne 0x1400d98a7
mov qword [rsp + 0x50], 0
lea rax, [0x1402adab4]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, 0xffffffff
lea rdx, [0x1402944a8]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call fcn.1400f7930
nop
mov rcx, qword [rsp + 0x68]
call fcn.1400f8820
cmp eax, 0x64
jne 0x1400d9864
mov edx, 1
mov rcx, qword [rsp + 0x68]
call fcn.1400f8b00
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x50]
lea rcx, str._z_sSELECT_pti.name_FROM___w_.sqlite_schema_AS_sm_JOIN_pragma_table_info_sm.name__Q__AS_pti_WHERE_sm.typetable
call fcn.1400f6430
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1400d9853
mov eax, 7
jmp 0x1400d9993
lea rax, str._UNION
mov qword [rsp + 0x80], rax
jmp 0x1400d97f1
mov rcx, qword [rsp + 0x68]
call fcn.1400f8cc0
mov rax, qword [rsp + 0x30]
add rax, 0x38
mov qword [rsp + 0x20], 0
mov r9, rax
mov r8d, 0xffffffff
mov rdx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call fcn.1400f7930
mov rcx, qword [rsp + 0x50]
call fcn.1400f66d0
nop
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x40], reloc.WS2_32.dll_inet_addr
cmp dword [rsp + 0x38], 0
jge 0x1400d98d1
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x28], 0
jne 0x1400d98cf
jmp 0x1400d957e
jmp 0x1400d9947
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x38]
call fcn.1400f8820
cmp eax, 0x64
jne 0x1400d991b
mov edx, dword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x38]
call fcn.1400f8b00
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x28], rax
mov edx, dword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x38]
call fcn.1400f8c00
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 0x30], eax
jmp 0x1400d9947
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x38]
call fcn.1400f8cc0
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x38], 0
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x40]
mov dword [rax + 0x48], ecx
jmp 0x1400d957e
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x10], 0
jne 0x1400d9954
jmp 0x1400d9991
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x30]
cmp dword [rax + 0x10], ecx
jg 0x1400d998c
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 0x10]
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax + 0x28]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x18]
call fcn.1400e8770
test eax, eax
jne 0x1400d998c
jmp 0x1400d9991
jmp 0x1400d957e
xor eax, eax
add rsp, 0x98
ret