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

Disassembly:
sub esp, 0x64
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov esi, dword [esp + 0x70]
mov edx, dword [esi + 0x40]
mov eax, dword [esi]
xor ecx, ecx
cmp edx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ecx
jne 0x4316b4
mov dl, byte [eax + 0x1e]
test dl, dl
jne 0x4316b4
mov dl, byte [esi + 0x198]
test dl, dl
jne 0x4316b4
cmp ebp, ecx
push ebx
push edi
je 0x431127
mov ebx, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
lea eax, [esp + 0x1c]
push eax
push ebx
push ecx
push esi
call fcn.0042eca0
mov edi, eax
add esp, 0x10
test edi, edi
mov dword [esp + 0x20], edi
jl 0x4316b2
mov edx, dword [esp + 0x10]
mov al, byte [edx + 0x80]
test al, al
jne 0x4310d9
push ebp
push esi
call fcn.00446710
add esp, 8
test ebx, ebx
je 0x4310d9
test dword [ebx + 4], 0xfffffffe
jne 0x4310d9
test eax, eax
je 0x4310d9
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 8]
mov eax, dword [eax + 0x4c]
cmp eax, dword [edx + 0x2c]
jne 0x4310d9
mov edi, 1
mov dword [esp + 0x20], edi
mov ecx, dword [esp + 0x1c]
push ecx
push str.index
push edi
lea edx, [esp + 0x50]
push esi
push edx
call fcn.00447800
add esp, 0x14
test eax, eax
je 0x431104
lea eax, [esp + 0x44]
push ebp
push eax
call fcn.004478d0
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push 0
push esi
call fcn.0042e630
mov ebx, eax
add esp, 0x10
test ebx, ebx
mov dword [esp + 0x18], ebx
je 0x4316b2
jmp 0x43114c
mov ebx, dword [esi + 0x180]
cmp ebx, ecx
mov dword [esp + 0x18], ebx
je 0x4316b2
mov ecx, dword [ebx + 0x4c]
push ecx
push eax
call fcn.0041b460
mov edi, eax
add esp, 8
mov dword [esp + 0x20], edi
mov edx, dword [esp + 0x10]
mov ebp, dword [edx + 8]
lea eax, [edi + edi*2]
shl eax, 3
add ebp, eax
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x40]
test eax, eax
mov dword [esp + 0x34], ebp
jne 0x4316b2
mov al, byte [ebx + 0x34]
test al, al
je 0x43118b
mov eax, dword [ebx]
push eax
push str.table__s_may_not_be_indexed
push esi
call fcn.0041be00
add esp, 0xc
jmp 0x4316b2
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x4311a2
push str.views_may_not_be_indexed
push esi
call fcn.0041be00
jmp 0x4316af
mov al, byte [ebx + 0x39]
test al, al
je 0x4311b9
push str.virtual_tables_may_not_be_indexed
push esi
call fcn.0041be00
jmp 0x4316af
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x431298
mov edx, dword [esp + 0x10]
mov ecx, eax
push ecx
push edx
call fcn.0042eb60
push esi
mov dword [esp + 0x20], eax
call fcn.0041b300
add esp, 0xc
test eax, eax
jne 0x4316b2
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4316b2
push eax
push esi
call fcn.0042ed00
add esp, 8
test eax, eax
jne 0x4316b2
mov eax, dword [esp + 0x10]
mov cl, byte [eax + 0x80]
test cl, cl
jne 0x431253
push esi
call fcn.0041b300
add esp, 4
test eax, eax
jne 0x4316b2
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call fcn.0042e590
add esp, 0xc
test eax, eax
je 0x431253
mov eax, dword [esp + 0x14]
push eax
push str.there_is_already_a_table_named__s
push esi
call fcn.0041be00
add esp, 0xc
jmp 0x4316b2
mov ecx, dword [ebp]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
call fcn.0042e6b0
add esp, 0xc
test eax, eax
je 0x4312f7
mov eax, dword [esp + 0x9c]
test eax, eax
jne 0x4316b2
mov ecx, dword [esp + 0x14]
push ecx
push str.index__s_already_exists
push esi
call fcn.0041be00
add esp, 0xc
jmp 0x4316b2
mov eax, dword [ebx + 0x10]
test eax, eax
mov ecx, 1
je 0x4312ac
mov eax, dword [eax + 0x20]
inc ecx
test eax, eax
jne 0x4312a4
push ecx
push 0x45b888
lea edx, [esp + 0x5c]
push edx
push 0x1e
call fcn.00417c90
push 0
lea eax, [esp + 0x68]
push eax
mov dword [esp + 0x2c], 0
mov ecx, dword [ebx]
push ecx
lea edx, [esp + 0x30]
push str.sqlite_autoindex_
push edx
call fcn.00420730
mov eax, dword [esp + 0x38]
add esp, 0x24
test eax, eax
jne 0x4312f7
mov eax, dword [esp + 0x10]
mov byte [eax + 0x1e], 1
jmp 0x4316b2
cmp edi, 1
mov ebp, dword [ebp]
mov eax, str.sqlite_temp_master
je 0x431309
mov eax, str.sqlite_master
push ebp
push 0
push eax
push 0x12
push esi
call fcn.0043d690
add esp, 0x14
test eax, eax
jne 0x4316b2
mov eax, 1
cmp edi, eax
jne 0x43132e
mov eax, 3
mov ecx, dword [ebx]
mov edx, dword [esp + 0x14]
push ebp
push ecx
push edx
push eax
push esi
call fcn.0043d690
add esp, 0x14
test eax, eax
jne 0x4316b2
mov eax, dword [esp + 0x88]
test eax, eax
jne 0x4313af
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
lea eax, [eax + eax*4]
mov eax, dword [ecx + eax*4 - 0x14]
mov dword [esp + 0x3c], eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x431368
sub eax, edx
lea edx, [eax + eax]
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x3c]
push ecx
push 0
and eax, 1
or edx, eax
push 0
push esi
mov dword [esp + 0x50], edx
call fcn.004439a0
add esp, 0x10
test eax, eax
mov dword [esp + 0x88], eax
je 0x4316b2
mov edx, dword [eax + 0xc]
mov cl, byte [esp + 0x98]
mov byte [edx + 8], cl
mov esi, dword [eax]
test esi, esi
mov edx, dword [esp + 0x24]
jle 0x4313e7
mov ebx, dword [eax + 0xc]
mov ebp, esi
mov edi, edi
mov eax, dword [ebx]
test eax, eax
je 0x4313dd
mov eax, dword [eax + 4]
mov eax, dword [eax]
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4313d0
sub eax, edi
lea edx, [edx + eax + 1]
add ebx, 0xc
dec ebp
jne 0x4313c0
mov dword [esp + 0x24], edx
mov ebx, dword [esp + 0x14]
lea ecx, [ebx + 1]
mov edi, edi
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4313f0
mov edi, dword [esp + 0x10]
sub ebx, ecx
mov ecx, esi
imul ecx, ecx, 0xd
add ecx, ebx
lea edx, [ecx + edx + 0x35]
push edx
push edi
call fcn.00420850
mov ebp, eax
mov al, byte [edi + 0x1e]
add esp, 8
test al, al
jne 0x43169c
lea eax, [ebp + 0x30]
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
lea edi, [eax + esi]
mov dword [ebp], edi
mov esi, dword [esp + 0x14]
lea ecx, [ebx + 1]
mov edx, ecx
shr ecx, 2
lea eax, [edi + ebx + 1]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dl, byte [esp + 0x8c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 0x88]
mov ecx, dword [eax]
mov dword [ebp + 4], ecx
mov ecx, dword [esp + 0x1c]
test ecx, ecx
mov byte [ebp + 0x18], dl
mov edx, dword [esp + 0x10]
sete cl
mov byte [ebp + 0x19], cl
mov ecx, dword [edx + 8]
mov edx, dword [esp + 0x38]
mov ecx, dword [edx + ecx + 0x14]
mov edx, dword [esp + 0x34]
mov dword [ebp + 0x24], ecx
mov ecx, dword [edx + 0x14]
mov edx, dword [eax]
xor ebx, ebx
mov bl, byte [ecx + 0x58]
mov ecx, dword [eax + 0xc]
cmp bl, 4
mov dword [esp + 0x30], ecx
sbb ebx, ebx
neg ebx
dec ebx
xor edi, edi
test edx, edx
jle 0x4315d4
lea ecx, [ecx]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 4]
xor esi, esi
test ecx, ecx
mov dword [esp + 0x34], edx
jle 0x43150f
jmp 0x4314e0
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
mov ecx, dword [esp + 0x34]
push eax
push ecx
call fcn.0041bf30
add esp, 8
test eax, eax
je 0x43150f
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 4]
inc esi
add ecx, 0x14
cmp esi, eax
mov dword [esp + 0x28], ecx
jl 0x4314e0
mov ecx, dword [esp + 0x18]
cmp esi, dword [ecx + 4]
jge 0x4316e1
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x30]
mov dword [eax + edi*4], esi
mov eax, dword [edx]
test eax, eax
je 0x431569
mov eax, dword [eax + 4]
mov ecx, dword [eax]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
push ecx
push 0x459cd8
push esi
push edx
call fcn.00417c90
mov edx, esi
mov eax, edx
lea ecx, [eax + 1]
add esp, 0x10
mov dword [esp + 0x34], ecx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x431554
sub eax, dword [esp + 0x34]
lea edx, [edx + eax + 1]
mov dword [esp + 0x2c], edx
jmp 0x431580
mov ecx, dword [ecx + 8]
lea eax, [esi + esi*4]
mov esi, dword [ecx + eax*4 + 0xc]
test esi, esi
jne 0x431580
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x2c]
mov esi, dword [eax]
mov ecx, dword [esp + 0x10]
mov al, byte [ecx + 0x80]
test al, al
jne 0x4315a6
mov edx, dword [esp + 0x78]
push 0xffffffffffffffff
push esi
push edx
call fcn.0042f0e0
add esp, 0xc
test eax, eax
je 0x43169c
mov eax, dword [ebp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [eax + edi*4], esi
mov dl, byte [ecx + 8]
mov eax, dword [ebp + 0x28]
and dl, bl
mov byte [edi + eax], dl
mov edx, dword [esp + 0x88]
mov eax, dword [edx]
inc edi
add ecx, 0xc
cmp edi, eax
mov dword [esp + 0x30], ecx
jl 0x4314c0
push ebp
call fcn.0042fe40
mov ebx, dword [esp + 0x7c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x180]
add esp, 4
cmp eax, ecx
jne 0x43165a
mov edi, dword [eax + 0x10]
test edi, edi
je 0x43165a
mov eax, dword [edi + 4]
cmp eax, dword [ebp + 4]
jne 0x431653
xor esi, esi
test eax, eax
jle 0x43164a
mov ebx, dword [edi + 8]
mov edx, dword [ebp + 8]
mov ebx, dword [ebx + esi*4]
cmp ebx, dword [edx + esi*4]
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebp + 0x2c]
mov eax, dword [eax + esi*4]
mov ecx, dword [ecx + esi*4]
jne 0x431646
mov edx, dword [edi + 0x28]
mov ebx, dword [ebp + 0x28]
mov dl, byte [esi + edx]
cmp dl, byte [esi + ebx]
jne 0x431646
cmp eax, ecx
je 0x43163e
push ecx
push eax
call fcn.0041bf30
add esp, 8
test eax, eax
jne 0x431646
mov eax, dword [edi + 4]
inc esi
cmp esi, eax
jl 0x431604
mov ebx, dword [esp + 0x78]
cmp esi, dword [edi + 4]
je 0x4316fd
mov edi, dword [edi + 0x20]
test edi, edi
jne 0x4315f6
mov esi, dword [esp + 0x10]
mov al, byte [esi + 0x80]
test al, al
je 0x431758
mov edx, dword [ebp]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x431674
mov ecx, dword [ebp + 0x24]
sub eax, edi
push ebp
inc eax
push eax
push edx
add ecx, 0x18
push ecx
call fcn.00425320
add esp, 0x10
test eax, eax
je 0x431735
mov byte [esi + 0x1e], 1
test ebp, ebp
je 0x4316b2
mov ecx, dword [ebp + 0x1c]
push ecx
call fcn.00417f90
push ebp
call fcn.00417f90
add esp, 8
pop edi
pop ebx
mov edx, dword [esp + 0x80]
push edx
call fcn.00442b00
mov eax, dword [esp + 0x80]
push eax
call fcn.00430020
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00417f90
add esp, 0xc
pop esi
pop ebp
add esp, 0x64
ret
mov eax, dword [esp + 0x34]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x78]
push eax
push ecx
push str.table__s_has_no_column_named__s
push edx
call fcn.0041be00
add esp, 0x10
jmp 0x43169c
mov al, byte [edi + 0x18]
mov cl, byte [ebp + 0x18]
cmp al, cl
je 0x43169c
cmp al, 0x63
je 0x431720
cmp cl, 0x63
je 0x431720
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
push ebx
call fcn.0041be00
add esp, 0xc
cmp byte [edi + 0x18], 0x63
jne 0x43169c
mov al, byte [ebp + 0x18]
mov byte [edi + 0x18], al
jmp 0x43169c
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x84]
or ecx, 0x10
test edi, edi
mov dword [esi + 0xc], ecx
je 0x431888
mov edx, dword [esi + 0x7c]
mov dword [ebp + 0x14], edx
jmp 0x431888
mov esi, dword [ebx + 0x48]
inc esi
push ebx
mov dword [ebx + 0x48], esi
call fcn.0043ff10
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x78], edi
je 0x43169c
mov eax, dword [esp + 0x20]
push eax
push 1
push ebx
call fcn.00430380
mov ecx, dword [esp + 0x2c]
push esi
push ecx
push 0x21
push edi
call fcn.0041cf70
mov eax, dword [esp + 0xac]
add esp, 0x1c
test eax, eax
je 0x4317e3
mov edx, dword [esp + 0x94]
test edx, edx
je 0x4317e3
mov eax, dword [esp + 0x8c]
test eax, eax
mov ecx, 0x457f19
je 0x4317bf
mov ecx, str._UNIQUE
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov edx, dword [edx]
push eax
sub edx, eax
mov eax, dword [esp + 0x14]
inc edx
push edx
push ecx
push str.CREATE_s_INDEX__.s
push eax
call fcn.00417be0
add esp, 0x14
mov edi, eax
jmp 0x4317e5
xor edi, edi
cmp dword [esp + 0x20], 1
mov eax, str.sqlite_temp_master
je 0x4317f6
mov eax, str.sqlite_master
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp]
push edi
push esi
push edx
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x48]
push eax
mov eax, dword [edx + 8]
mov edx, dword [ecx + eax]
push edx
push str.INSERT_INTO__Q._s_VALUES_index__Q__Q__d__Q__
push ebx
call fcn.0042e4f0
push edi
call fcn.00417f90
mov edi, dword [esp + 0xa8]
add esp, 0x24
test edi, edi
je 0x431884
push esi
mov eax, ebp
mov ecx, ebx
call fcn.00430e50
mov esi, dword [esp + 0x24]
push esi
push ebx
call fcn.0042f170
mov eax, dword [ebp]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 0xffffffffffffffff
push eax
push str.name_q
push ecx
call fcn.00417be0
add esp, 0xc
push eax
push 0
push 0
push esi
mov esi, dword [esp + 0x8c]
push 0x1e
push esi
call fcn.0041f380
push 0
push 0xe
push esi
call fcn.0041cf50
add esp, 0x28
mov esi, dword [esp + 0x10]
mov al, byte [esi + 0x80]
test al, al
jne 0x43189a
test edi, edi
jne 0x43169c
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x18]
mov edx, 5
cmp eax, edx
jne 0x4318e0
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x4318e0
cmp byte [eax + 0x18], dl
je 0x4318e0
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4318d2
mov ecx, dword [eax + 0x20]
cmp byte [ecx + 0x18], dl
je 0x4318d2
mov eax, ecx
mov ecx, dword [eax + 0x20]
test ecx, ecx
jne 0x4318c1
mov edx, dword [eax + 0x20]
mov dword [ebp + 0x20], edx
mov dword [eax + 0x20], ebp
jmp 0x4316b2
mov eax, dword [ecx + 0x10]
mov dword [ebp + 0x20], eax
mov dword [ecx + 0x10], ebp
jmp 0x4316b2