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

Disassembly:
sub esp, 0x84
cmp dword [esp + 0x90], 0
push ebp
mov ebp, dword [esp + 0x8c]
push edi
mov edi, dword [ebp]
mov dword [esp + 8], edi
jne 0x60ffee
cmp dword [esp + 0x9c], 0
je 0x61033f
cmp byte [edi + 0x38], 0
jne 0x61033f
push ebx
mov ebx, dword [ebp + 0x1fc]
test ebx, ebx
je 0x61033e
push esi
mov esi, dword [ebx + 0x40]
mov ecx, edi
call fcn.005d2870
mov esi, dword [ebx + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], esi
test esi, esi
je 0x6100d7
xor eax, eax
push 0x50
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x4c]
push eax
call fcn.00566330
mov edx, dword [ebx]
mov ecx, 1
lea eax, [esp + 0x50]
add esp, 0xc
mov word [esp + 0x44], cx
mov dword [esp + 0x54], edx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x78], 0xffffffff
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], eax
mov byte [esp + 0x40], 4
cmp dword [esi], 0
mov dword [esp + 0x18], 0
jle 0x6100d7
mov dword [esp + 0x20], 0
jmp 0x6100a2
mov esi, ecx
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x20]
mov edi, dword [edx + ecx]
lea esi, [esp + 0x24]
call fcn.005ebcd0
test eax, eax
jne 0x61033d
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add dword [esp + 0x20], 0x14
inc eax
cmp eax, dword [ecx]
mov dword [esp + 0x18], eax
jl 0x6100a0
mov edi, dword [esp + 0x10]
cmp byte [edi + 0x81], 0
je 0x6100f3
mov edx, dword [edi + 0x7c]
mov dword [ebx + 0x20], edx
cmp byte [edi + 0x81], 0
jne 0x6102c7
mov edi, ebp
call fcn.005e1760
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
je 0x61033d
xor eax, eax
push edi
lea ecx, [eax + 0x2d]
call fcn.005d7f90
add esp, 4
cmp dword [ebx + 0xc], 0
jne 0x61012b
mov dword [esp + 0x14], str.table
mov edx, str.TABLE
jmp 0x610138
mov dword [esp + 0x14], str.view
mov edx, str.VIEW
mov esi, dword [esp + 0xa4]
test esi, esi
je 0x6101e7
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x194]
push eax
push ecx
push 1
push 0x28
mov eax, edi
call fcn.005d7f10
mov dl, 2
mov eax, edi
call fcn.005cfe60
push 8
mov edx, 1
lea eax, [esp + 0x38]
mov dword [ebp + 0x48], 2
call fcn.005d2900
mov edx, eax
push edx
push esi
push ebp
call fcn.0060d310
mov eax, 1
push edi
lea ecx, [eax + 0x2c]
call fcn.005d7f90
add esp, 0x24
cmp dword [ebp + 0x44], 0
jne 0x6101d7
push ebp
mov eax, esi
call fcn.0060fd40
add esp, 4
test eax, eax
je 0x61033d
mov cx, word [eax + 0x26]
mov word [ebx + 0x26], cx
mov edx, dword [eax + 4]
mov dword [ebx + 4], edx
mov edx, dword [esp + 0x10]
xor ecx, ecx
push eax
push edx
mov word [eax + 0x26], cx
mov dword [eax + 4], ecx
call fcn.005dfa10
add esp, 8
mov eax, dword [esp + 0x10]
push ebx
push eax
call fcn.005dfd70
add esp, 8
jmp 0x61020d
mov ecx, dword [ebp + 0x208]
mov eax, dword [esp + 0xa0]
mov eax, dword [eax]
mov esi, dword [esp + 0x10]
sub eax, ecx
push ecx
inc eax
push eax
push edx
push str.CREATE__s__.s
call fcn.005dc8b0
add esp, 0x10
mov esi, dword [esp + 0x1c]
mov edi, eax
mov ecx, str.sqlite_temp_master
cmp esi, 1
je 0x610222
mov ecx, str.sqlite_master
mov edx, dword [ebp + 0x190]
mov eax, dword [ebx]
push edx
mov edx, dword [ebp + 0x194]
push edi
push edx
push eax
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x10]
shl esi, 4
mov eax, dword [esi + edx]
push eax
push str.UPDATE__Q._s_SET_type_s__name_Q__tbl_name_Q__rootpage_d__sql_Q_WHERE_rowid_d
push ebp
call fcn.005df950
mov ecx, dword [esp + 0x38]
mov edx, edi
call fcn.005ca970
mov ecx, dword [esp + 0x44]
push ecx
mov edi, ebp
call fcn.005d9ed0
add esp, 0x2c
test byte [ebx + 0x2a], 8
je 0x610298
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + esi + 0xc]
add eax, esi
cmp dword [ecx + 0x48], 0
jne 0x610298
mov edx, dword [eax]
push edx
push str.CREATE_TABLE__Q.sqlite_sequence_name_seq_
push ebp
call fcn.005df950
add esp, 0xc
mov eax, dword [ebx]
mov esi, dword [esp + 0x10]
push eax
push str.tbl_name_q
call fcn.005dc8b0
mov esi, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
call fcn.005de590
mov edi, dword [esp + 0x1c]
add esp, 0xc
cmp byte [edi + 0x81], 0
je 0x61033d
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x40]
push ebx
call fcn.005cabe0
push ecx
lea ecx, [edx + 8]
call fcn.005d5800
add esp, 8
test eax, eax
je 0x6102f1
pop esi
pop ebx
mov byte [edi + 0x38], 1
pop edi
pop ebp
add esp, 0x84
ret
mov dword [ebp + 0x1fc], 0
or dword [edi + 0x18], 2
cmp dword [ebx + 0xc], 0
jne 0x61033d
mov ecx, dword [esp + 0x9c]
cmp dword [ecx], 0
mov ebp, dword [ebp + 0x208]
jne 0x610325
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x9c], edx
mov eax, dword [esp + 0x9c]
mov edx, dword [eax]
sub edx, ebp
mov ecx, ebp
call fcn.005cab10
add eax, 0xd
mov dword [ebx + 0x2c], eax
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x84
ret