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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
mov ebp, dword [esp + 0x6c]
mov eax, str.sqlite_temp_master
push esi
push edi
mov edi, dword [esp + 0x70]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x38], str.table
mov esi, dword [edi + 0x18]
or esi, 0xffffffbf
mov byte [edi + 0xa5], 1
cmp ebp, 1
je 0x4bfb7b
mov eax, str.sqlite_master
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x38]
push 0
push eax
lea eax, [esp + 0x58]
mov dword [esp + 0x4c], 0x526d0c
push 5
push eax
mov dword [esp + 0x58], str.CREATE_TABLE_x_type_text_name_text_tbl_name_text_rootpage_int_sql_text_
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], edi
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
call fcn.004bf920
and dword [edi + 0x18], esi
add esp, 0x10
mov ebx, dword [esp + 0x5c]
test ebx, ebx
jne 0x4bfe1b
mov esi, ebp
mov ebp, dword [edi + 0x10]
shl esi, 4
mov dword [esp + 0x7c], esi
mov dword [esp + 0x14], ebp
mov eax, dword [esi + ebp + 4]
test eax, eax
jne 0x4bfc24
mov eax, dword [ebp + 0x1c]
or word [eax + 0x4e], 1
xor eax, eax
mov byte [edi + 0xa5], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
cmp byte [eax + 9], 0
je 0x4bfc3c
inc dword [eax + 0xc]
cmp byte [eax + 0xa], 0
jne 0x4bfc3c
push eax
call fcn.0046fbd0
add esp, 4
mov eax, dword [esi + ebp + 4]
cmp byte [eax + 8], 0
jne 0x4bfc7d
push 0
push 0
push eax
call fcn.004a6510
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4bfc75
push ebx
call fcn.004af2c0
push eax
push edi
push dword [esp + 0x84]
call fcn.004cef20
add esp, 0x10
jmp 0x4bfdfb
mov dword [esp + 0x1c], 1
mov edx, 0x28
lea eax, [esp + 0x24]
xor ebx, ebx
mov edi, ebp
sub edx, eax
mov dword [esp + 0x10], edx
mov esi, dword [edi + esi + 4]
cmp byte [esi + 9], 0
mov eax, dword [esi + 4]
mov dword [esp + 0x20], eax
je 0x4bfcbb
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x4bfcbb
push esi
call fcn.0046fbd0
mov eax, dword [esp + 0x24]
add esp, 4
mov edx, dword [esp + 0x10]
lea ebp, [ebx + 1]
cmp ebp, 0xf
jne 0x4bfcd1
mov eax, dword [eax]
mov eax, dword [eax + 0x64]
add eax, dword [esi + 0x14]
mov dword [esp + ebx*4 + 0x24], eax
jmp 0x4bfcec
mov eax, dword [eax + 0xc]
lea ecx, [ebx*4]
mov eax, dword [eax + 0x38]
add eax, edx
add eax, ecx
mov eax, dword [esp + eax + 0x24]
bswap eax
mov dword [esp + ecx + 0x24], eax
cmp byte [esi + 9], 0
je 0x4bfd00
dec dword [esi + 0xc]
jne 0x4bfd00
push esi
call fcn.004eb950
add esp, 4
mov edx, dword [esp + 0x10]
mov ebx, ebp
mov esi, dword [esp + 0x7c]
cmp ebx, 5
jl 0x4bfc90
mov edi, dword [esp + 0x70]
mov eax, dword [edi + 0x20]
and eax, 0x2000000
or eax, 0
je 0x4bfd3e
xor edx, edx
mov ebx, edx
mov dword [esp + 0x24], edx
mov esi, edx
mov dword [esp + 0x28], ebx
mov ecx, edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
jmp 0x4bfd4e
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x7c]
mov eax, dword [eax + ebp + 0xc]
mov dword [eax], edx
test ecx, ecx
je 0x4bfd88
cmp dword [esp + 0x74], 0
jne 0x4bfdc2
test byte [edi + 0x18], 0x40
jne 0x4bfdc2
and cl, 3
mov byte [esp + 0x70], cl
jne 0x4bfd7b
mov byte [esp + 0x70], 1
push dword [esp + 0x70]
push edi
call fcn.004cef90
add esp, 8
mov edx, dword [esp + 0x7c]
mov al, byte [edi + 0x4e]
mov ecx, dword [edx + ebp + 0xc]
mov byte [ecx + 0x4d], al
mov eax, dword [edx + ebp + 0xc]
cmp dword [eax + 0x50], 0
jne 0x4bfeab
test esi, esi
jns 0x4bfe8a
cmp esi, 0x80000000
jne 0x4bfe86
mov esi, 0x7fffffff
jmp 0x4bfe91
and ecx, 3
cmp cl, byte [edi + 0x4e]
je 0x4bfd88
push str.attached_databases_must_use_the_same_text_encoding_as_main_database
push edi
push dword [esp + 0x80]
call fcn.004cef20
add esp, 0xc
mov ebx, 1
mov esi, dword [esp + 0x7c]
cmp dword [esp + 0x1c], 0
je 0x4bfdfb
push dword [esi + ebp + 4]
call fcn.004a6b00
add esp, 4
mov eax, dword [esi + ebp + 4]
cmp byte [eax + 9], 0
je 0x4bfe13
dec dword [eax + 0xc]
jne 0x4bfe13
push eax
call fcn.004eb950
add esp, 4
mov ebp, dword [esp + 0x74]
test ebx, ebx
je 0x4bfe75
cmp ebx, 7
je 0x4bfe28
cmp ebx, 0xc0a
jne 0x4bfe6b
cmp byte [edi + 0x51], 0
jne 0x4bfe6b
cmp byte [edi + 0x52], 0
jne 0x4bfe6b
cmp dword [edi + 0xbc], 0
mov byte [edi + 0x51], 1
jle 0x4bfe4b
mov dword [edi + 0x110], 1
inc dword [edi + 0x118]
xor eax, eax
mov word [edi + 0x11c], ax
mov eax, dword [edi + 0xf4]
test eax, eax
je 0x4bfe6b
mov dword [eax + 0xc], 7
push ebp
push edi
call fcn.004ca8d0
add esp, 8
mov byte [edi + 0xa5], 0
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
neg esi
test esi, esi
jne 0x4bfe91
mov esi, 0xfffff830
mov dword [eax + 0x50], esi
mov esi, edx
mov eax, dword [esi + ebp + 0xc]
push dword [eax + 0x50]
push dword [esi + ebp + 4]
call fcn.004a9630
add esp, 8
jmp 0x4bfead
mov esi, edx
mov eax, dword [esi + ebp + 0xc]
mov byte [eax + 0x4c], bl
mov eax, dword [esi + ebp + 0xc]
cmp byte [eax + 0x4c], 0
jne 0x4bfec2
mov byte [eax + 0x4c], 1
mov eax, dword [esi + ebp + 0xc]
cmp byte [eax + 0x4c], 4
jbe 0x4bfeeb
push str.unsupported_file_format
push edi
push dword [esp + 0x80]
call fcn.004cef20
add esp, 0xc
mov ebx, 1
jmp 0x4bfde8
cmp dword [esp + 0x74], 0
jne 0x4bff01
cmp ebx, 4
jl 0x4bff01
mov eax, dword [edi + 0x24]
and dword [edi + 0x20], 0xfffffffd
mov dword [edi + 0x24], eax
mov eax, dword [esi + ebp + 4]
push dword [esp + 0x18]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x6c], eax
mov eax, dword [edi + 0x10]
push dword [esi + eax]
push str.SELECTFROM__w_._s_ORDER_BY_rowid
push edi
call fcn.004c2dc0
mov esi, dword [edi + 0x150]
lea ecx, [esp + 0x60]
push 0
push ecx
push fcn.004bf920
push eax
push edi
mov dword [esp + 0x9c], eax
mov dword [edi + 0x150], 0
call fcn.004589a0
mov ebx, eax
mov dword [edi + 0x150], esi
add esp, 0x24
test ebx, ebx
jne 0x4bff61
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x78]
test eax, eax
je 0x4bff73
push eax
push edi
call fcn.004ad230
add esp, 8
test ebx, ebx
jne 0x4bff84
push dword [esp + 0x74]
push edi
call fcn.004a45d0
add esp, 8
cmp byte [edi + 0x51], 0
je 0x4bff9a
push edi
mov ebx, 7
call fcn.004ca850
add esp, 4
jmp 0x4bff9e
test ebx, ebx
je 0x4bffaf
mov eax, dword [edi + 0x20]
and eax, 0x8000000
or eax, 0
je 0x4bfde4
mov eax, dword [edi + 0x10]
mov esi, dword [esp + 0x7c]
mov eax, dword [esi + eax + 0xc]
or word [eax + 0x4e], 1
xor ebx, ebx
jmp 0x4bfde8