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

Disassembly:
sub esp, 0x58
push ebx
push ebp
mov ebp, dword [esp + 0x68]
push esi
cmp ebp, 1
push edi
jne 0x4ccde0
mov ebx, str.sqlite_temp_master
mov eax, 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 + 0x10], ebx
jmp 0x4ccdf1
mov dword [esp + 0x10], str.sqlite_master
mov eax, str.CREATE_TABLE_sqlite_master__n__type_text__n__name_text__n__tbl_name_text__n__rootpage_integer__n__sql_text_n_
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x6c]
xor edi, edi
lea ecx, [esp + 0x30]
push edi
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x78]
push ecx
lea edx, [esp + 0x28]
push 3
push edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 0x5be968
mov dword [esp + 0x4c], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], eax
call fcn.004ccae0
mov eax, dword [esp + 0x3c]
add esp, 0x10
cmp eax, edi
je 0x4cce43
mov ebp, eax
jmp 0x4cd114
mov eax, dword [esi + 8]
lea edi, [ebp + ebp*2]
shl edi, 3
mov dword [esp + 0x6c], edi
mov ecx, dword [eax + edi]
push ecx
push ebx
push esi
call fcn.004c9a40
add esp, 0xc
test eax, eax
je 0x4cce67
or byte [eax + 0x22], 1
mov eax, dword [esi + 8]
mov dword [esp + 0x18], eax
mov ecx, dword [eax + edi + 4]
lea edi, [eax + edi + 4]
test ecx, ecx
mov dword [esp + 0x14], edi
jne 0x4cce94
cmp ebp, 1
jne 0x4cce8a
mov eax, dword [eax + 0x2c]
or byte [eax + 0x4a], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x58
ret
call fcn.004c8600
push eax
call fcn.004b0a10
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x1c], ebx
jne 0x4ccebf
mov ebp, 7
mov byte [esi + 0x1e], 1
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov edx, dword [edi]
push edx
call fcn.004b3a40
mov eax, dword [edi]
push ebx
push 0
push 0
push 1
push eax
call fcn.004c3a80
mov ebp, eax
add esp, 0x18
test ebp, ebp
je 0x4ccf03
cmp ebp, 0x10
je 0x4ccf2f
push ebp
call fcn.004ecbe0
mov ecx, dword [esp + 0x78]
push eax
push 0x5bf050
push esi
push ecx
call fcn.004be0e0
add esp, 0x14
jmp 0x4cd0f5
xor eax, eax
lea ebx, [esp + 0x40]
mov edx, dword [esp + 0x14]
lea edi, [eax + 1]
push ebx
push edi
mov eax, dword [edx]
push eax
call fcn.004b9030
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x4ccee4
mov eax, edi
add ebx, 4
cmp eax, 0xa
jl 0x4ccf09
jmp 0x4ccf3c
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x40]
mov eax, dword [edx + ebx + 0x14]
lea edi, [edx + ebx + 0x14]
mov dword [eax], ecx
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4ccfaa
mov ecx, dword [esp + 0x70]
mov edx, dword [esi + 8]
test ecx, ecx
mov ecx, dword [edx + 0x14]
jne 0x4ccf84
push 0
push 6
push str.BINARY
push 1
push esi
mov byte [ecx + 0x49], al
call fcn.004cd1a0
add esp, 0x14
mov dword [esi + 0x2c], eax
jmp 0x4ccfb5
xor edx, edx
mov dl, byte [ecx + 0x49]
cmp eax, edx
je 0x4ccfb5
mov eax, dword [esp + 0x74]
push str.attached_databases_must_use_the_same_text_encoding_as_main_database
push esi
push eax
call fcn.004be0e0
add esp, 0xc
mov ebp, 1
jmp 0x4cd0f5
mov ecx, dword [esi + 8]
mov eax, dword [ecx + ebx + 0x14]
or byte [eax + 0x4a], 4
mov edx, dword [esi + 8]
mov ecx, dword [edi]
mov eax, dword [edx + 0x14]
mov dl, byte [eax + 0x49]
mov byte [ecx + 0x49], dl
mov ecx, dword [edi]
mov eax, dword [ecx + 0x4c]
test eax, eax
jne 0x4ccff7
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x4ccfdb
mov eax, 0x7d0
jmp 0x4ccfdf
jge 0x4ccfdf
neg eax
mov edx, dword [esp + 0x14]
mov dword [ecx + 0x4c], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x4c]
mov eax, dword [edx]
push ecx
push eax
call fcn.004cd130
add esp, 8
mov ecx, dword [edi]
mov dl, byte [esp + 0x44]
mov byte [ecx + 0x48], dl
mov eax, dword [edi]
mov cl, byte [eax + 0x48]
test cl, cl
jne 0x4cd00d
mov byte [eax + 0x48], 1
mov eax, dword [edi]
cmp byte [eax + 0x48], 4
jbe 0x4cd032
mov ecx, dword [esp + 0x74]
push str.unsupported_file_format
push esi
push ecx
call fcn.004be0e0
add esp, 0xc
mov ebp, 1
jmp 0x4cd0f5
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x4cd04a
cmp dword [esp + 0x44], 4
jl 0x4cd04a
mov eax, dword [esi + 0xc]
and ah, 0x7f
mov dword [esi + 0xc], eax
cmp ebp, 0x10
jne 0x4cd053
xor ebp, ebp
jmp 0x4cd0c2
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x10]
push edx
mov ecx, dword [eax + ebx]
push ecx
push str.SELECT_name__rootpage__sql_FROM__q._s
push esi
call fcn.004bccf0
mov ebx, dword [esi + 0xf8]
lea edx, [esp + 0x30]
push 0
mov edi, eax
push edx
push fcn.004ccae0
push edi
push esi
mov dword [esi + 0xf8], 0
call fcn.004cc4f0
mov ebp, eax
add esp, 0x24
test ebp, ebp
mov dword [esi + 0xf8], ebx
jne 0x4cd0a2
mov ebp, dword [esp + 0x2c]
push edi
push esi
call fcn.004b0830
add esp, 8
test ebp, ebp
jne 0x4cd0be
mov eax, dword [esp + 0x70]
push eax
push esi
call fcn.004c9440
add esp, 8
mov ebx, dword [esp + 0x6c]
mov al, byte [esi + 0x1e]
test al, al
je 0x4cd0db
push 0
push esi
mov ebp, 7
call fcn.004ca1d0
add esp, 8
jmp 0x4cd0df
test ebp, ebp
je 0x4cd0e8
test dword [esi + 0xc], 0x40000
je 0x4cd0f5
mov ecx, dword [esi + 8]
mov eax, dword [ecx + ebx + 0x14]
or byte [eax + 0x4a], 1
xor ebp, ebp
mov edi, dword [esp + 0x1c]
push edi
call fcn.004bc040
push edi
call fcn.004b07d0
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
push eax
call fcn.004b3ae0
add esp, 0xc
cmp ebp, 7
je 0x4cd121
cmp ebp, 0xc0a
jne 0x4cd125
mov byte [esi + 0x1e], 1
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x58
ret