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

Disassembly:
sub esp, 0x44
mov eax, dword [esp + 0x48]
mov eax, dword [eax]
push ebx
mov ebx, dword [esp + 0x54]
xor ecx, ecx
cmp byte [eax + 0x1e], cl
push ebp
push esi
push edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], ecx
jne 0x5736d4
mov ecx, dword [esp + 0x58]
cmp byte [ecx + 0x214], 0
jne 0x5736d4
mov esi, eax
cmp byte [esi + 0x7c], 0
mov edi, ecx
jne 0x573097
lea edx, [edi + 8]
push edx
call fcn.00580960
add esp, 4
test eax, eax
je 0x573097
add dword [edi + 0x40], 1
mov dword [edi + 4], eax
jmp 0x5736d4
cmp dword [esp + 0x64], 0
je 0x57320d
mov eax, dword [esp + 0x5c]
push eax
push edi
lea ecx, [esp + 0x28]
mov eax, ebx
call fcn.00570d80
add esp, 8
test eax, eax
mov dword [esp + 0x18], eax
jl 0x5736d4
mov edi, dword [esp + 0x64]
mov ebp, esi
cmp byte [ebp + 0x7c], 0
mov esi, dword [esp + 0x58]
jne 0x5730fa
push esi
mov eax, edi
call fcn.00575490
add esp, 4
cmp dword [ebx + 4], 0
jne 0x5730fa
test eax, eax
je 0x5730fa
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x44]
cmp edx, dword [ecx + 0x1c]
jne 0x5730fa
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
push str.index
lea ecx, [esp + 0x48]
call fcn.0056f980
add esp, 8
test eax, eax
je 0x573122
push edi
push ecx
call fcn.0056f9b0
add esp, 8
mov edx, dword [edi + 8]
mov eax, dword [edi + 0xc]
push edx
push eax
push 0
mov eax, esi
call fcn.00570590
add esp, 0xc
test eax, eax
mov dword [esp + 0x14], eax
je 0x5736d4
mov ecx, ebp
cmp byte [ecx + 0x1e], 0
jne 0x5736d4
mov ebx, eax
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov ebp, dword [edx + 8]
mov edi, dword [ebx]
shl eax, 4
push 7
add ebp, eax
push str.sqlite_
push edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x30], ebp
call fcn.00545650
add esp, 0xc
test eax, eax
jne 0x573257
mov eax, 9
mov ecx, str.altertab_
lea edx, [edi + 7]
nop
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x5731ac
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x573190
test eax, eax
je 0x57323a
movzx ebp, byte [ecx]
movzx esi, byte [edx]
sub esi, ebp
jne 0x5731fb
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x573236
movzx ebp, byte [ecx]
movzx esi, byte [edx]
sub esi, ebp
jne 0x5731fb
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x573236
movzx ebp, byte [ecx]
movzx esi, byte [edx]
sub esi, ebp
jne 0x5731fb
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x573236
movzx eax, byte [ecx]
movzx esi, byte [edx]
sub esi, eax
je 0x573236
test esi, esi
mov ebp, dword [esp + 0x24]
mov eax, 1
jg 0x57323c
or eax, 0xffffffff
jmp 0x57323c
mov edi, dword [edi + 0x200]
test edi, edi
mov dword [esp + 0x14], edi
je 0x5736d4
mov ecx, dword [esp + 0x10]
mov ebx, edi
mov esi, dword [ebx + 0x44]
call fcn.00580c70
mov dword [esp + 0x18], eax
jmp 0x573150
mov ebp, dword [esp + 0x24]
xor eax, eax
test eax, eax
je 0x573257
push edi
mov edi, dword [esp + 0x5c]
push str.table__s_may_not_be_indexed
call fcn.005454f0
add esp, 8
jmp 0x5736d4
cmp dword [ebx + 0x1c], 0
je 0x573273
mov edi, dword [esp + 0x58]
push str.views_may_not_be_indexed
call fcn.005454f0
add esp, 4
jmp 0x5736d4
test byte [ebx + 0x22], 0x10
je 0x57328f
mov edi, dword [esp + 0x58]
push str.virtual_tables_may_not_be_indexed
call fcn.005454f0
add esp, 4
jmp 0x5736d4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x57333d
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00570be0
add esp, 4
test eax, eax
mov dword [esp + 0x1c], eax
je 0x5736d4
mov esi, eax
mov eax, dword [esp + 0x58]
call fcn.00570e20
test eax, eax
jne 0x5736d4
mov edi, dword [esp + 0x10]
cmp byte [edi + 0x7c], al
jne 0x5732f6
push eax
push esi
push edi
call fcn.00570480
add esp, 0xc
test eax, eax
je 0x5732f6
mov edi, dword [esp + 0x58]
push esi
push str.there_is_already_a_table_named__s
call fcn.005454f0
add esp, 8
jmp 0x5736d4
mov edx, dword [ebp]
push edx
push esi
mov ecx, edi
call fcn.00570620
add esp, 8
test eax, eax
je 0x573379
cmp dword [esp + 0x7c], 0
jne 0x573327
mov edi, dword [esp + 0x58]
push esi
push str.index__s_already_exists
call fcn.005454f0
add esp, 8
jmp 0x5736d4
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x5c]
call fcn.00574560
add esp, 4
jmp 0x5736d4
mov eax, dword [ebx + 0x10]
test eax, eax
mov ecx, 1
je 0x57335a
lea esp, [esp]
mov eax, dword [eax + 0x20]
add ecx, 1
test eax, eax
jne 0x573350
mov esi, dword [esp + 0x10]
push ecx
push edi
push str.sqlite_autoindex__s__d
call fcn.00544920
add esp, 0xc
test eax, eax
mov dword [esp + 0x1c], eax
je 0x5736d4
cmp dword [esp + 0x18], 1
mov esi, dword [ebp]
mov eax, str.sqlite_temp_master
je 0x57338d
mov eax, str.sqlite_master
push esi
push 0
push eax
mov eax, dword [esp + 0x64]
push 0x12
call fcn.0056fe50
add esp, 0x10
test eax, eax
jne 0x5736d4
mov eax, 1
cmp dword [esp + 0x18], eax
jne 0x5733b7
mov eax, 3
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x1c]
push esi
push edx
push ecx
push eax
mov eax, dword [esp + 0x68]
call fcn.0056fe50
add esp, 0x10
test eax, eax
jne 0x5736d4
mov edi, dword [esp + 0x68]
test edi, edi
jne 0x57343d
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 8]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax + edx*8 - 0x18]
mov dword [esp + 0x30], ecx
call fcn.00545410
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x58]
push edi
xor ecx, ecx
call fcn.00569dc0
add esp, 4
test eax, eax
mov dword [esp + 0x68], eax
je 0x5736d4
mov ecx, dword [esp + 0x58]
push edi
mov edi, eax
push ecx
lea edx, [esp + 0x38]
mov ecx, edi
call fcn.00569e90
mov edx, dword [edi + 0xc]
mov al, byte [esp + 0x80]
add esp, 8
mov byte [edx + 0xc], al
mov esi, dword [edi]
test esi, esi
jle 0x573470
mov edi, dword [edi + 0xc]
mov edx, esi
mov eax, dword [edi]
test eax, eax
je 0x573468
mov eax, dword [eax + 0x14]
test eax, eax
je 0x573468
mov ecx, dword [eax]
call fcn.00545410
mov ecx, dword [esp + 0x28]
lea eax, [ecx + eax + 1]
mov dword [esp + 0x28], eax
add edi, 0x14
sub edx, 1
jne 0x573448
mov ecx, dword [esp + 0x1c]
call fcn.00545410
mov edx, dword [esp + 0x28]
mov ecx, esi
imul ecx, ecx, 0xd
mov ebx, eax
mov eax, dword [esp + 0x10]
add ecx, ebx
lea edi, [ecx + edx + 0x39]
call fcn.00543610
mov ebp, eax
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x1e], 0
jne 0x5736b8
mov edx, dword [esp + 0x1c]
lea eax, [ebp + 0x34]
mov dword [ebp + 0x2c], eax
lea eax, [eax + esi*4]
mov dword [ebp + 8], eax
lea eax, [eax + esi*4]
mov dword [ebp + 0xc], eax
lea eax, [eax + esi*4 + 4]
mov dword [ebp + 0x28], eax
add eax, esi
lea ecx, [eax + ebx + 1]
add ebx, 1
push ebx
push edx
push eax
mov dword [ebp], eax
mov dword [esp + 0x38], ecx
call fcn.005e796e
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x74]
mov dword [ebp + 0x10], eax
mov edx, dword [ecx]
mov al, byte [esp + 0x78]
add esp, 0xc
cmp dword [esp + 0x20], 0
mov dword [ebp + 4], edx
mov edx, dword [esp + 0x10]
sete cl
mov byte [ebp + 0x18], al
mov byte [ebp + 0x19], cl
mov eax, dword [edx + 8]
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + eax + 0xc]
mov eax, dword [esp + 0x24]
mov dword [ebp + 0x24], edx
mov ecx, dword [eax + 0xc]
cmp byte [ecx + 0x4c], 4
mov eax, dword [esp + 0x68]
mov edx, dword [eax + 0xc]
sbb ebx, ebx
neg ebx
xor edi, edi
sub ebx, 1
cmp dword [eax], edi
mov dword [esp + 0x28], edx
jle 0x573644
jmp 0x573540
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0xc]
xor esi, esi
cmp dword [ecx + 8], esi
mov dword [esp + 0x24], edx
jle 0x573588
lea ecx, [ecx]
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
mov ecx, dword [esp + 0x30]
call fcn.00545600
test eax, eax
je 0x573584
mov ecx, dword [esp + 0x14]
add dword [esp + 0x24], 0x18
add esi, 1
cmp esi, dword [ecx + 8]
jl 0x573560
mov ecx, dword [esp + 0x14]
cmp esi, dword [ecx + 8]
jge 0x573697
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x28]
mov dword [edx + edi*4], esi
mov eax, dword [eax]
test eax, eax
je 0x5735d3
mov eax, dword [eax + 0x14]
test eax, eax
je 0x5735d3
mov ecx, dword [eax]
call fcn.00545410
mov esi, eax
add esi, 1
push esi
push ecx
mov ecx, dword [esp + 0x34]
push ecx
call fcn.005e796e
mov eax, dword [esp + 0x38]
add esp, 0xc
mov dword [esp + 0x24], eax
add eax, esi
mov dword [esp + 0x2c], eax
jmp 0x5735f2
mov eax, dword [ecx + 0xc]
lea edx, [esi + esi*2]
mov eax, dword [eax + edx*8 + 0x10]
test eax, eax
mov dword [esp + 0x24], eax
jne 0x5735f2
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x2c]
mov eax, dword [edx]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x10]
cmp byte [ecx + 0x7c], 0
jne 0x573615
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x24]
push edx
call fcn.005717f0
add esp, 4
test eax, eax
je 0x5736b8
mov eax, dword [ebp + 0x2c]
mov ecx, dword [esp + 0x24]
mov dword [eax + edi*4], ecx
mov eax, dword [esp + 0x28]
mov dl, byte [eax + 0xc]
mov ecx, dword [ebp + 0x28]
and dl, bl
mov byte [edi + ecx], dl
mov edx, dword [esp + 0x68]
add edi, 1
add eax, 0x14
cmp edi, dword [edx]
mov dword [esp + 0x28], eax
jl 0x573540
mov edx, ebp
call fcn.00573980
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x14]
cmp eax, dword [ecx + 0x200]
jne 0x57374f
mov ebx, dword [eax + 0x10]
test ebx, ebx
je 0x57374f
lea ebx, [ebx]
mov eax, dword [ebx + 4]
cmp eax, dword [ebp + 4]
jne 0x573744
xor esi, esi
test eax, eax
jle 0x57373f
mov edi, dword [ebp + 8]
mov ecx, dword [ebx + 8]
sub ecx, edi
mov dword [esp + 0x30], ecx
jmp 0x573714
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov edi, dword [esp + 0x58]
push eax
push edx
push str.table__s_has_no_column_named__s
call fcn.005454f0
add esp, 0xc
mov byte [edi + 0x12], 1
test ebp, ebp
je 0x5736d4
mov eax, dword [ebp + 0x1c]
mov esi, dword [esp + 0x10]
push eax
push esi
call fcn.00543400
push ebp
push esi
call fcn.00543400
add esp, 0x10
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x10]
push ecx
mov edi, esi
call fcn.00569f90
mov edx, dword [esp + 0x68]
add esp, 4
push edx
call fcn.00573ff0
mov eax, dword [esp + 0x20]
add esp, 4
push eax
push esi
call fcn.00543400
mov eax, dword [esp + 0x44]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov ecx, dword [esp + 0x30]
lea eax, [edi + esi*4]
mov edx, dword [ecx + eax]
cmp edx, dword [eax]
jne 0x57373f
mov eax, dword [ebx + 0x2c]
mov edx, dword [ebp + 0x2c]
mov ecx, dword [eax + esi*4]
mov edx, dword [edx + esi*4]
cmp ecx, edx
je 0x573737
call fcn.00545600
test eax, eax
jne 0x57373f
add esi, 1
cmp esi, dword [ebx + 4]
jl 0x573710
cmp esi, dword [ebx + 4]
je 0x573783
mov ebx, dword [ebx + 0x20]
test ebx, ebx
jne 0x573670
mov esi, dword [esp + 0x10]
cmp byte [esi + 0x7c], 0
je 0x5737e1
mov ecx, dword [ebp]
push ebp
call fcn.00545410
push eax
mov eax, dword [ebp + 0x24]
push ecx
add eax, 0x18
call fcn.00546770
add esp, 0xc
test eax, eax
je 0x5737c2
mov byte [esi + 0x1e], 1
jmp 0x5736b8
mov al, byte [ebx + 0x18]
mov cl, byte [ebp + 0x18]
cmp al, cl
je 0x5736b8
cmp al, 0x63
je 0x5737ad
cmp cl, 0x63
je 0x5737ad
mov edi, dword [esp + 0x58]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
call fcn.005454f0
add esp, 8
cmp byte [ebx + 0x18], 0x63
jne 0x5736b8
mov al, byte [ebp + 0x18]
mov byte [ebx + 0x18], al
jmp 0x5736b8
or dword [esi + 0xc], 0x200
cmp dword [esp + 0x64], 0
je 0x57390d
mov ecx, esi
mov edx, dword [ecx + 0x78]
mov dword [ebp + 0x14], edx
jmp 0x57390d
mov edi, dword [esp + 0x58]
add dword [edi + 0x48], 1
mov ebx, dword [edi + 0x48]
call fcn.00583190
mov esi, eax
test esi, esi
mov dword [esp + 0x30], esi
je 0x5736b8
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x58]
push 1
call fcn.00574670
add esp, 4
push 0
push ebx
push edi
push 0x61
mov eax, esi
call fcn.0055cbe0
add esp, 0x10
cmp dword [esp + 0x70], 0
je 0x573864
cmp dword [esp + 0x6c], 0
mov ecx, 0x627e26
je 0x573839
mov ecx, str._UNIQUE
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
mov edi, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x78]
mov edx, dword [edx]
sub edx, dword [eax]
mov esi, edi
add edx, 1
push edx
push ecx
push str.CREATE_s_INDEX__.s
call fcn.00544920
add esp, 0x10
mov esi, eax
jmp 0x57386a
mov edi, dword [esp + 0x10]
xor esi, esi
cmp dword [esp + 0x18], 1
mov eax, str.sqlite_temp_master
je 0x57387b
mov eax, str.sqlite_master
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp]
push esi
push ebx
push edx
mov edx, dword [edi + 8]
push ecx
push eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + edx]
mov edx, dword [esp + 0x6c]
push ecx
push str.INSERT_INTO__Q._s_VALUES_index__Q__Q__d__Q__
push edx
call fcn.005703b0
push esi
push edi
call fcn.00543400
add esp, 0x28
cmp dword [esp + 0x64], 0
je 0x57390d
mov esi, dword [esp + 0x58]
push ebx
push ebp
push esi
call fcn.00572d90
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
call fcn.00571870
add esp, 4
push 0xffffffffffffffff
push ecx
mov ecx, dword [ebp]
push ecx
push str.name_q_AND_typeindex
mov esi, edi
call fcn.00544920
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x40]
add esp, 0xc
push eax
push edx
push 0x63
xor eax, eax
xor ecx, ecx
call fcn.0055ccb0
push 0
push 0
push 0
push 0x7a
mov eax, edi
call fcn.0055cbe0
add esp, 0x20
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x7c], 0
jne 0x573922
cmp dword [esp + 0x64], 0
jne 0x5736b8
mov ecx, dword [esp + 0x14]
mov edx, 5
cmp dword [esp + 0x6c], edx
jne 0x573965
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x573965
cmp byte [eax + 0x18], dl
je 0x573965
cmp dword [eax + 0x20], 0
je 0x573953
mov ecx, dword [eax + 0x20]
cmp byte [ecx + 0x18], dl
je 0x573953
mov eax, ecx
cmp dword [eax + 0x20], 0
jne 0x573943
mov ecx, dword [eax + 0x20]
mov dword [ebp + 0x20], ecx
mov dword [eax + 0x20], ebp
mov dword [esp + 0x3c], ebp
jmp 0x5736d4
mov edx, dword [ecx + 0x10]
mov dword [ebp + 0x20], edx
mov dword [ecx + 0x10], ebp
mov dword [esp + 0x3c], ebp
jmp 0x5736d4