Function at 0x4b3730
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
mov ebx, ecx
push esi
push edi
mov edi, edx
mov dword [esp + 0x34], ebx
mov edx, dword [ebx]
mov dword [esp + 0x48], edi
mov dword [esp + 0x28], edx
cmp byte [edx + 0x57], 0
jne 0x4b3fbf
mov edx, dword [edi + 8]
test edx, edx
je 0x4b377f
mov esi, dword [esp + 0x28]
xor ecx, ecx
mov esi, dword [esi + 0x10]
cmp dword [esi + 0xc], edx
lea eax, [esi + 0xc]
je 0x4b3778
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x4b3770
add ecx, ecx
mov eax, dword [esi + ecx*8]
jmp 0x4b3782
mov eax, dword [edi + 0xc]
push eax
push dword [edi + 0x10]
xor edx, edx
mov ecx, ebx
call fcn.004b8150
mov esi, eax
add esp, 8
mov dword [esp + 0x14], esi
test esi, esi
je 0x4b3fbf
mov edx, esi
mov ecx, ebx
call fcn.004af870
test eax, eax
jne 0x4b3fbf
xor edx, edx
mov ecx, str.view
cmp byte [esi + 0x2b], 2
cmovne ecx, edx
cmp byte [esi + 0x2b], 1
jne 0x4b37cc
mov ecx, str.virtual_table
jmp 0x4b37d0
test ecx, ecx
je 0x4b37f8
push dword [esi]
push ecx
push str.drop_column_from
push str.cannot__s__s___s_
push ebx
call fcn.0046d2a0
mov ecx, dword [esp + 0x3c]
add esp, 0x14
mov edx, edi
call fcn.004c00b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
test edi, edi
je 0x4b3fbb
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ecx
test ecx, ecx
je 0x4b384c
mov ecx, eax
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, dword [esp + 0x30]
call fcn.0046a0b0
mov esi, eax
add esp, 8
test esi, esi
je 0x4b384e
push dword [esp + 0x44]
push dword [esp + 0x44]
push esi
call fcn.00546c40
mov eax, dword [esp + 0x50]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x4b384e
xor esi, esi
mov ecx, esi
call fcn.0046d330
test esi, esi
je 0x4b3fbb
mov ecx, dword [esp + 0x14]
mov edx, esi
call fcn.004da4e0
mov dword [esp + 0x38], eax
test eax, eax
jns 0x4b3886
push edi
push str.no_such_column:___T_
push ebx
call fcn.0046d2a0
add esp, 0xc
mov eax, esi
jmp 0x4b3fb0
mov edx, dword [esp + 0x14]
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x40], ecx
mov eax, dword [edx + 4]
movzx eax, word [ecx + eax + 0xe]
test al, 9
je 0x4b38c5
test al, 1
mov ecx, str.UNIQUE
push esi
mov eax, str.PRIMARY_KEY
cmove eax, ecx
push eax
push str.cannot_drop__s_column:___s_
push ebx
call fcn.0046d2a0
add esp, 0x10
mov eax, esi
jmp 0x4b3fb0
cmp word [edx + 0x22], 1
jg 0x4b38e2
push esi
push str.cannot_drop_column___s_:_no_other_columns_exist
push ebx
call fcn.0046d2a0
add esp, 0xc
mov eax, esi
jmp 0x4b3fb0
mov ecx, dword [edx + 0x3c]
mov edi, 0xffff8000
mov dword [esp + 0x20], esi
test ecx, ecx
je 0x4b3918
mov eax, dword [esp + 0x28]
xor edi, edi
mov dword [esp + 0x20], esi
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x4b3918
mov dword [esp + 0x20], esi
nop word [eax + eax]
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x4b3910
mov eax, dword [esp + 0x28]
mov ecx, edi
push dword [esp + 0x20]
add ecx, ecx
push dword [edx]
mov eax, dword [eax + 0x10]
mov edx, 0x1a
mov esi, dword [eax + ecx*8]
mov ecx, ebx
push esi
call fcn.004b7170
add esp, 0xc
test eax, eax
jne 0x4b3fac
push 0
push 0x5897a4
cmp edi, 1
mov byte [ebx + 0x10], 1
sete al
push eax
push esi
push esi
push str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
push ebx
mov dword [esp + 0x60], eax
call fcn.004b7c60
add esp, 0x1c
cmp edi, 1
je 0x4b39a2
push 0
push 0x5897a4
push esi
push str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
push ebx
call fcn.004b7c60
add esp, 0x14
push esi
push esi
push str.UPDATE___w_.sqlite_master_SET_sql__sqlite_rename_quotefix__Q__sql_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual__
push ebx
call fcn.004b7c60
push str.UPDATE_temp.sqlite_master_SET_sql__sqlite_rename_quotefix_temp__sql_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual__
push ebx
call fcn.004b7c60
add esp, 0x18
jmp 0x4b39b2
push esi
push esi
push str.UPDATE___w_.sqlite_master_SET_sql__sqlite_rename_quotefix__Q__sql_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual__
push ebx
call fcn.004b7c60
add esp, 0x10
mov eax, dword [esp + 0x14]
push dword [eax]
push dword [esp + 0x3c]
push edi
push esi
push str.UPDATE___w_.sqlite_master_SET_sql__sqlite_drop_column__d__sql___d__WHERE__typetable_AND_tbl_name_Q_COLLATE_nocase_
push ebx
call fcn.004b7c60
push 2
mov edx, edi
mov ecx, ebx
call fcn.004af940
add esp, 0x1c
mov byte [ebx + 0x10], 1
push 1
push str.after_drop_column
push dword [esp + 0x4c]
push esi
push esi
push str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
push ebx
call fcn.004b7c60
add esp, 0x1c
cmp edi, 1
je 0x4b3a11
push 1
push str.after_drop_column
push esi
push str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
push ebx
call fcn.004b7c60
add esp, 0x14
cmp dword [ebx + 0x24], 0
jne 0x4b3fac
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
mov eax, dword [eax + 4]
test byte [ecx + eax + 0xe], 0x20
jne 0x4b3fac
mov esi, dword [ebx + 8]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ecx
test esi, esi
jne 0x4b3a5c
cmp dword [ebx + 0x74], ecx
jne 0x4b3a53
mov eax, dword [ebx]
test byte [eax + 0x50], 8
jne 0x4b3a53
mov byte [ebx + 0x17], 1
mov ecx, ebx
call fcn.0048e2e0
mov esi, eax
mov eax, dword [ebx + 0x28]
push 0x70
push dword [esp + 0x18]
mov dword [esp + 0x20], eax
lea ecx, [eax + 1]
push edi
mov edi, eax
mov dword [ebx + 0x28], ecx
mov edx, edi
mov ecx, ebx
call fcn.004cb670
mov ecx, dword [esi + 0x74]
lea edx, [esi + 0x70]
add esp, 0xc
mov dword [esp + 0x44], ecx
mov dword [esp + 0x10], edx
cmp dword [esi + 0x78], ecx
jg 0x4b3aae
push 0
push 0
push edi
mov edx, 0x26
mov ecx, esi
call fcn.0048e530
add esp, 0xc
mov dword [esp + 0x44], eax
lea edx, [esi + 0x70]
jmp 0x4b3ae0
lea eax, [ecx + 1]
mov dword [esp + 0x10], edx
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov dword [eax + ecx*4], 0x26
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0x2c]
mov ecx, dword [esp + 0x14]
inc eax
mov dword [ebx + 0x2c], eax
mov dword [esp + 0x1c], eax
test byte [ecx + 0x1c], 0x80
jne 0x4b3b62
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4b3b22
push 0
push eax
push edi
mov edx, 0x86
mov ecx, esi
call fcn.0048e530
mov ecx, dword [esp + 0x20]
add esp, 0xc
movsx eax, word [ecx + 0x22]
add eax, dword [ebx + 0x2c]
xor edx, edx
jmp 0x4b3c34
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x86
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x14]
movsx eax, word [ecx + 0x22]
add eax, dword [ebx + 0x2c]
xor edx, edx
jmp 0x4b3c34
mov edx, dword [ecx + 8]
mov dword [esp + 0x24], edx
test edx, edx
je 0x4b3b84
nop dword [eax]
mov eax, dword [edx + 0x38]
and al, 3
cmp al, 2
je 0x4b3b80
mov edx, dword [edx + 0x14]
test edx, edx
jne 0x4b3b70
mov dword [esp + 0x24], edx
movzx eax, word [edx + 0x34]
xor edi, edi
add eax, dword [esp + 0x1c]
mov dword [ebx + 0x2c], eax
mov dword [esp + 0x3c], eax
movzx eax, word [edx + 0x32]
mov ebx, eax
mov dword [esp + 0x40], ebx
xor ebx, ebx
cmp bx, ax
mov ebx, dword [esp + 0x34]
jae 0x4b3c25
mov ebx, dword [esp + 0x18]
nop
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4b3bd7
mov eax, dword [esp + 0x1c]
mov edx, 0x5d
inc eax
mov ecx, esi
add eax, edi
push eax
push edi
push ebx
call fcn.0048e530
mov edx, dword [esp + 0x30]
add esp, 0xc
jmp 0x4b3c09
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax + ecx*4], 0x5d
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edi
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x1c]
inc eax
mov dword [ecx + 0x10], 0
add eax, edi
mov dword [ecx + 0xc], eax
movzx ecx, word [edx + 0x32]
inc edi
cmp edi, ecx
jl 0x4b3bb0
mov ebx, dword [esp + 0x34]
mov eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x2c]
jmp 0x4b3c29
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
movzx edi, di
mov dword [esp + 0x2c], edi
inc eax
xor edi, edi
mov dword [ebx + 0x2c], eax
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x3c], edi
cmp ax, word [ecx + 0x22]
jge 0x4b3d81
mov ebx, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x40], ecx
jmp 0x4b3c64
mov edx, dword [esp + 0x24]
cmp edi, dword [esp + 0x38]
je 0x4b3d65
mov eax, dword [ebx + 4]
test byte [eax + ecx + 0xe], 0x20
jne 0x4b3d65
test edx, edx
je 0x4b3cd0
movzx eax, word [edx + 0x34]
xor ecx, ecx
mov dword [esp + 0x4c], eax
test eax, eax
je 0x4b3ca0
mov eax, dword [edx + 4]
cmp di, word [eax]
je 0x4b3ccb
inc ecx
add eax, 2
cmp ecx, dword [esp + 0x4c]
jl 0x4b3c91
or eax, 0xffffffff
movsx edi, ax
movzx eax, word [edx + 0x32]
cmp edi, eax
jl 0x4b3d5d
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
call fcn.004b8ef0
xor ecx, ecx
cwde
cmp edi, eax
setg cl
sub edi, ecx
jmp 0x4b3cd4
movzx eax, cx
jmp 0x4b3ca3
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
movsx eax, word [ebx + 0x20]
inc edx
add edx, edi
mov edi, dword [esp + 0x3c]
cmp edi, eax
jne 0x4b3d45
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4b3d09
push 0
push edx
push 0
mov edx, 0x4a
mov ecx, esi
call fcn.0048e530
add esp, 0xc
inc dword [esp + 0x2c]
jmp 0x4b3d61
mov ebx, dword [esp + 0x14]
lea eax, [ecx + 1]
inc dword [esp + 0x2c]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax + ecx*4], 0x4a
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4b3d61
push edx
push edi
push dword [esp + 0x20]
mov edx, ebx
mov ecx, esi
call fcn.004ab120
add esp, 0xc
inc dword [esp + 0x2c]
jmp 0x4b3d61
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
movsx eax, word [ebx + 0x22]
inc edi
add ecx, 0x10
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ecx
cmp edi, eax
jl 0x4b3c60
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
inc edi
test edx, edx
jne 0x4b3de4
inc dword [ebx + 0x2c]
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4b3dad
push edx
push edi
push edx
mov edx, 0x4a
mov ecx, esi
call fcn.0048e530
add esp, 0xc
jmp 0x4b3ddf
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax + ecx*4], 0x4a
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, 1
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4b3e06
mov ebx, dword [esp + 0x30]
mov ecx, esi
push ebx
push edx
push edi
mov edx, 0x60
call fcn.0048e530
add esp, 0xc
mov edx, ebx
jmp 0x4b3e34
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x60
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4b3efb
movzx ebx, word [eax + 0x32]
mov edx, dword [esi + 0x74]
mov dword [esp + 0x4c], ebx
cmp dword [esi + 0x78], edx
jg 0x4b3e6c
push edi
push dword [esp + 0x34]
mov edx, 0x89
mov ecx, esi
push dword [esp + 0x20]
call fcn.0048e530
add esp, 0xc
mov edx, eax
jmp 0x4b3ea2
mov ebx, dword [esp + 0x18]
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x30]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x4c]
mov dword [eax + ecx*4], 0x89
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edi, dword [esp + 0x10]
cmp byte [eax + 0x57], 0
jne 0x4b3ebc
mov eax, dword [edi]
lea ecx, [edx + edx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0x74]
test eax, eax
jle 0x4b3ed6
lea ecx, [eax + eax*4]
mov edx, 2
mov eax, dword [edi]
mov word [eax + ecx*4 - 0x12], dx
mov edx, dword [esp + 0x44]
mov ecx, dword [esi + 0x74]
inc edx
cmp dword [esi + 0x78], ecx
jg 0x4b3f55
push 0
push edx
push ebx
mov edx, 5
mov ecx, esi
call fcn.0048e530
add esp, 0xc
jmp 0x4b3f83
mov ecx, dword [esi + 0x74]
mov ebx, dword [esp + 0x18]
cmp dword [esi + 0x78], ecx
jg 0x4b3f22
push dword [esp + 0x1c]
mov ecx, esi
push edx
push ebx
mov edx, 0x7f
call fcn.0048e530
mov edi, dword [esp + 0x1c]
add esp, 0xc
jmp 0x4b3ec0
mov edi, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x7f
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4b3ec0
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi]
mov edi, dword [esp + 0x10]
mov dword [eax + ecx*4], 5
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x74]
cmp byte [eax + 0x57], 0
je 0x4b3f95
mov eax, 0x5c24f8
jmp 0x4b3fa9
mov ecx, dword [esp + 0x44]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [edi]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, eax
call fcn.00469cc0
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
mov edx, edi
call fcn.004c00b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret