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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x1c], edx
push edi
xor edi, edi
mov dword [esp + 0xc], 0
mov ebx, dword [esi]
mov dword [esp + 0x30], ebx
cmp byte [ebx + 0x57], 0
jne 0x482fb6
mov ecx, edx
mov edx, dword [ecx + 8]
test edx, edx
je 0x482b43
mov eax, dword [ebx + 0x10]
xor ecx, ecx
add eax, 0xc
cmp dword [eax], edx
je 0x482b39
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x482b31
mov eax, dword [ebx + 0x10]
add ecx, ecx
mov ecx, dword [eax + ecx*8]
jmp 0x482b46
mov ecx, dword [ecx + 0xc]
mov edx, 0x10
mov eax, ebx
add eax, edx
xor edx, edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, esi
push dword [eax + 0x10]
call fcn.0048b720
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x482fb6
mov ecx, dword [eax + 0x3c]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x1c], 0xffff8000
test ecx, ecx
je 0x482ba7
mov eax, dword [esi]
mov dword [esp + 0x1c], edi
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x482ba7
mov edx, edi
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x482b98
mov dword [esp + 0x1c], edx
lea edx, [ebx + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [edx]
add ecx, ecx
mov eax, dword [eax + ecx*8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x482fa4
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
test eax, eax
je 0x482c0c
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, ebx
call fcn.0043b7c0
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
je 0x482c12
push dword [esp + 0x28]
push dword [esp + 0x30]
push eax
call fcn.00570750
mov eax, dword [esp + 0x18]
add esp, 0xc
mov ecx, dword [esp + 0x28]
mov byte [ecx + eax], 0
jmp 0x482c12
xor eax, eax
mov dword [esp + 0xc], eax
mov ecx, eax
call fcn.0043f090
mov eax, dword [esp + 0xc]
test eax, eax
je 0x482fb6
push dword [esp + 0x10]
mov edx, eax
mov ecx, ebx
call fcn.0048b340
add esp, 4
test eax, eax
jne 0x482f96
push dword [esp + 0x10]
mov edx, dword [esp + 0x10]
mov ecx, ebx
call fcn.0048b8e0
add esp, 4
test eax, eax
jne 0x482f96
push dword [esp + 0xc]
mov edx, dword [esp + 0x18]
mov ecx, ebx
call fcn.0048ec80
add esp, 4
test eax, eax
jne 0x482f96
mov edx, dword [esp + 0x14]
mov ecx, esi
call fcn.00482960
test eax, eax
jne 0x482fb6
mov eax, dword [esp + 0xc]
mov ecx, esi
push eax
push str.table
mov edx, eax
call fcn.0048c2f0
add esp, 8
test eax, eax
jne 0x482fb6
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0x2b], 2
mov eax, dword [ecx]
jne 0x482cda
push eax
push str.view__s_may_not_be_altered
push esi
call fcn.0043f000
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov ecx, ebx
call fcn.004936b0
mov edx, dword [esp + 0xc]
mov ecx, ebx
call fcn.0043b330
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push eax
push dword [esp + 0x18]
mov edx, 0x1a
mov ecx, esi
call fcn.0048a7e0
add esp, 0xc
test eax, eax
jne 0x482fb6
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0x2b], 1
je 0x482d08
cmp word [ecx + 0x22], di
jg 0x482d1d
mov edx, ecx
mov ecx, esi
call fcn.0048fe00
test eax, eax
jne 0x482fb6
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0x2b], 1
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], eax
jne 0x482d58
mov edi, dword [ecx + 0x34]
mov dword [esp + 0x18], eax
test edi, edi
je 0x482d4b
mov dword [esp + 0x18], eax
nop word [eax + eax]
cmp dword [edi], ebx
je 0x482d4b
mov edi, dword [edi + 0x18]
test edi, edi
jne 0x482d40
mov eax, dword [edi + 8]
xor ecx, ecx
mov eax, dword [eax]
cmp dword [eax + 0x4c], ecx
cmove edi, ecx
mov eax, dword [esi + 8]
mov dword [esp + 0x24], eax
test eax, eax
je 0x482d68
lea eax, [esi + 0x78]
jmp 0x482d92
cmp dword [esi + 0x78], 0
jne 0x482d7a
mov eax, dword [esi]
test byte [eax + 0x50], 8
jne 0x482d7a
mov byte [esi + 0x17], 1
mov ecx, esi
call fcn.004606d0
mov ecx, eax
lea eax, [esi + 0x78]
mov dword [esp + 0x24], ecx
test ecx, ecx
je 0x482fb6
mov eax, dword [eax]
mov ecx, esi
test eax, eax
cmovne ecx, eax
mov eax, dword [esp + 0x14]
xor edx, edx
mov dword [esp + 0x2c], edx
mov byte [ecx + 0x15], 1
mov eax, dword [eax]
mov ecx, eax
mov dword [esp + 0x28], eax
cmp byte [eax], dl
je 0x482de4
cmp ecx, 0xffffffff
jae 0x482de0
mov al, byte [ecx]
inc ecx
cmp al, 0xc0
jb 0x482dda
mov al, byte [ecx]
and al, 0xc0
cmp al, 0x80
jne 0x482dda
nop dword [eax]
mov al, byte [ecx + 1]
inc ecx
and al, 0xc0
cmp al, 0x80
je 0x482dd0
inc edx
cmp byte [ecx], 0
jne 0x482db5
mov dword [esp + 0x2c], edx
mov ecx, dword [esp + 0x28]
xor eax, eax
cmp dword [esp + 0x1c], 1
push ecx
sete al
push eax
push dword [esp + 0x20]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
push ecx
push eax
push eax
push str.UPDATE___w_.sqlite_master_SET_sql__sqlite_rename_table__Q__type__name__sql___Q___Q___d__WHERE__type_index_OR_tbl_name_Q_COLLATE_nocase_AND___name_NOT_LIKE_sqliteX____ESCAPE_X
push esi
call fcn.0048b230
push dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
push dword [esp + 0x50]
push eax
push eax
push eax
push dword [esp + 0x44]
push str.UPDATE__Q.sqlite_master_SET_tbl_name___Q__name__CASE_WHEN_typetable_THEN__Q_WHEN_name_LIKE_sqliteX_autoindex___ESCAPE_X______AND_typeindex_THEN_sqlite_autoindex____Q__substr_name__d18__ELSE_name_END_WHERE_tbl_name_Q_COLLATE_nocase_AND__typetable_OR_typeindex_OR_typetrigger__
push esi
call fcn.0048b230
add esp, 0x40
mov edx, str.sqlite_sequence
mov ecx, ebx
push dword [esp + 0x10]
call fcn.0048b340
add esp, 4
test eax, eax
je 0x482e62
mov eax, dword [esp + 0x14]
push dword [eax]
push dword [esp + 0x1c]
push dword [esp + 0x18]
push str.UPDATE___w_.sqlite_sequence_set_name___Q_WHERE_name___Q
push esi
call fcn.0048b230
add esp, 0x14
cmp dword [esp + 0x1c], 1
je 0x482e89
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
push ecx
push eax
push edx
push ecx
push edx
push eax
push str.UPDATE_sqlite_temp_schema_SET_sql__sqlite_rename_table__Q__type__name__sql___Q___Q__1___tbl_name__CASE_WHEN_tbl_name_Q_COLLATE_nocase_AND___sqlite_rename_test__Q__sql__type__name__1__after_rename__0__THEN__Q_ELSE_tbl_name_END_WHERE_type_IN__view__trigger_
push esi
call fcn.0048b230
add esp, 0x20
test edi, edi
je 0x482f26
inc dword [esi + 0x2c]
mov edx, 0x75
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x24]
push 0
push dword [esp + 0x1c]
mov dword [esp + 0x34], eax
push 0
push eax
push 0
call fcn.00460bd0
mov ecx, dword [esp + 0x38]
add esp, 0x14
mov edx, dword [ecx + 0x6c]
cmp dword [ecx + 0x70], edx
jg 0x482edc
push 0
push 0
push dword [esp + 0x34]
mov edx, 0xb0
call fcn.00460920
add esp, 0xc
mov edx, eax
jmp 0x482f17
mov ebx, dword [esp + 0x2c]
lea eax, [edx + 1]
mov dword [ecx + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x68]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x30]
mov dword [eax + ecx*4], 0xb0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x24]
push 0xfffffffffffffff5
push edi
call fcn.00461760
add esp, 8
mov edx, dword [esp + 0x1c]
mov ecx, esi
push 1
call fcn.00482a40
mov eax, dword [esp + 0x14]
add esp, 4
mov byte [esi + 0x10], 1
push 0
push str.after_rename
push dword [esp + 0x3c]
push eax
push eax
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 esi
call fcn.0048b230
add esp, 0x1c
cmp dword [esp + 0x1c], 1
je 0x482fb6
push 0
push str.after_rename
push dword [esp + 0x18]
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 esi
call fcn.0048b230
mov edx, dword [esp + 0x34]
add esp, 0x14
mov ecx, ebx
call fcn.004936b0
mov edx, dword [esp + 0xc]
mov ecx, ebx
call fcn.0043b330
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esp + 0xc]
push str.there_is_already_another_table_or_index_with_this_name:__s
jmp 0x482cb4
mov edx, dword [esp + 0x20]
mov ecx, ebx
call fcn.004936b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x20]
mov ecx, ebx
call fcn.004936b0
mov edx, dword [esp + 0xc]
test edx, edx
je 0x482fd0
mov ecx, ebx
call fcn.0043b330
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret