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

Disassembly:
sub esp, 0x40
push ebx
mov ebx, eax
mov eax, dword [esp + 0x48]
mov eax, dword [eax]
push ebp
xor ebp, ebp
cmp byte [eax + 0x1e], 0
push esi
push edi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], ebp
jne 0x47cc48
mov ecx, dword [esp + 0x54]
cmp byte [ecx + 0x210], 0
jne 0x47cc48
mov esi, eax
cmp byte [esi + 0x7c], 0
mov edi, ecx
jne 0x47c6a5
lea edx, [edi + 8]
push edx
call fcn.0048b830
add esp, 4
cmp eax, ebp
je 0x47c6a5
inc dword [edi + 0x40]
mov dword [edi + 4], eax
jmp 0x47cc48
cmp dword [esp + 0x5c], ebp
je 0x47c7c1
mov edx, dword [esp + 0x58]
push edi
lea ecx, [esp + 0x24]
mov eax, ebx
call fcn.0047a120
add esp, 4
cmp eax, ebp
mov dword [esp + 0x18], eax
jl 0x47cc48
mov edi, dword [esp + 0x5c]
mov ebp, esi
cmp byte [ebp + 0x7c], 0
mov esi, dword [esp + 0x54]
jne 0x47c706
push esi
mov eax, edi
call fcn.0047eaf0
add esp, 4
cmp dword [ebx + 4], 0
jne 0x47c706
test eax, eax
je 0x47c706
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x44]
cmp edx, dword [ecx + 0x1c]
jne 0x47c706
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
push 0x53f080
lea ecx, [esp + 0x48]
call fcn.00478cb0
add esp, 8
test eax, eax
je 0x47c72e
push edi
push ecx
call fcn.00478ce0
add esp, 8
mov edx, dword [edi + 0xc]
mov ebx, dword [edi + 8]
push edx
push 0
mov eax, esi
call fcn.00479930
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x47cc48
cmp byte [ebp + 0x1e], 0
jne 0x47cc48
mov edi, eax
mov eax, dword [esp + 0x18]
mov ebx, dword [ebp + 8]
mov esi, dword [edi]
shl eax, 4
push 7
add ebx, eax
push 0x53f088
push esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ebx
call sym.ShuamePacket.exe_sqlite3_strnicmp
add esp, 0xc
test eax, eax
jne 0x47c7ee
mov eax, 9
mov ecx, str.altertab_
lea edx, [esi + 7]
mov ebp, dword [edx]
cmp ebp, dword [ecx]
jne 0x47c7aa
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x47c790
mov al, byte [ecx]
cmp al, byte [edx]
je 0x47c7ea
mov edi, dword [esp + 0x54]
push esi
push str.table__s_may_not_be_indexed
call fcn.0044c320
add esp, 8
jmp 0x47cc48
mov edi, dword [edi + 0x1fc]
mov dword [esp + 0x14], edi
cmp edi, ebp
je 0x47cc48
mov ebp, dword [esp + 0x10]
mov esi, dword [edi + 0x44]
mov ecx, ebp
call fcn.0048bb40
mov dword [esp + 0x18], eax
jmp 0x47c759
mov ebp, dword [esp + 0x10]
cmp dword [edi + 0x1c], 0
je 0x47c80a
mov edi, dword [esp + 0x54]
push str.views_may_not_be_indexed
call fcn.0044c320
add esp, 4
jmp 0x47cc48
test byte [edi + 0x22], 0x10
je 0x47c826
mov edi, dword [esp + 0x54]
push str.virtual_tables_may_not_be_indexed
call fcn.0044c320
add esp, 4
jmp 0x47cc48
mov eax, dword [esp + 0x20]
test eax, eax
je 0x47c8cf
push ebp
call fcn.00479f70
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x47cc48
mov esi, eax
mov eax, dword [esp + 0x54]
call fcn.0047a1b0
test eax, eax
jne 0x47cc48
mov edi, dword [esp + 0x10]
cmp byte [edi + 0x7c], al
jne 0x47c889
push eax
push esi
push edi
call fcn.00479830
add esp, 0xc
test eax, eax
je 0x47c889
mov edi, dword [esp + 0x54]
push esi
push str.there_is_already_a_table_named__s
call fcn.0044c320
add esp, 8
jmp 0x47cc48
mov ecx, dword [ebx]
push ecx
push esi
mov ecx, edi
call fcn.004799c0
add esp, 8
test eax, eax
je 0x47c905
cmp dword [esp + 0x74], 0
jne 0x47c8b9
mov edi, dword [esp + 0x54]
push esi
push str.index__s_already_exists
call fcn.0044c320
add esp, 8
jmp 0x47cc48
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x54]
push edx
call fcn.0047db80
add esp, 4
jmp 0x47cc48
mov eax, dword [edi + 0x10]
mov ecx, 1
test eax, eax
je 0x47c8e8
jmp 0x47c8e0
mov eax, dword [eax + 0x20]
inc ecx
test eax, eax
jne 0x47c8e0
push ecx
push esi
push str.sqlite_autoindex__s__d
mov esi, ebp
call fcn.0044b800
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
je 0x47cc48
mov esi, dword [ebx]
mov ebp, 1
mov eax, 0x53f14c
cmp dword [esp + 0x18], ebp
je 0x47c91c
mov eax, 0x53f160
push esi
push 0
push eax
mov eax, dword [esp + 0x60]
push 0x12
call fcn.004791b0
add esp, 0x10
test eax, eax
jne 0x47cc48
mov eax, ebp
cmp dword [esp + 0x18], ebp
jne 0x47c943
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 + 0x64]
call fcn.004791b0
add esp, 0x10
test eax, eax
jne 0x47cc48
mov edi, dword [esp + 0x60]
test edi, edi
jne 0x47c9c6
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 + 0x2c], ecx
call fcn.0044c290
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x54]
push edi
xor ecx, ecx
call fcn.00471f80
add esp, 4
mov dword [esp + 0x60], eax
test eax, eax
je 0x47cc48
mov ecx, dword [esp + 0x54]
push edi
mov edi, eax
push ecx
lea edx, [esp + 0x34]
mov ecx, edi
call fcn.00472050
mov edx, dword [edi + 0xc]
mov al, byte [esp + 0x78]
add esp, 8
mov byte [edx + 0xc], al
mov esi, dword [edi]
test esi, esi
jle 0x47c9f8
mov edi, dword [edi + 0xc]
mov ebx, dword [esp + 0x28]
mov edx, esi
mov eax, dword [edi]
test eax, eax
je 0x47c9ed
mov eax, dword [eax + 0x14]
test eax, eax
je 0x47c9ed
mov ecx, dword [eax]
call fcn.0044c290
lea ebx, [ebx + eax + 1]
add edi, 0x14
sub edx, ebp
jne 0x47c9d5
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x1c]
call fcn.0044c290
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.0044a590
mov ebp, eax
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x1e], 0
jne 0x47cc2c
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]
inc ebx
push ebx
push edx
push eax
mov dword [ebp], eax
mov dword [esp + 0x38], ecx
call fcn.004f1f90
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x6c]
mov dword [ebp + 0x10], eax
mov edx, dword [ecx]
mov al, byte [esp + 0x70]
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 + 0x34]
mov dword [ebp + 0x24], edx
mov ecx, dword [eax + 0xc]
cmp byte [ecx + 0x4c], 4
mov eax, dword [esp + 0x60]
mov edx, dword [eax + 0xc]
sbb ebx, ebx
neg ebx
xor edi, edi
dec ebx
cmp dword [eax], edi
mov dword [esp + 0x28], edx
jle 0x47cbbe
lea ebx, [ebx]
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
mov dword [esp + 0x34], 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 0x47cb06
lea ecx, [ecx]
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
mov ecx, dword [esp + 0x34]
call fcn.0044c420
test eax, eax
je 0x47cb02
mov ecx, dword [esp + 0x14]
add dword [esp + 0x24], 0x18
inc esi
cmp esi, dword [ecx + 8]
jl 0x47cae0
mov ecx, dword [esp + 0x14]
cmp esi, dword [ecx + 8]
jge 0x47cc0b
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x28]
mov dword [edx + edi*4], esi
mov eax, dword [eax]
test eax, eax
je 0x47cb4f
mov eax, dword [eax + 0x14]
test eax, eax
je 0x47cb4f
mov ecx, dword [eax]
call fcn.0044c290
mov esi, eax
inc esi
push esi
push ecx
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004f1f90
mov eax, dword [esp + 0x38]
add esp, 0xc
mov dword [esp + 0x24], eax
add eax, esi
mov dword [esp + 0x2c], eax
jmp 0x47cb6e
mov eax, dword [ecx + 0xc]
lea edx, [esi + esi*2]
mov eax, dword [eax + edx*8 + 0x10]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x47cb6e
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 0x47cb91
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x24]
push edx
call fcn.0047acd0
add esp, 4
test eax, eax
je 0x47cc2c
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 + 0x60]
inc edi
add eax, 0x14
cmp edi, dword [edx]
mov dword [esp + 0x28], eax
jl 0x47cac0
mov edx, ebp
call fcn.0047cf10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x54]
cmp eax, dword [ecx + 0x1fc]
jne 0x47ccbf
mov ebx, dword [eax + 0x10]
test ebx, ebx
je 0x47ccbf
mov eax, dword [ebx + 4]
cmp eax, dword [ebp + 4]
jne 0x47ccb4
xor esi, esi
test eax, eax
jle 0x47ccaf
mov edi, dword [ebp + 8]
mov ecx, dword [ebx + 8]
sub ecx, edi
mov dword [esp + 0x34], ecx
jmp 0x47cc86
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov edi, dword [esp + 0x54]
push eax
push edx
push str.table__s_has_no_column_named__s
call fcn.0044c320
add esp, 0xc
mov byte [edi + 0x12], 1
test ebp, ebp
je 0x47cc48
mov ecx, dword [ebp + 0x1c]
mov esi, dword [esp + 0x10]
push ecx
push esi
call fcn.0044a370
push ebp
push esi
call fcn.0044a370
add esp, 0x10
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x10]
push edx
mov edi, esi
call fcn.00472150
mov eax, dword [esp + 0x60]
add esp, 4
push eax
call fcn.0047d570
mov ecx, dword [esp + 0x20]
add esp, 4
push ecx
push esi
call fcn.0044a370
mov eax, dword [esp + 0x44]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov ecx, dword [esp + 0x34]
lea eax, [edi + esi*4]
mov edx, dword [ecx + eax]
cmp edx, dword [eax]
jne 0x47ccaf
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 0x47cca9
call fcn.0044c420
test eax, eax
jne 0x47ccaf
inc esi
cmp esi, dword [ebx + 4]
jl 0x47cc82
cmp esi, dword [ebx + 4]
je 0x47ccf2
mov ebx, dword [ebx + 0x20]
test ebx, ebx
jne 0x47cbe4
mov esi, dword [esp + 0x10]
cmp byte [esi + 0x7c], 0
je 0x47cd50
mov ecx, dword [ebp]
push ebp
call fcn.0044c290
push ecx
mov ecx, dword [ebp + 0x24]
add ecx, 0x18
call fcn.0044d5e0
add esp, 8
test eax, eax
je 0x47cd31
mov byte [esi + 0x1e], 1
jmp 0x47cc2c
mov al, byte [ebx + 0x18]
mov cl, byte [ebp + 0x18]
cmp al, cl
je 0x47cc2c
cmp al, 0x63
je 0x47cd1c
cmp cl, 0x63
je 0x47cd1c
mov edi, dword [esp + 0x54]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
call fcn.0044c320
add esp, 8
cmp byte [ebx + 0x18], 0x63
jne 0x47cc2c
mov al, byte [ebp + 0x18]
mov byte [ebx + 0x18], al
jmp 0x47cc2c
or dword [esi + 0xc], 0x200
cmp dword [esp + 0x5c], 0
je 0x47ce9e
mov ecx, esi
mov edx, dword [ecx + 0x78]
mov dword [ebp + 0x14], edx
jmp 0x47ce9e
mov edi, dword [esp + 0x54]
inc dword [edi + 0x48]
mov eax, dword [edi + 0x48]
mov dword [esp + 0x2c], eax
call fcn.0048e500
mov esi, eax
mov dword [esp + 0x34], esi
test esi, esi
je 0x47cc2c
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x54]
push 1
call fcn.0047dcb0
mov ebx, dword [esi + 0x1c]
add esp, 4
cmp dword [esi + 0x20], ebx
jg 0x47cd96
mov edi, esi
call fcn.00464340
test eax, eax
jne 0x47cdc2
mov edx, dword [esi + 4]
inc dword [esi + 0x1c]
lea ecx, [ebx + ebx*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x61
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
cmp dword [esp + 0x68], 0
je 0x47ce01
cmp dword [esp + 0x64], 0
mov eax, 0x5466f0
je 0x47cdda
mov eax, str._UNIQUE
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov esi, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x70]
mov edx, dword [edx]
sub edx, dword [ecx]
inc edx
push edx
push eax
push str.CREATE_s_INDEX__.s
call fcn.0044b800
add esp, 0x10
mov esi, eax
jmp 0x47ce03
xor esi, esi
cmp dword [esp + 0x18], 1
mov eax, 0x53f1d8
je 0x47ce14
mov eax, 0x53f1ec
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x54]
push esi
push ecx
mov ecx, dword [edx]
mov edx, dword [ebp]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
mov eax, dword [edi + 8]
mov edx, dword [ecx + eax]
push edx
push str.INSERT_INTO__Q._s_VALUES_index__Q__Q__d__Q__
call fcn.00479770
add esp, 0x1c
push esi
push edi
call fcn.0044a370
add esp, 8
cmp dword [esp + 0x5c], 0
je 0x47ce9e
mov eax, dword [esp + 0x2c]
push eax
push ebp
call fcn.0047c290
mov ecx, dword [esp + 0x20]
push ecx
mov esi, ebx
call fcn.0047ad50
mov edx, dword [ebp]
add esp, 0xc
push edx
push str.name_q_AND_typeindex
mov esi, edi
call fcn.0044b800
mov esi, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.00464510
push 0
push 0x7a
mov eax, esi
call fcn.00464470
add esp, 0x18
mov ecx, dword [esp + 0x10]
cmp byte [ecx + 0x7c], 0
jne 0x47ceb3
cmp dword [esp + 0x5c], 0
jne 0x47cc2c
mov ecx, dword [esp + 0x14]
mov edx, 5
cmp dword [esp + 0x64], edx
jne 0x47cef6
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x47cef6
cmp byte [eax + 0x18], dl
je 0x47cef6
cmp dword [eax + 0x20], 0
je 0x47cee4
mov ecx, dword [eax + 0x20]
cmp byte [ecx + 0x18], dl
je 0x47cee4
mov eax, ecx
cmp dword [eax + 0x20], 0
jne 0x47ced4
mov edx, dword [eax + 0x20]
mov dword [ebp + 0x20], edx
mov dword [eax + 0x20], ebp
mov dword [esp + 0x3c], ebp
jmp 0x47cc48
mov eax, dword [ecx + 0x10]
mov dword [ebp + 0x20], eax
mov dword [ecx + 0x10], ebp
mov dword [esp + 0x3c], ebp
jmp 0x47cc48