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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push edi
mov edi, dword [esp + 0x6c]
cmp edi, 1
jne 0x5deeef
mov ebp, str.sqlite_temp_master
mov ebx, 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], ebp
jmp 0x5def00
mov dword [esp + 0x14], str.sqlite_master
mov ebp, dword [esp + 0x14]
mov ebx, 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.005e0a30
mov eax, dword [esp + 0x74]
push 0
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x2c]
push 3
push edx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], 0x70d8ac
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 0
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], eax
call fcn.005ded80
add esp, 0x14
test eax, eax
je 0x5def57
push esi
call fcn.005e09f0
mov edi, dword [esp + 0x30]
jmp 0x5df295
mov eax, dword [esi + 8]
lea ebx, [edi + edi*2]
shl ebx, 3
mov ecx, dword [eax + ebx]
push ecx
push ebp
push esi
mov dword [esp + 0x24], ebx
call fcn.005eb140
add esp, 0xc
test eax, eax
je 0x5def7a
mov byte [eax + 0x34], 1
push esi
call fcn.005e09f0
mov ecx, dword [esi + 8]
mov eax, dword [ecx + ebx + 4]
lea ebp, [ecx + ebx + 4]
add esp, 4
test eax, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], ebp
jne 0x5defaf
cmp edi, 1
jne 0x5defa6
mov ecx, dword [ecx + 0x2c]
or byte [ecx + 0x5a], 1
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c
ret
push eax
call fcn.005f4590
mov eax, dword [ebp]
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0
push 1
push eax
call fcn.005e8880
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x5df004
cmp edi, 0x10
je 0x5df06a
push 0
push edi
call fcn.005dc200
mov ecx, dword [esp + 0x78]
add esp, 4
push eax
push ecx
call fcn.005f2110
mov edx, dword [ebp]
push edx
call fcn.005f4640
add esp, 0x10
jmp 0x5df298
xor ebp, ebp
lea ebx, [esp + 0x40]
lea ebx, [ebx]
cmp ebp, 0xa
jae 0x5df032
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push ebx
inc ebp
push ebp
push ecx
call fcn.005e74b0
mov edi, eax
add esp, 0xc
add ebx, 4
test edi, edi
je 0x5df010
jmp 0x5df036
test edi, edi
je 0x5df096
push 0
push edi
call fcn.005dc200
mov edx, dword [esp + 0x78]
add esp, 4
push eax
push edx
call fcn.005f2110
mov eax, dword [esp + 0x1c]
push eax
call fcn.005e44d0
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
push edx
call fcn.005f4640
add esp, 0x14
jmp 0x5df298
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
jmp 0x5df09a
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
mov edx, dword [ecx + ebx + 0x14]
lea ebp, [ecx + ebx + 0x14]
mov dword [edx], eax
mov eax, dword [esp + 0x50]
test eax, eax
je 0x5df11c
mov ecx, dword [esp + 0x6c]
test ecx, ecx
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x14]
jne 0x5df0de
push 0
push 6
push str.BINARY
push 1
push esi
mov byte [edx + 0x59], al
call fcn.005f19f0
add esp, 0x14
mov dword [esi + 0x24], eax
jmp 0x5df127
movzx ecx, byte [edx + 0x59]
cmp eax, ecx
je 0x5df127
mov edx, dword [esp + 0x10]
push edx
call fcn.005e44d0
mov eax, dword [esp + 0x74]
push 0
push str.attached_databases_must_use_the_same_text_encoding_as_main_database
push eax
call fcn.005f2110
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
push edx
call fcn.005f4640
add esp, 0x14
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x5c
ret
mov eax, dword [esi + 8]
mov eax, dword [eax + ebx + 0x14]
or byte [eax + 0x5a], 4
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp]
mov cl, byte [edx + 0x59]
mov byte [eax + 0x59], cl
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x5df143
mov eax, 0x7d0
mov edx, dword [ebp]
mov dword [edx + 0x5c], eax
mov eax, dword [ebp]
mov ecx, dword [eax + 0x5c]
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push ecx
push eax
call fcn.005e38f0
mov ecx, dword [ebp]
mov dl, byte [esp + 0x4c]
mov byte [ecx + 0x58], dl
mov eax, dword [ebp]
mov cl, byte [eax + 0x58]
add esp, 8
test cl, cl
jne 0x5df179
mov ecx, eax
mov byte [ecx + 0x58], 1
mov edx, dword [ebp]
cmp byte [edx + 0x58], 4
jbe 0x5df1b8
mov eax, dword [esp + 0x10]
push eax
call fcn.005e44d0
mov ecx, dword [esp + 0x74]
push 0
push str.unsupported_file_format
push ecx
call fcn.005f2110
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
push eax
call fcn.005f4640
add esp, 0x14
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x5c
ret
cmp edi, 0x10
jne 0x5df1c4
xor edi, edi
jmp 0x5df256
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 8]
mov eax, dword [edx + ebx]
push ecx
push eax
push str.SELECT_name__rootpage__sql_FROM__q._s
push esi
call fcn.005fdcd0
push esi
mov ebp, eax
call fcn.005e0a30
mov ecx, dword [esi + 0xb0]
push 0
lea edx, [esp + 0x38]
push edx
push fcn.005ded80
push ebp
push esi
mov dword [esp + 0x98], ecx
mov dword [esi + 0xb0], 0
call fcn.005dd820
mov edi, eax
mov eax, dword [esp + 0x98]
add esp, 0x28
cmp edi, 4
mov dword [esi + 0xb0], eax
jne 0x5df228
mov edi, dword [esp + 0x2c]
push esi
call fcn.005e09f0
push ebp
call fcn.005dd690
add esp, 8
test edi, edi
jne 0x5df249
mov ecx, dword [esp + 0x6c]
push ecx
push esi
call fcn.005fe530
add esp, 8
mov edx, dword [esp + 0x10]
push edx
call fcn.005e44d0
add esp, 4
mov al, byte [esi + 0x1e]
test al, al
je 0x5df26f
push 0
push esi
mov edi, 7
call fcn.005eb3d0
add esp, 8
jmp 0x5df273
test edi, edi
je 0x5df27c
test dword [esi + 0xc], 0x40000
je 0x5df289
mov eax, dword [esi + 8]
mov ebx, dword [eax + ebx + 0x14]
or byte [ebx + 0x5a], 1
xor edi, edi
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
push edx
call fcn.005f4640
add esp, 4
cmp edi, 7
je 0x5df2a5
cmp edi, 0xc0a
jne 0x5df2a9
mov byte [esi + 0x1e], 1
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x5c
ret