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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x577094]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 8]
cmp edx, 1
push esi
push edi
mov dword [esp + 0x24], eax
mov edi, ecx
mov dword [esp + 0x3c], eax
mov ecx, str.sqlite_master
mov eax, dword [ebp + 0xc]
mov esi, str.sqlite_temp_master
mov dword [esp + 0x48], eax
cmove ecx, esi
push 0
lea eax, [esp + 0x78]
mov dword [esp + 0x20], edx
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], edi
push 5
push eax
mov dword [esp + 0x3c], 0
mov byte [edi + 0xa5], 1
mov dword [esp + 0x84], str.table
mov dword [esp + 0x38], ecx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], 0x55f5dc
mov dword [esp + 0x94], str.CREATE_TABLE_x_type_text_name_text_tbl_name_text_rootpage_int_sql_text_
mov dword [esp + 0x98], 0
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], 0
mov dword [esp + 0x5c], 0
call fcn.0048b4d0
mov esi, dword [esp + 0x54]
add esp, 0x10
test esi, esi
jne 0x48bcb7
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi + 0x10]
shl ecx, 4
mov dword [esp + 0x18], ecx
lea esi, [eax + ecx]
mov ecx, dword [esi + 4]
mov dword [esp + 0x20], esi
test ecx, ecx
jne 0x48b85a
mov eax, dword [eax + 0x1c]
or word [eax + 0x4e], 1
xor eax, eax
jmp 0x48bd0b
cmp byte [ecx + 9], 0
je 0x48b86e
inc dword [ecx + 0xc]
cmp byte [ecx + 0xa], 0
jne 0x48b86e
call fcn.00432d60
mov ecx, dword [esi + 4]
cmp byte [ecx + 8], 0
jne 0x48b8ee
push 0
xor edx, edx
call fcn.00436510
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x48b8e6
mov ecx, eax
mov edx, str.unknown_error
sub ecx, 0x64
je 0x48b8c9
sub ecx, 1
je 0x48b8c2
sub ecx, 0x19f
je 0x48b8bb
movzx eax, al
cmp eax, 0x1d
jae 0x48b8ce
mov eax, dword [eax*4 + 0x5604a0]
test eax, eax
je 0x48b8ce
mov edx, eax
jmp 0x48b8ce
mov edx, str.abort_due_to_ROLLBACK
jmp 0x48b8ce
mov edx, str.no_more_rows_available
jmp 0x48b8ce
mov edx, str.another_row_available
mov ecx, dword [esp + 0x24]
push edx
mov edx, edi
call fcn.0041cea0
mov esi, dword [esp + 0x18]
add esp, 4
jmp 0x48bc9b
mov dword [esp + 0x2c], 1
xor eax, eax
mov edi, esi
mov dword [esp + 0x14], eax
mov esi, dword [edi + 4]
mov dl, byte [esi + 9]
mov eax, dword [esi + 4]
mov dword [esp + 0x30], eax
test dl, dl
je 0x48b91e
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x48b91e
mov ecx, esi
call fcn.00432d60
mov dl, byte [esi + 9]
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + ecx*4 + 0x28]
bswap eax
mov dword [esp + ecx*4 + 0x50], eax
test dl, dl
je 0x48b943
add dword [esi + 0xc], 0xffffffff
jne 0x48b943
mov ecx, esi
call fcn.00432d20
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 5
jl 0x48b8f6
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 0x20]
and eax, 0x2000000
or eax, 0
je 0x48b972
xorps xmm0, xmm0
xor edx, edx
movaps xmmword [esp + 0x50], xmm0
mov dword [esp + 0x60], edx
jmp 0x48b976
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x50]
mov ecx, dword [esi + 0xc]
mov dword [ecx], eax
test edx, edx
je 0x48ba4e
cmp dword [esp + 0x1c], 0
jne 0x48b9a8
and dl, 3
mov ecx, 1
movzx eax, dl
cmove eax, ecx
mov byte [edi + 0x4e], al
jmp 0x48ba5e
movzx eax, byte [edi + 0x4e]
cmp edx, eax
je 0x48ba5e
mov esi, dword [esp + 0x24]
mov ecx, dword [esi]
test ecx, ecx
je 0x48b9fb
cmp dword [edi + 0x1e8], 0
je 0x48b9d2
mov edx, ecx
mov ecx, edi
call fcn.0041c6a0
jmp 0x48b9fb
cmp ecx, dword [edi + 0x138]
jb 0x48b9f2
cmp ecx, dword [edi + 0x13c]
jae 0x48b9f2
mov eax, dword [edi + 0x134]
mov dword [ecx], eax
mov dword [edi + 0x134], ecx
jmp 0x48b9fb
push ecx
call fcn.0041c630
add esp, 4
push 0
push 0x44
mov ecx, edi
call fcn.0041ca80
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x48ba42
movups xmm0, xmmword [str.attached_databases_must_use_the_same_text_encoding_as_main_database]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x568330]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [0x568340]
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [0x568350]
movups xmmword [ecx + 0x30], xmm0
mov eax, dword [0x568360]
mov dword [ecx + 0x40], eax
mov dword [esi], ecx
mov esi, 1
jmp 0x48bc40
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + ecx + 0xc]
or word [eax + 0x4e], 4
mov ecx, dword [esi + 0xc]
mov al, byte [edi + 0x4e]
mov byte [ecx + 0x4d], al
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 0x50], 0
jne 0x48baa3
mov eax, dword [esp + 0x58]
test eax, eax
jns 0x48ba88
cmp eax, 0x80000000
jne 0x48ba86
mov eax, 0x7fffffff
jmp 0x48ba92
neg eax
test eax, eax
mov edx, 0xfffff830
cmove eax, edx
mov dword [ecx + 0x50], eax
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [edx + 0x50]
call fcn.00435b00
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x54]
mov byte [eax + 0x4c], cl
mov eax, dword [esi + 0xc]
cmp byte [eax + 0x4c], 0
jne 0x48baba
mov byte [eax + 0x4c], 1
mov eax, dword [esi + 0xc]
cmp byte [eax + 0x4c], 4
jbe 0x48bb3f
mov esi, dword [esp + 0x24]
mov ecx, dword [esi]
test ecx, ecx
je 0x48bb0a
cmp dword [edi + 0x1e8], 0
je 0x48bae1
mov edx, ecx
mov ecx, edi
call fcn.0041c6a0
jmp 0x48bb0a
cmp ecx, dword [edi + 0x138]
jb 0x48bb01
cmp ecx, dword [edi + 0x13c]
jae 0x48bb01
mov eax, dword [edi + 0x134]
mov dword [ecx], eax
mov dword [edi + 0x134], ecx
jmp 0x48bb0a
push ecx
call fcn.0041c630
add esp, 4
push 0
push 0x18
mov ecx, edi
call fcn.0041ca80
add esp, 8
test eax, eax
je 0x48bb33
movups xmm0, xmmword [str.unsupported_file_format]
movups xmmword [eax], xmm0
movq xmm0, qword [0x569b00]
movq qword [eax + 0x10], xmm0
mov dword [esi], eax
mov esi, 1
jmp 0x48bc40
cmp dword [esp + 0x1c], 0
jne 0x48bb55
cmp ecx, 4
jl 0x48bb55
mov eax, dword [edi + 0x24]
and dword [edi + 0x20], 0xfffffffd
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x18]
push dword [esp + 0x28]
push dword [eax + ecx]
push str.SELECTFROM__w_._s_ORDER_BY_rowid
push edi
call fcn.0041f540
mov esi, dword [edi + 0x140]
lea ecx, [esp + 0x48]
push 0
push ecx
push fcn.0048b4d0
push eax
push edi
mov dword [esp + 0x4c], eax
mov dword [edi + 0x140], 0
call fcn.00484820
mov edx, dword [esp + 0x4c]
mov ecx, eax
add esp, 0x24
mov dword [edi + 0x140], esi
test ecx, ecx
cmove ecx, dword [esp + 0x44]
mov dword [esp + 0x14], ecx
test edx, edx
je 0x48bbf2
cmp dword [edi + 0x1e8], 0
je 0x48bbc5
mov ecx, edi
call fcn.0041c6a0
jmp 0x48bbee
cmp edx, dword [edi + 0x138]
jb 0x48bbe5
cmp edx, dword [edi + 0x13c]
jae 0x48bbe5
mov eax, dword [edi + 0x134]
mov dword [edx], eax
mov dword [edi + 0x134], edx
jmp 0x48bbf2
push edx
call fcn.0041c630
add esp, 4
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x48bc05
mov edx, dword [esp + 0x1c]
mov ecx, edi
call fcn.0046a3b0
mov ecx, dword [esp + 0x14]
cmp byte [edi + 0x51], 0
je 0x48bc19
mov ecx, edi
mov esi, 7
call fcn.0046c8f0
jmp 0x48bc21
test ecx, ecx
je 0x48bc2e
mov esi, dword [esp + 0x14]
mov eax, dword [edi + 0x20]
and eax, 0x8000000
or eax, 0
je 0x48bc40
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + ecx + 0xc]
or word [eax + 0x4e], 1
xor esi, esi
cmp dword [esp + 0x2c], 0
je 0x48bc9b
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
cmp byte [eax + 9], 0
je 0x48bc6c
inc dword [eax + 0xc]
cmp byte [eax + 0xa], 0
jne 0x48bc6c
mov ecx, eax
call fcn.00432d60
mov eax, dword [esp + 0x18]
xor edx, edx
mov ecx, eax
call fcn.004373e0
test eax, eax
jne 0x48bc84
mov ecx, dword [esp + 0x18]
xor edx, edx
call fcn.004375e0
mov eax, dword [esp + 0x18]
cmp byte [eax + 9], 0
je 0x48bc9b
add dword [eax + 0xc], 0xffffffff
jne 0x48bc9b
mov ecx, eax
call fcn.00432d20
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
cmp byte [ecx + 9], 0
je 0x48bcb3
add dword [ecx + 0xc], 0xffffffff
jne 0x48bcb3
call fcn.00432d20
test esi, esi
je 0x48bd09
cmp esi, 7
je 0x48bcc4
cmp esi, 0xc0a
jne 0x48bcfe
cmp byte [edi + 0x51], 0
jne 0x48bcfe
cmp byte [edi + 0x52], 0
jne 0x48bcfe
cmp dword [edi + 0xbc], 0
mov byte [edi + 0x51], 1
jle 0x48bce7
mov dword [edi + 0x110], 1
inc dword [edi + 0x118]
mov eax, dword [edi + 0xf4]
test eax, eax
je 0x48bcfe
mov dword [eax + 0xc], 7
mov edx, dword [esp + 0x1c]
mov ecx, edi
call fcn.0046c880
mov eax, esi
mov ecx, dword [esp + 0x8c]
mov byte [edi + 0xa5], 0
pop edi
pop esi
xor ecx, esp
call fcn.004eedbd
mov esp, ebp
pop ebp
ret