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

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x68]
mov ebx, dword [esp + 0x74]
xor ecx, ecx
mov eax, dword [edi]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x18]
cmp eax, ecx
mov dword [esp + 0x18], ecx
jne 0x5b2897
cmp dword [0x6bff9c], ecx
jne 0x5b2897
cmp ebx, ecx
je 0x5b243d
mov ebp, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x18]
push ecx
push ebp
push edx
push edi
call fcn.005b0a70
mov esi, eax
add esp, 0x10
test esi, esi
mov dword [esp + 0x70], esi
jl 0x5b2897
push ebx
push edi
call fcn.005c5b80
add esp, 8
test ebp, ebp
je 0x5b23f1
test dword [ebp + 4], 0xfffffffe
jne 0x5b23f1
test eax, eax
je 0x5b23f1
cmp byte [eax + 0x1d], 1
jne 0x5b23f1
mov dword [esp + 0x70], 1
mov esi, dword [esp + 0x70]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push eax
push str.index
push esi
push edi
push ecx
call fcn.005c5900
add esp, 0x14
test eax, eax
je 0x5b241c
lea edx, [esp + 0x34]
push ebx
push edx
call fcn.005c5950
add esp, 8
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
push eax
push ecx
push edi
call fcn.005b0320
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x5b2897
mov ecx, dword [esp + 0x18]
jmp 0x5b2454
mov ebx, dword [edi + 0x98]
xor eax, eax
cmp ebx, ecx
mov al, byte [ebx + 0x1d]
mov dword [esp + 0x70], eax
je 0x5b2897
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x5b2897
mov al, byte [ebx + 0x1c]
test al, al
je 0x5b247c
mov edx, dword [ebx]
push edx
push str.table__s_may_not_be_indexed
push edi
call fcn.005a77f0
add esp, 0xc
jmp 0x5b2897
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x5b2496
push str.views_may_not_be_indexed
push edi
call fcn.005a77f0
add esp, 8
jmp 0x5b2897
test ecx, ecx
je 0x5b2564
push ecx
call fcn.005b0970
push edi
mov dword [esp + 0x18], eax
call fcn.005a6f00
add esp, 8
test eax, eax
jne 0x5b2897
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5b2897
push eax
push edi
call fcn.005b0ad0
add esp, 8
test eax, eax
jne 0x5b2897
mov esi, dword [esp + 0x14]
mov al, byte [esi + 0x44]
test al, al
jne 0x5b25b8
push edi
call fcn.005a6f00
add esp, 4
test eax, eax
jne 0x5b2897
mov eax, dword [esp + 0x70]
mov edx, dword [esi + 4]
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 4
mov eax, dword [ecx + edx]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push esi
call fcn.005b0390
add esp, 0xc
test eax, eax
je 0x5b2538
mov edx, dword [esp + 0x10]
push edx
push str.index__s_already_exists
push edi
call fcn.005a77f0
add esp, 0xc
jmp 0x5b2897
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.005b0290
add esp, 0xc
test eax, eax
je 0x5b25b8
mov ecx, dword [esp + 0x10]
push ecx
push str.there_is_already_a_table_named__s
push edi
call fcn.005a77f0
add esp, 0xc
jmp 0x5b2897
mov eax, dword [ebx + 0x10]
mov ecx, 1
test eax, eax
je 0x5b2578
mov eax, dword [eax + 0x20]
inc ecx
test eax, eax
jne 0x5b2570
push ecx
lea edx, [esp + 0x48]
push 0x655bf8
push edx
call fcn.00597bdb
mov dword [esp + 0x1c], 0
mov ecx, dword [ebx]
lea eax, [esp + 0x50]
push 0
push eax
push ecx
lea edx, [esp + 0x28]
push str.sqlite_autoindex_
push edx
call fcn.005a76e0
mov eax, dword [esp + 0x30]
add esp, 0x20
test eax, eax
je 0x5b2897
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 4]
lea eax, [ecx*8]
sub eax, ecx
shl eax, 4
mov dword [esp + 0x28], eax
cmp ecx, 1
mov ebp, dword [eax + edx]
mov eax, str.sqlite_temp_master
je 0x5b25e5
mov eax, str.sqlite_master
push ebp
push 0
push eax
push 0x12
push edi
call fcn.005c5440
add esp, 0x14
test eax, eax
jne 0x5b2897
mov ecx, dword [esp + 0x70]
mov eax, 1
cmp ecx, eax
jne 0x5b260e
mov eax, 3
mov ecx, dword [ebx]
mov edx, dword [esp + 0x10]
push ebp
push ecx
push edx
push eax
push edi
call fcn.005c5440
add esp, 0x14
test eax, eax
jne 0x5b2897
mov edx, dword [esp + 0x78]
test edx, edx
jne 0x5b267a
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov edx, dword [esp + 0x30]
lea eax, [eax + eax*4]
and edx, 1
mov edi, dword [ecx + eax*4 - 0x14]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x2c], edi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x2c]
shl ecx, 1
push eax
or ecx, edx
push 0
push 0
mov dword [esp + 0x3c], ecx
call fcn.005c30b0
mov edx, eax
add esp, 0xc
test edx, edx
mov dword [esp + 0x78], edx
je 0x5b2897
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [edx]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [edx + edx*2]
lea eax, [ecx + edx*4 + 0x39]
push eax
call fcn.005a7570
mov ebp, eax
mov eax, dword [0x6bff9c]
add esp, 4
test eax, eax
jne 0x5b288a
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x20], 0
mov edx, dword [ecx]
lea eax, [ebp + edx*4 + 0x30]
mov dword [ebp + 8], eax
mov edx, dword [ecx]
lea eax, [eax + edx*4]
mov dword [ebp + 0xc], eax
mov ecx, dword [ecx]
lea edx, [eax + ecx*4 + 4]
or ecx, 0xffffffff
mov dword [ebp], edx
mov edi, dword [esp + 0x10]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov dl, byte [esp + 0x7c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x78]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 0x10], ebx
mov ecx, dword [eax]
mov dword [ebp + 4], ecx
mov byte [ebp + 0x18], dl
mov edx, dword [esp + 0x18]
test edx, edx
mov dl, byte [esp + 0x70]
sete cl
mov byte [ebp + 0x19], cl
mov byte [ebp + 0x1a], dl
cmp dword [eax], 0
jle 0x5b2804
mov eax, 0xffffffd0
lea ecx, [ebp + 0x30]
sub eax, ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 4]
xor esi, esi
test eax, eax
jle 0x5b2776
xor edi, edi
mov eax, dword [ebx + 8]
mov edx, dword [esp + 0x78]
mov ecx, dword [edi + eax]
mov eax, dword [edx + 8]
push ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [eax + ecx + 4]
push edx
call fcn.005a78f0
add esp, 8
test eax, eax
je 0x5b2772
mov eax, dword [ebx + 4]
inc esi
add edi, 0x14
cmp esi, eax
jl 0x5b2744
mov ecx, dword [esp + 0x6c]
cmp esi, dword [ebx + 4]
jge 0x5b2862
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x78]
add eax, edi
mov dword [eax + ecx], esi
mov eax, dword [edx + 8]
mov edx, dword [esp + 0x1c]
mov eax, dword [eax + edx]
test eax, eax
je 0x5b27a4
mov eax, dword [eax + 4]
mov dword [ecx], eax
jmp 0x5b27b0
mov eax, dword [ebx + 8]
lea edx, [esi + esi*4]
mov edx, dword [eax + edx*4 + 0xc]
mov dword [ecx], edx
mov eax, dword [esp + 0x14]
mov dl, byte [eax + 0x44]
test dl, dl
jne 0x5b27db
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
mov edx, dword [ecx]
push edx
push eax
call fcn.005b94e0
add esp, 8
test eax, eax
jne 0x5b288a
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
inc eax
mov esi, dword [edx]
add ecx, 4
add edi, 0xc
cmp eax, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x1c], edi
jl 0x5b2739
mov eax, dword [esp + 0x78]
push ebp
mov ecx, dword [eax]
mov dword [ebp + 0x28], ecx
call fcn.005b2cf0
mov edx, dword [esp + 0x6c]
add esp, 4
cmp ebx, dword [edx + 0x98]
jne 0x5b28f4
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x5b28f4
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 4]
cmp eax, ecx
jne 0x5b28e9
xor edx, edx
test eax, eax
jle 0x5b28e4
mov eax, dword [ebp + 8]
mov edi, esi
sub edi, ebp
lea ecx, [ebp + 0x30]
mov dword [esp + 0x24], edi
mov edi, dword [esi + 8]
sub edi, eax
mov dword [esp + 0x6c], edi
jmp 0x5b28c4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx + 8]
mov ecx, dword [ebx]
lea eax, [eax + eax*2]
mov eax, dword [edx + eax*4 + 4]
mov edx, dword [esp + 0x68]
push eax
push ecx
push str.table__s_has_no_column_named__s
push edx
call fcn.005a77f0
add esp, 0x10
test ebp, ebp
je 0x5b2897
push ebp
call fcn.005b04d0
add esp, 4
mov edx, dword [esp + 0x78]
push edx
call fcn.005c3150
mov eax, dword [esp + 0x78]
push eax
call fcn.005b3140
mov ecx, dword [esp + 0x18]
push ecx
call fcn.005a75f0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
mov edi, dword [esp + 0x6c]
mov edi, dword [edi + eax]
cmp edi, dword [eax]
jne 0x5b28e4
mov edi, dword [esp + 0x24]
mov edi, dword [edi + ecx]
cmp edi, dword [ecx]
jne 0x5b28e4
mov edi, dword [esi + 4]
inc edx
add eax, 4
add ecx, 4
cmp edx, edi
jl 0x5b28c0
cmp edx, dword [esi + 4]
je 0x5b295f
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x5b2831
mov esi, dword [esp + 0x14]
mov al, byte [esi + 0x44]
test al, al
je 0x5b299f
mov edx, dword [ebp]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov al, byte [ebp + 0x1a]
push ebp
not ecx
push ecx
push edx
lea edx, [eax*8]
sub edx, eax
mov eax, dword [esi + 4]
shl edx, 4
lea ecx, [edx + eax + 0x20]
push ecx
call fcn.005afd80
add esp, 0x10
test eax, eax
jne 0x5b288a
mov eax, esi
mov ecx, dword [eax + 8]
or ecx, 0x10
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x74]
test eax, eax
je 0x5b2ae9
mov edx, esi
mov eax, dword [edx + 0x40]
mov dword [ebp + 0x14], eax
jmp 0x5b2ae9
mov al, byte [esi + 0x18]
mov cl, byte [ebp + 0x18]
cmp al, cl
je 0x5b288a
cmp al, 0x63
je 0x5b298a
cmp cl, 0x63
je 0x5b298a
mov eax, dword [esp + 0x68]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
push eax
call fcn.005a77f0
add esp, 0xc
cmp byte [esi + 0x18], 0x63
jne 0x5b288a
mov cl, byte [ebp + 0x18]
mov byte [esi + 0x18], cl
jmp 0x5b288a
mov eax, dword [esp + 0x68]
push eax
mov edi, dword [eax + 0x20]
mov dword [esp + 0x70], edi
lea ecx, [edi + 1]
mov dword [eax + 0x20], ecx
call fcn.005bfc50
mov esi, eax
add esp, 4
test esi, esi
je 0x5b288a
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x68]
push edx
push 1
push eax
call fcn.005b3430
mov ecx, dword [esp + 0x7c]
push 0
push ecx
push 0x1f
push esi
call fcn.005ad310
push 0
push edi
push 0x7d
push esi
call fcn.005ad310
mov eax, dword [esp + 0xac]
add esp, 0x2c
test eax, eax
je 0x5b2a38
mov edx, dword [esp + 0x84]
test edx, edx
je 0x5b2a38
mov eax, dword [esp + 0x7c]
mov ecx, 0x6adbd8
test eax, eax
je 0x5b2a19
mov ecx, str._UNIQUE
mov eax, dword [esp + 0x18]
mov edx, dword [edx]
mov eax, dword [eax]
sub edx, eax
push eax
inc edx
push edx
push ecx
push str.CREATE_s_INDEX__.s
call fcn.005bbf60
add esp, 0x10
mov edi, eax
jmp 0x5b2a3a
xor edi, edi
mov eax, dword [esp + 0x70]
cmp eax, 1
mov eax, str.sqlite_temp_master
je 0x5b2a4d
mov eax, str.sqlite_master
mov ecx, dword [ebx]
mov edx, dword [ebp]
push edi
push ecx
push edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
mov eax, dword [edx + ecx]
mov ecx, dword [esp + 0x78]
push eax
push str.INSERT_INTO__Q._s_VALUES_index__Q__Q_0__Q__
push ecx
call fcn.005b0200
push 0
push 1
push 0xc
push esi
call fcn.005ad310
push edi
call fcn.005a75f0
mov eax, dword [esp + 0xa4]
add esp, 0x30
test eax, eax
je 0x5b2ae9
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
push edx
push ebp
push eax
call fcn.005b2b50
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x20]
push ecx
push esi
push edx
call fcn.005b13b0
mov eax, dword [ebp]
add esp, 0x18
push 0xffffffffffffffff
push eax
push str.name_q
call fcn.005bbf60
mov ecx, dword [esp + 0x7c]
add esp, 8
push eax
push 0
push ecx
push 0x1c
push esi
call fcn.005ad3f0
push 0
push 0
push 0x10
push esi
call fcn.005ad310
add esp, 0x28
mov edx, dword [esp + 0x14]
mov al, byte [edx + 0x44]
test al, al
jne 0x5b2b00
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x5b288a
mov eax, dword [esp + 0x7c]
mov edx, 5
cmp eax, edx
jne 0x5b2b3c
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x5b2b3c
cmp byte [ecx + 0x18], dl
je 0x5b2b3c
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x5b2b2e
cmp byte [eax + 0x18], dl
je 0x5b2b2e
mov ecx, eax
mov eax, dword [ecx + 0x20]
test eax, eax
jne 0x5b2b20
mov eax, dword [ecx + 0x20]
mov dword [ebp + 0x20], eax
mov dword [ecx + 0x20], ebp
jmp 0x5b2897
mov ecx, dword [ebx + 0x10]
mov dword [ebp + 0x20], ecx
mov dword [ebx + 0x10], ebp
jmp 0x5b2897