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

Disassembly:
sub esp, 0x58
push ebx
mov ebx, dword [esp + 0x60]
mov eax, dword [ebx]
push ebp
mov ebp, dword [esp + 0x70]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x3c]
push esi
xor esi, esi
test eax, eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], esi
jne 0x496c5b
mov eax, dword [0x588720]
test eax, eax
jne 0x496c5b
test ebp, ebp
je 0x496833
mov esi, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x1c]
push ecx
push esi
push edx
push ebx
call fcn.004944a0
add esp, 0x10
test eax, eax
mov dword [esp + 0x10], eax
jl 0x496c5b
push ebp
push ebx
call fcn.004ad990
add esp, 8
test esi, esi
je 0x4967df
test dword [esi + 4], 0xfffffffe
jne 0x4967df
test eax, eax
je 0x4967df
cmp byte [eax + 0x1d], 1
jne 0x4967df
mov dword [esp + 0x10], 1
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push esi
push str.index
push eax
lea ecx, [esp + 0x40]
push ebx
push ecx
call fcn.004ad700
add esp, 0x14
test eax, eax
je 0x496816
lea edx, [esp + 0x34]
push ebp
push edx
call fcn.004ad7d0
add esp, 8
test eax, eax
jne 0x496c5b
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push eax
push ecx
push ebx
call fcn.00493fd0
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x496c5b
jmp 0x49683e
mov ebp, dword [ebx + 0x2c]
movzx edx, byte [ebp + 0x1d]
mov dword [esp + 0x10], edx
mov eax, dword [ebx + 0x3c]
test eax, eax
jne 0x496c5b
mov al, byte [ebp + 0x1c]
test al, al
je 0x496867
mov eax, dword [ebp]
push eax
push str.table__s_may_not_be_indexed
push ebx
call fcn.00492310
add esp, 0xc
jmp 0x496c5b
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x496881
push str.views_may_not_be_indexed
push ebx
call fcn.00492310
add esp, 8
jmp 0x496c5b
mov dl, byte [ebp + 0x1d]
xor ecx, ecx
cmp dl, 1
sete cl
test esi, esi
push edi
mov edi, ecx
je 0x496957
push esi
call fcn.004943c0
push ebx
mov dword [esp + 0x18], eax
call fcn.0048b320
add esp, 8
test eax, eax
jne 0x496c5a
mov eax, dword [esp + 0x10]
test eax, eax
je 0x496c5a
push eax
push ebx
call fcn.00494500
add esp, 8
test eax, eax
jne 0x496c5a
mov esi, dword [esp + 0x18]
mov al, byte [esi + 0x14c]
test al, al
jne 0x4969ac
push ebx
call fcn.0048b320
add esp, 4
test eax, eax
jne 0x496c5a
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 4]
imul edx, edx, 0x6c
mov ecx, dword [edx + eax]
mov edx, dword [esp + 0x10]
push ecx
push edx
push esi
call fcn.00494070
add esp, 0xc
test eax, eax
je 0x49692b
mov eax, dword [esp + 0x10]
push eax
push str.index__s_already_exists
push ebx
call fcn.00492310
add esp, 0xc
jmp 0x496c5a
mov ecx, dword [esp + 0x10]
push 0
push ecx
push esi
call fcn.00493f50
add esp, 0xc
test eax, eax
je 0x4969ac
mov edx, dword [esp + 0x10]
push edx
push str.there_is_already_a_table_named__s
push ebx
call fcn.00492310
add esp, 0xc
jmp 0x496c5a
mov eax, dword [ebp + 0x10]
test eax, eax
mov ecx, 1
je 0x49696b
mov eax, dword [eax + 0x1c]
inc ecx
test eax, eax
jne 0x496963
push ecx
lea eax, [esp + 0x4c]
push 0x540824
push eax
call fcn.004bc41d
push 0
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x24], 0
mov edx, dword [ebp]
push edx
lea eax, [esp + 0x28]
push str.sqlite_autoindex_
push eax
call fcn.004921b0
mov eax, dword [esp + 0x30]
add esp, 0x20
test eax, eax
je 0x496c5a
movzx ecx, byte [ebp + 0x1d]
mov edx, dword [esp + 0x18]
imul ecx, ecx, 0x6c
cmp edi, 1
mov eax, dword [edx + 4]
mov esi, dword [ecx + eax]
mov eax, str.sqlite_temp_master
je 0x4969cc
mov eax, str.sqlite_master
push esi
push 0
push eax
push 0x12
push ebx
call fcn.004ac320
add esp, 0x14
test eax, eax
jne 0x496c5a
test edi, edi
mov eax, 1
je 0x4969f1
mov eax, 3
mov ecx, dword [ebp]
mov edx, dword [esp + 0x10]
push esi
push ecx
push edx
push eax
push ebx
call fcn.004ac320
add esp, 0x14
test eax, eax
jne 0x496c5a
mov esi, dword [esp + 0x7c]
test esi, esi
jne 0x496a68
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
lea eax, [eax + eax*4]
mov eax, dword [ecx + eax*4 - 0x14]
mov dword [esp + 0x30], eax
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x496a30
sub eax, edx
lea edx, [eax + eax]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x30]
push ecx
and eax, 1
or edx, eax
push 0
push 0
mov dword [esp + 0x40], edx
call fcn.0049cfe0
mov esi, eax
add esp, 0xc
test esi, esi
mov dword [esp + 0x7c], esi
je 0x496c5a
mov eax, dword [esp + 0x10]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x496a70
sub eax, edx
mov edx, dword [esi]
lea eax, [eax + edx*8 + 0x31]
push eax
call fcn.00492000
mov edi, eax
add esp, 4
test edi, edi
je 0x496c5a
mov ecx, dword [esi]
lea eax, [edi + ecx*4 + 0x2c]
mov dword [edi + 8], eax
mov edx, dword [esi]
lea edx, [eax + edx*4]
mov dword [edi], edx
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x496aa6
mov cl, byte [esp + 0x80]
mov edx, dword [esp + 0x20]
mov dword [edi + 0xc], ebp
mov eax, dword [esi]
mov dword [edi + 4], eax
xor eax, eax
cmp edx, eax
mov byte [edi + 0x14], cl
mov cl, byte [esp + 0x14]
sete dl
mov byte [edi + 0x15], dl
mov byte [edi + 0x16], cl
cmp dword [esi], eax
mov dword [esp + 0x24], eax
jle 0x496bcb
mov dword [esp + 0x1c], eax
mov eax, 0xffffffd4
lea ebx, [edi + 0x2c]
sub eax, edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], eax
lea esp, [esp]
mov eax, dword [ebp + 4]
xor esi, esi
test eax, eax
jle 0x496b42
xor ebx, ebx
jmp 0x496b10
mov edx, dword [ebp + 8]
mov eax, dword [edx + ebx]
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx + 8]
push eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + edx + 4]
push ecx
call fcn.00492420
add esp, 8
test eax, eax
je 0x496b3e
mov eax, dword [ebp + 4]
inc esi
add ebx, 0x14
cmp esi, eax
jl 0x496b10
mov ebx, dword [esp + 0x28]
cmp esi, dword [ebp + 4]
jge 0x496c1f
mov edx, dword [edi + 8]
add edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x7c]
mov dword [edx + ebx], esi
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + ecx]
test eax, eax
je 0x496b6c
mov eax, dword [eax + 4]
jmp 0x496b76
mov edx, dword [ebp + 8]
lea ecx, [esi + esi*4]
mov eax, dword [edx + ecx*4 + 0xc]
mov ecx, dword [esp + 0x18]
mov dword [ebx], eax
mov al, byte [ecx + 0x14c]
test al, al
jne 0x496b9e
mov edx, dword [ebx]
mov eax, dword [esp + 0x6c]
push edx
push eax
call fcn.00495f40
add esp, 8
test eax, eax
jne 0x496c48
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx]
inc eax
add ebx, 4
add esi, 0xc
cmp eax, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], esi
jl 0x496b00
mov ebx, dword [esp + 0x6c]
mov edx, dword [esp + 0x7c]
mov eax, dword [edx]
mov dword [edi + 0x24], eax
cmp ebp, dword [ebx + 0x2c]
jne 0x496cb7
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x496cb7
jmp 0x496bf0
mov eax, dword [esi + 4]
cmp eax, dword [edi + 4]
jne 0x496cac
xor edx, edx
test eax, eax
jle 0x496ca7
mov eax, dword [edi + 8]
mov ebx, esi
sub ebx, edi
mov dword [esp + 0x28], ebx
mov ebx, dword [esi + 8]
sub ebx, eax
lea ecx, [edi + 0x2c]
mov dword [esp + 0x2c], ebx
jmp 0x496c87
mov eax, dword [esp + 0x24]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + edx*4 + 4]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x6c]
push edx
push eax
push str.table__s_has_no_column_named__s
push ecx
call fcn.00492310
add esp, 0x10
mov eax, dword [edi + 0x18]
push eax
call fcn.00492060
push edi
call fcn.00492060
add esp, 8
pop edi
mov ecx, dword [esp + 0x78]
push ecx
call fcn.0049d070
mov edx, dword [esp + 0x78]
push edx
call fcn.004954c0
mov eax, dword [esp + 0x14]
push eax
call fcn.00492060
add esp, 0xc
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov ebx, dword [esp + 0x2c]
mov ebx, dword [ebx + eax]
cmp ebx, dword [eax]
jne 0x496ca7
mov ebx, dword [esp + 0x28]
mov ebx, dword [ebx + ecx]
cmp ebx, dword [ecx]
jne 0x496ca7
mov ebx, dword [esi + 4]
inc edx
add eax, 4
add ecx, 4
cmp edx, ebx
jl 0x496c83
cmp edx, dword [esi + 4]
je 0x496d29
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x496bf0
mov ebx, dword [esp + 0x18]
mov al, byte [ebx + 0x14c]
test al, al
je 0x496d69
mov edx, dword [edi]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x496cd0
mov ecx, dword [ebx + 4]
sub eax, esi
inc eax
push edi
push eax
movzx eax, byte [edi + 0x16]
imul eax, eax, 0x6c
push edx
lea edx, [eax + ecx + 0x20]
push edx
call fcn.00493c70
add esp, 0x10
test eax, eax
jne 0x496c48
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0xe0]
mov ecx, dword [esp + 0x78]
or edx, 0x10
test ecx, ecx
mov dword [eax + 0xe0], edx
je 0x496fbf
mov ecx, dword [eax + 0x148]
mov dword [edi + 0x10], ecx
jmp 0x496fbf
mov al, byte [esi + 0x14]
mov cl, byte [edi + 0x14]
cmp al, cl
je 0x496c48
cmp al, 0x63
je 0x496d54
cmp cl, 0x63
je 0x496d54
mov ecx, dword [esp + 0x6c]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
push ecx
call fcn.00492310
add esp, 0xc
cmp byte [esi + 0x14], 0x63
jne 0x496c48
mov dl, byte [edi + 0x14]
mov byte [esi + 0x14], dl
jmp 0x496c48
mov edx, dword [esp + 0x6c]
push edx
call fcn.004aa470
mov esi, eax
add esp, 4
test esi, esi
je 0x496c48
mov eax, dword [esp + 0x78]
test eax, eax
mov ebx, dword [esp + 0x14]
je 0x496da3
mov eax, dword [esp + 0x6c]
push ebx
push 0
push eax
call fcn.00495800
push ebx
push esi
call fcn.004943f0
add esp, 0x14
push 0
push 0
push 0x62
push esi
call fcn.0049f3b0
push 0xfffffffffffffffe
push str.index
push 0
push 0
push 0x55
push esi
call fcn.004a0af0
mov ecx, dword [edi]
push 0
push ecx
push 0
push 0
push 0x55
push esi
call fcn.004a0af0
mov edx, dword [ebp]
add esp, 0x40
push 0
push edx
push 0
push 0
push 0x55
push esi
call fcn.004a0af0
push 0
push ebx
push 0x2c
push esi
call fcn.0049f3b0
mov eax, dword [esp + 0xa0]
add esp, 0x28
test eax, eax
je 0x496e2d
push 0
push 0
push 0xb
push esi
call fcn.0049f3b0
push 0
push ebx
push 0x2a
push esi
call fcn.0049f3b0
push 0xfffffffffffffffa
lea eax, [edi + 0x20]
push eax
push 0
push 1
push 0x16
push esi
call fcn.004a0af0
add esp, 0x38
push 0
push 0
push 0x55
push esi
call fcn.0049f3b0
mov eax, dword [esp + 0x94]
add esp, 0x10
test eax, eax
je 0x496ea6
mov ebx, dword [esp + 0x88]
test ebx, ebx
je 0x496ea6
mov eax, dword [esp + 0x80]
test eax, eax
push 0xfffffffffffffffe
jne 0x496e66
push str.CREATE_INDEX
jmp 0x496e6b
push str.CREATE_UNIQUE_INDEX
push 0xffffffffffffffff
push esi
call fcn.0049f5c0
add esp, 0x10
push 0
push 0
push 0x55
push esi
call fcn.0049f3b0
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
mov edx, dword [ebx]
sub edx, eax
inc edx
push edx
push eax
push 0xffffffffffffffff
push esi
call fcn.0049f5c0
push 0
push 0
push 0x51
push esi
call fcn.0049f3b0
add esp, 0x30
push 0xfffffffffffffffe
push str.tttit
push 0
push 5
push 0x59
push esi
call fcn.004a0af0
push 0
push 0
push 0x3d
push esi
call fcn.0049f3b0
mov eax, dword [esp + 0xa0]
add esp, 0x28
test eax, eax
je 0x496fbb
movzx eax, byte [ebp + 0x1d]
push 0
push eax
push 0x2a
push esi
call fcn.0049f3b0
mov ecx, dword [ebp + 0x14]
push ecx
push 2
push 0x17
push esi
call fcn.0049f3b0
mov edx, dword [ebp + 4]
push edx
push 2
push 0x12
push esi
call fcn.0049f3b0
push esi
call fcn.0049f400
mov ebx, eax
push ebx
push 2
push 0x33
push esi
call fcn.0049f3b0
add esp, 0x44
push esi
call fcn.004fbe90
push 2
push edi
push esi
mov dword [esp + 0x7c], eax
call fcn.004ada70
mov dl, byte [edi + 0x14]
xor eax, eax
test dl, dl
setne al
push 0xfffffffffffffffe
push str.indexed_columns_are_not_unique
push eax
push 1
push 0x2d
push esi
call fcn.004a0af0
mov ecx, dword [esp + 0x94]
push ecx
push 2
push 0x6a
push esi
call fcn.0049f3b0
push ebx
push esi
call fcn.0049f450
add esp, 0x40
push 0
push 2
push 0x65
push esi
call fcn.0049f3b0
push 0
push 1
push 0x65
push esi
call fcn.0049f3b0
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
push ebx
push esi
push edx
call fcn.00494900
push 0
push 0
push 0x65
push esi
call fcn.0049f3b0
mov eax, dword [edi]
add esp, 0x3c
push 0xffffffffffffffff
push eax
push str.name_q
call fcn.004a23a0
add esp, 8
push eax
push 0
push ebx
push 0x74
push esi
call fcn.004a0af0
add esp, 0x18
mov eax, dword [esp + 0x18]
mov cl, byte [eax + 0x14c]
test cl, cl
jne 0x496fd5
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x496c48
cmp dword [esp + 0x80], 5
jne 0x497013
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x497013
cmp byte [eax + 0x14], 5
je 0x497013
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x497005
mov ecx, dword [eax + 0x1c]
cmp byte [ecx + 0x14], 5
je 0x497005
mov eax, ecx
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x496ff3
mov ecx, dword [eax + 0x1c]
mov dword [edi + 0x1c], ecx
mov dword [eax + 0x1c], edi
jmp 0x496c5a
mov edx, dword [ebp + 0x10]
mov dword [edi + 0x1c], edx
mov dword [ebp + 0x10], edi
jmp 0x496c5a