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

Disassembly:
sub esp, 0x70
push ebx
push ebp
mov ebp, dword [esp + 0x7c]
cmp ebp, 1
push edi
jne 0x48af0f
mov ebx, str.sqlite_temp_master
mov edi, str.CREATE_TEMP_TABLE_sqlite_temp_master__n__type_text__n__name_text__n__tbl_name_text__n__rootpage_integer__n__sql_text_n_
mov dword [esp + 0x14], ebx
jmp 0x48af20
mov dword [esp + 0x14], str.sqlite_master
mov ebx, dword [esp + 0x14]
mov edi, str.CREATE_TABLE_sqlite_master__n__type_text__n__name_text__n__tbl_name_text__n__rootpage_integer__n__sql_text_n_
push esi
call fcn.004929f0
push ebp
lea eax, [esp + 0x3c]
push 0x53c1b0
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0x53c1ac
mov dword [esp + 0x38], edi
call fcn.004bc41d
mov edx, dword [esp + 0x94]
push 0
lea eax, [esp + 0x34]
lea ecx, [esp + 0x48]
push eax
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x30]
push 4
push ecx
mov dword [esp + 0x50], 0
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], edx
call fcn.0048adf0
mov edi, eax
add esp, 0x20
test edi, edi
je 0x48af93
push esi
call fcn.004929a0
add esp, 4
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x70
ret
mov edx, dword [esi + 4]
mov edi, ebp
imul edi, edi, 0x6c
mov eax, dword [edx + edi]
push eax
push ebx
push esi
call fcn.00493f50
add esp, 0xc
test eax, eax
je 0x48afb1
mov byte [eax + 0x1c], 1
push esi
call fcn.004929a0
mov ecx, dword [esi + 4]
mov eax, dword [ecx + edi + 4]
add esp, 4
test eax, eax
jne 0x48afda
cmp ebp, 1
jne 0x48afd1
or byte [ecx + 0xc8], 1
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x70
ret
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0
push 1
push eax
call fcn.0049bed0
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x48b024
cmp ebx, 0x10
je 0x48b09d
push 0
push ebx
call fcn.0048a8c0
mov edx, dword [esp + 0x8c]
add esp, 4
push eax
push edx
call fcn.004921b0
add esp, 0xc
pop edi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x70
ret
lea ecx, [esp + 0x54]
xor eax, eax
mov dword [esp + 0x10], ecx
jmp 0x48b037
mov ebp, dword [esp + 0x80]
cmp eax, 0xa
jae 0x48b06a
mov edx, dword [esp + 0x10]
lea ebp, [eax + 1]
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi + 4]
push edx
push ebp
push ecx
call fcn.0049b1f0
mov edx, dword [esp + 0x1c]
mov ebx, eax
add edx, 4
add esp, 0xc
test ebx, ebx
mov eax, ebp
mov dword [esp + 0x10], edx
je 0x48b030
jmp 0x48b06e
test ebx, ebx
je 0x48b0c7
push 0
push ebx
call fcn.0048a8c0
mov edx, dword [esp + 0x8c]
add esp, 4
push eax
push edx
call fcn.004921b0
mov eax, dword [esp + 0x18]
push eax
call fcn.00498480
add esp, 0x10
pop edi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x70
ret
xor ecx, ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0x54]
mov edx, dword [esi + 4]
mov dword [edx + edi + 8], eax
mov eax, dword [esp + 0x64]
test eax, eax
je 0x48b0fc
test ebp, ebp
jne 0x48b15b
push ebp
push 6
push str.BINARY
push eax
push esi
mov byte [esi + 0x178], al
call fcn.00494760
add esp, 0x14
mov dword [esi + 0x124], eax
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x48b109
mov eax, 0x7d0
test ebp, ebp
mov ecx, dword [esi + 4]
mov dword [ecx + edi + 0x60], eax
mov eax, dword [esp + 0x58]
jne 0x48b129
test al, al
mov byte [esi + 0xe4], al
jne 0x48b129
mov byte [esi + 0xe4], 1
cmp eax, 1
jle 0x48b179
mov edx, dword [esp + 0xc]
push edx
call fcn.00498480
push 0
push str.unsupported_file_format
mov eax, dword [esp + 0x90]
push eax
call fcn.004921b0
add esp, 0x10
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x70
ret
movzx ecx, byte [esi + 0x178]
cmp eax, ecx
je 0x48b0fc
mov edx, dword [esp + 0xc]
push edx
call fcn.00498480
push 0
push str.attached_databases_must_use_the_same_text_encoding_as_main_database
jmp 0x48b13f
mov ecx, dword [esi + 4]
mov edx, dword [ecx + edi + 0x60]
lea eax, [ecx + edi]
mov eax, dword [eax + 4]
push edx
push eax
call fcn.00497f60
add esp, 8
cmp ebx, 0x10
jne 0x48b199
xor ebp, ebp
jmp 0x48b1ea
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 4]
mov eax, dword [edx + edi]
push ecx
push eax
lea ecx, [esp + 0x3c]
push ecx
push str.SELECT_name__rootpage__sql___s_FROM__q._s
call fcn.004a23a0
push esi
mov ebx, eax
call fcn.004929f0
push 0
lea edx, [esp + 0x30]
push edx
push fcn.0048adf0
push ebx
push esi
call fcn.004a1190
push esi
mov ebp, eax
call fcn.004929a0
push ebx
call fcn.00492060
mov eax, dword [esp + 0x3c]
push eax
call fcn.00498480
add esp, 0x34
mov eax, dword [0x588720]
test eax, eax
je 0x48b231
mov ecx, dword [esp + 0x84]
push 0
push str.out_of_memory
push ecx
call fcn.004921b0
push 0
push esi
mov ebp, 7
call fcn.00495880
add esp, 0x14
mov eax, dword [esp + 0x80]
push eax
push esi
call fcn.00495880
add esp, 8
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x70
ret
test ebp, ebp
jne 0x48b217
mov edx, dword [esi + 4]
or byte [edx + edi + 0x5c], 1
lea edi, [edx + edi + 0x5c]
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x70
ret