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

Disassembly:
sub esp, 0x54
push ebx
push ebp
xor eax, eax
push esi
push edi
mov edi, dword [esp + 0x68]
mov ebx, dword [edi]
cmp byte [ebx + 0x41], al
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
jne 0x442ef0
cmp dword [edi + 0x40], eax
jg 0x442ef0
cmp byte [ebx + 0x91], al
jne 0x442992
lea eax, [edi + 4]
push eax
push ebx
call fcn.00456950
add esp, 8
test eax, eax
je 0x442992
add dword [edi + 0x40], 1
mov dword [edi + 0xc], eax
jmp 0x442ef4
cmp dword [esp + 0x74], 0
je 0x442a37
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
lea edx, [esp + 0x34]
mov ecx, edi
call fcn.004290b0
test eax, eax
mov dword [esp + 0x20], eax
jl 0x442ef0
mov ecx, dword [esp + 0x34]
push ecx
mov edx, eax
mov ecx, edi
lea eax, [esp + 0x4c]
call fcn.0040af40
mov esi, dword [esp + 0x78]
add esp, 4
mov edx, eax
push esi
push edx
call fcn.004291a0
add esi, 8
push esi
push 0
mov eax, edi
call fcn.0042ba40
mov ebp, eax
add esp, 0x10
test ebp, ebp
mov dword [esp + 0x14], ebp
je 0x442ef0
cmp dword [esp + 0x20], 1
jne 0x442a24
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 0x1c]
cmp ecx, dword [ebp + 0x2c]
je 0x442a24
mov edx, dword [ebp]
push edx
push str.cannot_create_a_TEMP_index_on_non_TEMP_table___s_
call fcn.004274b0
add esp, 8
jmp 0x442ef4
test byte [ebp + 0x26], 0x20
je 0x442a57
mov eax, ebp
call fcn.0040aef0
mov dword [esp + 0x30], eax
jmp 0x442a57
mov ebp, dword [edi + 0x1cc]
test ebp, ebp
mov dword [esp + 0x14], ebp
je 0x442ef0
mov esi, dword [ebp + 0x2c]
mov ecx, ebx
call fcn.0040abd0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx + 0x10]
mov esi, dword [ebp]
shl eax, 4
add ecx, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], ecx
mov ecx, 7
mov eax, str.sqlite_
mov edx, esi
call fcn.0040e0e0
test eax, eax
jne 0x442ab2
cmp byte [ebx + 0x91], al
jne 0x442ab2
lea ecx, [eax + 9]
lea edx, [esi + 7]
mov eax, str.altertab_
call fcn.0040e0e0
test eax, eax
je 0x442ab2
push esi
push str.table__s_may_not_be_indexed
call fcn.004274b0
add esp, 8
jmp 0x442ef4
mov eax, dword [esp + 0x34]
test eax, eax
je 0x442b4d
call fcn.0041a4c0
test eax, eax
mov dword [esp + 0x1c], eax
je 0x442ef4
mov esi, eax
mov eax, edi
call fcn.00429060
test eax, eax
jne 0x442ef4
cmp byte [ebx + 0x91], al
jne 0x442b0a
push eax
push esi
push ebx
call fcn.00414e90
add esp, 0xc
test eax, eax
je 0x442b0a
push esi
push str.there_is_already_a_table_named__s
call fcn.004274b0
add esp, 8
jmp 0x442ef4
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
push ecx
push esi
mov eax, ebx
call fcn.00414e00
add esp, 8
test eax, eax
je 0x442b87
cmp dword [esp + 0x8c], 0
jne 0x442b3d
push esi
push str.index__s_already_exists
call fcn.004274b0
add esp, 8
jmp 0x442ef4
mov ecx, dword [esp + 0x20]
mov edx, edi
call fcn.004408c0
jmp 0x442ef4
mov eax, dword [ebp + 8]
test eax, eax
mov ecx, 1
je 0x442b6a
lea esp, [esp]
mov eax, dword [eax + 0x14]
add ecx, 1
test eax, eax
jne 0x442b60
push ecx
push esi
push str.sqlite_autoindex__s__d
mov esi, ebx
call fcn.004275e0
add esp, 0xc
test eax, eax
mov dword [esp + 0x1c], eax
je 0x442ef4
mov ecx, dword [esp + 0x78]
test ecx, ecx
jne 0x442bd3
push ecx
push ecx
mov eax, edi
call fcn.0041c8c0
add esp, 8
test eax, eax
mov dword [esp + 0x78], eax
je 0x442ef4
movsx eax, word [ebp + 0x1e]
lea edx, [eax + eax*2]
mov eax, dword [ebp + 4]
mov ebx, dword [eax + edx*8 - 0x18]
mov eax, dword [edi]
call fcn.00419f20
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 4]
mov dl, byte [esp + 0x88]
mov byte [eax + 0xc], dl
mov eax, dword [ecx]
test eax, eax
jle 0x442c00
mov esi, dword [ecx + 4]
mov ebx, dword [esp + 0x2c]
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x442bf4
mov eax, dword [eax + 8]
call fcn.0040e260
lea ebx, [ebx + eax + 1]
add esi, 0x18
sub edi, 1
jne 0x442be2
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x442c0c
xor esi, esi
jmp 0x442c22
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x442c10
sub eax, edx
and eax, 0x3fffffff
mov esi, eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x442c30
movzx eax, word [eax + 0x2e]
jmp 0x442c35
mov eax, 1
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esi + edx + 1]
mov edx, dword [esp + 0x7c]
movzx edx, word [edx]
add dx, ax
push edx
push edi
call fcn.00417f50
add esp, 0xc
cmp byte [edi + 0x41], 0
mov ebp, eax
jne 0x442ee1
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov dword [ebp], eax
mov edx, dword [ebp]
lea eax, [eax + esi + 1]
add esi, 1
push esi
push ecx
push edx
mov dword [esp + 0x34], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x88]
xor ecx, ecx
add esp, 0xc
test eax, eax
setne cl
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x78]
xor edx, edx
mov byte [ebp + 0x32], al
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0xc], esi
and ecx, 1
add ecx, ecx
add ecx, ecx
add ecx, ecx
cmp dword [esp + 0x34], edx
sete dl
and eax, 0xfffffff4
and edx, 3
or ecx, edx
or ecx, eax
mov eax, dword [esp + 0x40]
mov dword [ebp + 0x34], ecx
mov ecx, edi
mov edx, dword [ecx + 0x10]
mov ecx, dword [eax + edx + 0xc]
mov edi, dword [esp + 0x84]
test edi, edi
mov dword [ebp + 0x18], ecx
mov dx, word [ebx]
mov word [ebp + 0x2e], dx
je 0x442d06
mov eax, dword [esp + 0x68]
push edi
push eax
call fcn.0043fe00
add esp, 8
mov dword [ebp + 0x24], edi
mov dword [esp + 0x84], 0
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + 0xc]
cmp byte [edx + 0x4c], 4
sbb eax, eax
neg eax
sub eax, 1
xor edi, edi
cmp dword [ebx], edi
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x38], edi
mov dword [esp + 0x2c], eax
jle 0x442e4b
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 4]
movsx eax, word [eax + 0x1e]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x3c], edx
jle 0x442d71
lea ecx, [ecx]
mov eax, dword [esi]
mov ecx, dword [esp + 0x3c]
call fcn.0040e150
test eax, eax
je 0x442d71
mov eax, dword [esp + 0x14]
movsx ecx, word [eax + 0x1e]
add ebx, 1
add esi, 0x18
cmp ebx, ecx
jl 0x442d50
mov ecx, dword [esp + 0x14]
movsx eax, word [ecx + 0x1e]
cmp ebx, eax
jge 0x442ec0
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x2c]
mov word [edx + edi*2], bx
mov eax, dword [eax]
test eax, eax
je 0x442dd2
mov edx, dword [eax + 8]
test edx, edx
jne 0x442d9d
xor eax, eax
jmp 0x442db2
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x442da2
sub eax, esi
and eax, 0x3fffffff
mov esi, dword [esp + 0x28]
add eax, 1
push eax
push edx
push esi
mov dword [esp + 0x48], eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x48]
add esp, 0xc
add dword [esp + 0x28], ecx
jmp 0x442de5
mov eax, dword [ecx + 4]
lea edx, [ebx + ebx*2]
mov esi, dword [eax + edx*8 + 0x10]
test esi, esi
jne 0x442de5
mov esi, str.BINARY
mov ecx, dword [esp + 0x18]
cmp byte [ecx + 0x91], 0
jne 0x442e07
mov edi, dword [esp + 0x68]
call fcn.00428c90
test eax, eax
je 0x442ee1
mov edi, dword [esp + 0x38]
mov edx, dword [ebp + 0x20]
mov eax, dword [esp + 0x2c]
mov dword [edx + edi*4], esi
mov cl, byte [eax + 0xc]
and cl, byte [esp + 0x44]
mov edx, dword [ebp + 0x1c]
mov byte [edi + edx], cl
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
lea eax, [ebx + ebx*2]
cmp byte [edx + eax*8 + 0x14], 0
jne 0x442e33
and dword [ebp + 0x34], 0xfffffff7
mov eax, dword [esp + 0x78]
add dword [esp + 0x2c], 0x18
add edi, 1
cmp edi, dword [eax]
mov dword [esp + 0x38], edi
jl 0x442d31
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x442f63
xor esi, esi
cmp word [ebx + 0x2e], si
jbe 0x442f76
movzx eax, word [ebp + 0x2e]
test eax, eax
mov ecx, dword [ebx + 4]
movsx edx, word [ecx + esi*2]
mov ecx, dword [ebp + 4]
jle 0x442e8e
movsx ebx, word [ecx]
sub eax, 1
add ecx, 2
cmp edx, ebx
je 0x442f54
test eax, eax
jg 0x442e75
mov ebx, dword [esp + 0x30]
mov eax, dword [ebp + 4]
mov word [eax + edi*2], dx
mov edx, dword [ebx + 0x20]
mov ecx, dword [edx + esi*4]
mov eax, dword [ebp + 0x20]
mov dword [eax + edi*4], ecx
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebp + 0x1c]
mov cl, byte [esi + edx]
mov byte [edi + eax], cl
add edi, 1
movzx edx, word [ebx + 0x2e]
add esi, 1
cmp esi, edx
jl 0x442e63
jmp 0x442f76
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
mov edi, dword [esp + 0x68]
push ecx
push eax
push str.table__s_has_no_column_named__s
call fcn.004274b0
add esp, 0xc
mov byte [edi + 0x11], 1
test ebp, ebp
je 0x442ef0
mov eax, dword [esp + 0x18]
mov edi, ebp
call fcn.004181d0
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x84]
push eax
push ebx
call fcn.00416380
mov ecx, dword [esp + 0x80]
push ecx
mov eax, ebx
call fcn.004162b0
mov edx, dword [esp + 0x80]
add esp, 0xc
push edx
mov eax, ebx
call fcn.00417e40
mov esi, dword [esp + 0x20]
add esp, 4
test esi, esi
je 0x44333a
cmp dword [ebx + 0x1d8], 0
je 0x4432d4
mov eax, esi
mov esi, ebx
call fcn.00414ce0
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
add word [ebp + 0x30], 0xffff
mov ebx, dword [esp + 0x30]
jmp 0x442eb0
mov eax, dword [ebp + 4]
mov word [eax + edi*2], 0xffff
mov ecx, dword [ebp + 0x20]
mov dword [ecx + edi*4], str.BINARY
mov esi, ebp
call fcn.0040ad80
mov edx, dword [esp + 0x68]
cmp dword [edx + 0x1cc], 0
jne 0x442f91
mov edi, ebp
call fcn.0040f7b0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x68]
cmp eax, dword [ecx + 0x1cc]
jne 0x443019
mov edx, eax
mov ebx, dword [edx + 8]
test ebx, ebx
je 0x443019
movzx eax, word [ebx + 0x2e]
movzx ecx, word [ebp + 0x2e]
cmp ax, cx
jne 0x443012
movzx eax, ax
xor esi, esi
test eax, eax
mov dword [esp + 0x3c], eax
jle 0x44300c
mov edi, dword [ebp + 4]
mov edx, dword [ebx + 4]
sub edx, edi
mov dword [esp + 0x44], edx
mov ax, word [edx + edi]
cmp ax, word [edi]
jne 0x44300c
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ecx + esi*4]
mov eax, dword [eax + esi*4]
cmp ecx, eax
je 0x442ffe
call fcn.0040e150
test eax, eax
jne 0x44300c
mov edx, dword [esp + 0x44]
movzx ecx, word [ebx + 0x2e]
add esi, 1
add edi, 2
cmp esi, ecx
jl 0x442fd8
cmp esi, dword [esp + 0x3c]
je 0x44304b
mov ebx, dword [ebx + 0x14]
test ebx, ebx
jne 0x442fb2
mov esi, dword [esp + 0x18]
cmp byte [esi + 0x91], 0
je 0x4430a3
mov eax, dword [ebp]
mov ecx, dword [ebp + 0x18]
push eax
add ecx, 0x18
mov eax, ebp
call fcn.00419c70
add esp, 4
test eax, eax
je 0x443086
mov byte [esi + 0x41], 1
jmp 0x442ee1
mov al, byte [ebx + 0x32]
mov cl, byte [ebp + 0x32]
cmp al, cl
je 0x44307d
cmp al, 0xa
je 0x443071
cmp cl, 0xa
je 0x443071
mov edi, dword [esp + 0x68]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
call fcn.004274b0
add esp, 8
cmp byte [ebx + 0x32], 0xa
jne 0x44307d
mov dl, byte [ebp + 0x32]
mov byte [ebx + 0x32], dl
mov dword [esp + 0x24], ebx
jmp 0x442ee1
or dword [esi + 0x18], 2
cmp dword [esp + 0x74], 0
je 0x443267
mov ecx, dword [esi + 0x8c]
mov dword [ebp + 0x28], ecx
jmp 0x443267
mov ebx, dword [esp + 0x68]
cmp dword [ebx + 0x40], 0
jne 0x443267
mov edx, dword [esp + 0x14]
test byte [edx + 0x26], 0x20
je 0x4430c6
cmp dword [esp + 0x74], 0
je 0x443267
add dword [ebx + 0x48], 1
mov esi, dword [ebx + 8]
test esi, esi
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], esi
jne 0x443114
push ebx
call fcn.00418cb0
mov esi, eax
add esp, 4
test esi, esi
mov dword [ebx + 8], eax
mov dword [esp + 0x2c], eax
je 0x4430ff
push 0x9e
call fcn.0041f5d0
add esp, 4
cmp dword [ebx + 0x190], 0
jne 0x44310c
mov byte [ebx + 0x17], 1
test esi, esi
je 0x442ee1
mov edi, dword [esp + 0x20]
push 1
mov ecx, edi
mov eax, ebx
call fcn.00442710
add esp, 4
push 0x9f
call fcn.0041f5d0
mov ecx, dword [esp + 0x34]
add esp, 4
push ecx
push edi
push 0x79
mov dword [ebp + 0x28], eax
call fcn.0041f520
add esp, 0xc
cmp dword [esp + 0x80], 0
je 0x443197
mov eax, dword [ebx + 0x1e4]
add eax, dword [ebx + 0x1e0]
mov ecx, dword [esp + 0x34]
sub eax, dword [ecx]
mov ecx, dword [ecx]
cmp byte [ecx + eax - 1], 0x3b
jne 0x44316e
sub eax, 1
cmp dword [esp + 0x7c], 0
mov edx, 0x47c5a4
je 0x44317f
mov edx, str._UNIQUE
mov esi, dword [esp + 0x18]
push ecx
push eax
push edx
push str.CREATE_s_INDEX__.s
call fcn.004275e0
add esp, 0x10
mov esi, eax
jmp 0x443199
xor esi, esi
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x10]
mov ebx, dword [esp + 0x68]
push esi
push edx
mov edx, dword [ebp]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [ecx + eax]
push str.sqlite_master
push edx
push str.INSERT_INTO__Q._s_VALUES_index__Q__Q__d__Q__
call fcn.00427390
add esp, 0x1c
test esi, esi
je 0x4431f0
cmp dword [edi + 0x1d8], 0
je 0x4431e7
mov eax, esi
mov esi, edi
call fcn.00414ce0
jmp 0x4431f0
push esi
call fcn.00412080
add esp, 4
cmp dword [esp + 0x74], 0
je 0x44323f
mov eax, dword [esp + 0x30]
push eax
mov edi, ebx
push ebp
mov eax, edi
call fcn.0043c3b0
mov ebx, dword [esp + 0x28]
push ebx
call fcn.00420940
mov ecx, dword [ebp]
mov esi, dword [esp + 0x24]
add esp, 0xc
push ecx
push str.name_q_AND_typeindex
call fcn.004275e0
mov esi, dword [esp + 0x34]
push eax
push ebx
call fcn.00421510
push 0
push 0x93
call fcn.0041f580
add esp, 0x18
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x28]
mov edx, dword [eax + 0x20]
cmp edx, ecx
jbe 0x443257
mov esi, dword [eax + 4]
lea ecx, [ecx + ecx*4]
mov dword [esi + ecx*4 + 8], edx
mov edx, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
mov esi, dword [esp + 0x18]
sub edx, 1
mov dword [eax + 0x58], edx
cmp byte [esi + 0x91], 0
jne 0x44327b
cmp dword [esp + 0x74], 0
jne 0x442ee1
mov ecx, dword [esp + 0x14]
mov edx, 5
cmp dword [esp + 0x7c], edx
jne 0x4432c2
mov eax, dword [ecx + 8]
test eax, eax
je 0x4432c2
cmp byte [eax + 0x32], dl
je 0x4432c2
cmp dword [eax + 0x14], 0
je 0x4432b0
lea esp, [esp]
mov ecx, dword [eax + 0x14]
cmp byte [ecx + 0x32], dl
je 0x4432b0
mov eax, ecx
cmp dword [eax + 0x14], 0
jne 0x4432a0
mov ecx, dword [eax + 0x14]
mov dword [ebp + 0x14], ecx
mov dword [eax + 0x14], ebp
mov dword [esp + 0x24], ebp
jmp 0x442ef0
mov edx, dword [ecx + 8]
mov dword [ebp + 0x14], edx
mov dword [ecx + 8], ebp
mov dword [esp + 0x24], ebp
jmp 0x442ef0
cmp dword [0x488008], 0
je 0x443330
mov eax, dword [0x48d140]
test eax, eax
je 0x4432f0
push eax
call dword [0x48805c]
add esp, 4
push esi
call dword [0x488038]
sub dword [0x48cf98], eax
sub dword [0x48cfbc], 1
add esp, 4
push esi
call dword [0x488030]
mov eax, dword [0x48d140]
add esp, 4
test eax, eax
je 0x44333a
push eax
call dword [0x488064]
mov eax, dword [esp + 0x28]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
push esi
call dword [0x488030]
add esp, 4
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret