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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
mov ebp, dword [esp + 0x60]
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x60]
mov eax, dword [edi]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
cmp byte [eax + 0x38], bl
jne 0x1005905c
cmp byte [edi + 0x1d5], bl
jne 0x1005905c
mov esi, eax
cmp byte [esi + 0x81], bl
jne 0x10058a61
lea eax, [edi + 4]
push eax
call fcn.10068dc0
add esp, 4
cmp eax, ebx
je 0x10058a61
inc dword [edi + 0x44]
mov dword [edi + 0xc], eax
jmp 0x1005905c
cmp dword [esp + 0x6c], ebx
je 0x10058b15
mov edx, dword [esp + 0x64]
push edi
lea ecx, [esp + 0x24]
mov eax, ebp
call fcn.10055fc0
add esp, 4
cmp eax, ebx
mov dword [esp + 0x18], eax
jl 0x1005905c
mov ecx, esi
mov esi, dword [esp + 0x6c]
cmp byte [ecx + 0x81], bl
jne 0x10058ac4
mov eax, esi
mov ebx, edi
call fcn.1005ae20
cmp dword [ebp + 4], 0
jne 0x10058ac2
test eax, eax
je 0x10058ac2
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0x10]
mov edx, dword [eax + 0x40]
cmp edx, dword [ecx + 0x1c]
jne 0x10058ac2
mov dword [esp + 0x18], 1
xor ebx, ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
push eax
push str.index
mov edx, edi
lea eax, [esp + 0x4c]
call fcn.10054b20
add esp, 8
test eax, eax
je 0x10058af2
lea ecx, [esp + 0x44]
push esi
push ecx
call fcn.10054b60
add esp, 8
add esi, 8
push esi
push ebx
mov eax, edi
call fcn.100557f0
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x1005905c
mov ebp, dword [esp + 0x10]
mov ebx, eax
jmp 0x10058b3b
mov eax, dword [edi + 0x1fc]
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x1005905c
mov ebp, dword [esp + 0x10]
mov ebx, eax
mov esi, dword [ebx + 0x40]
mov ecx, ebp
call fcn.10069140
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebx]
shl eax, 4
push 7
add ecx, eax
push str.sqlite_
push esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x34], ecx
call sym.NirvanaBiz.dll_sqlite3_strnicmp
add esp, 0xc
test eax, eax
jne 0x10058b8f
push 9
lea edx, [esi + 7]
push str.altertab_
push edx
call sym.NirvanaBiz.dll_sqlite3_strnicmp
add esp, 0xc
test eax, eax
je 0x10058b8f
push esi
push str.table__s_may_not_be_indexed
call fcn.10025f30
add esp, 8
jmp 0x1005905c
cmp dword [ebx + 0xc], 0
je 0x10058ba7
push str.views_may_not_be_indexed
call fcn.10025f30
add esp, 4
jmp 0x1005905c
test byte [ebx + 0x2a], 0x10
je 0x10058bbf
push str.virtual_tables_may_not_be_indexed
call fcn.10025f30
add esp, 4
jmp 0x1005905c
cmp dword [esp + 0x20], 0
je 0x10058c69
mov eax, dword [esp + 0x20]
push ebp
call fcn.10055e10
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1005905c
mov esi, eax
mov eax, edi
call fcn.10056050
test eax, eax
jne 0x1005905c
mov ebx, dword [esp + 0x10]
cmp byte [ebx + 0x81], al
jne 0x10058c22
push eax
push esi
push ebx
call fcn.10055660
add esp, 0xc
test eax, eax
je 0x10058c22
push esi
push str.there_is_already_a_table_named__s
call fcn.10025f30
add esp, 8
jmp 0x1005905c
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push ecx
push esi
mov ecx, ebx
call fcn.10055850
add esp, 8
test eax, eax
je 0x10058c9a
cmp dword [esp + 0x84], 0
jne 0x10058c55
push esi
push str.index__s_already_exists
call fcn.10025f30
add esp, 8
jmp 0x1005905c
mov edx, dword [esp + 0x18]
push edx
mov eax, edi
call fcn.10059ee0
add esp, 4
jmp 0x1005905c
mov eax, dword [ebx + 8]
mov ecx, 1
test eax, eax
je 0x10058c7d
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x10058c75
push ecx
push esi
push str.sqlite_autoindex__s__d
mov esi, ebp
call fcn.10025410
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1005905c
mov eax, dword [esp + 0x28]
mov esi, dword [eax]
mov ebx, 1
mov eax, str.sqlite_temp_master
cmp dword [esp + 0x18], ebx
je 0x10058cb5
mov eax, str.sqlite_master
push esi
push 0
push eax
push 0x12
mov eax, edi
call fcn.10054ff0
add esp, 0x10
test eax, eax
jne 0x1005905c
mov eax, ebx
cmp dword [esp + 0x18], ebx
jne 0x10058cda
mov eax, 3
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x1c]
push esi
push edx
push ecx
push eax
mov eax, edi
call fcn.10054ff0
add esp, 0x10
test eax, eax
jne 0x1005905c
mov esi, dword [esp + 0x70]
test esi, esi
jne 0x10058d59
mov ecx, dword [esp + 0x14]
movsx eax, word [ecx + 0x26]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 4]
mov ecx, dword [eax + edx*8 - 0x18]
mov dword [esp + 0x34], ecx
call fcn.10025ea0
mov dword [esp + 0x38], eax
push esi
xor ecx, ecx
mov eax, edi
call fcn.1004ddd0
add esp, 4
mov dword [esp + 0x70], eax
test eax, eax
je 0x1005905c
push esi
mov esi, eax
push edi
lea edx, [esp + 0x3c]
mov ecx, esi
call fcn.1004de70
mov ecx, dword [esi + 8]
mov dl, byte [esp + 0x88]
add esp, 8
mov byte [ecx + 0xc], dl
xor ebp, ebp
cmp dword [esi], ebp
jle 0x10058d8f
xor ebx, ebx
mov eax, dword [esi + 8]
mov ecx, dword [ebx + eax]
test ecx, ecx
je 0x10058d87
call fcn.1004c950
test eax, eax
je 0x10058d87
mov ecx, dword [eax]
call fcn.10025ea0
mov ecx, dword [esp + 0x24]
lea edx, [ecx + eax + 1]
mov dword [esp + 0x24], edx
inc ebp
add ebx, 0x18
cmp ebp, dword [esi]
jl 0x10058d61
mov ecx, dword [esp + 0x1c]
call fcn.10025ea0
mov ebx, eax
mov eax, dword [esp + 0x70]
mov esi, dword [eax]
mov eax, dword [esp + 0x24]
lea ecx, [esi*4 + 0xb]
and ecx, 0xfffffff8
add ecx, ebx
lea edx, [esi + esi*8]
add edx, ecx
lea edi, [edx + eax + 0x31]
mov eax, dword [esp + 0x10]
call fcn.100240c0
mov ecx, dword [esp + 0x10]
cmp byte [ecx + 0x38], 0
mov ebp, eax
jne 0x10059041
lea eax, [ebp + 0x30]
mov dword [ebp + 8], eax
lea edx, [esi*4 + 8]
and edx, 0xfffffff8
add eax, edx
mov edx, dword [esp + 0x1c]
mov dword [ebp + 0x20], eax
lea eax, [eax + esi*4]
mov dword [ebp + 4], eax
lea eax, [eax + esi*4]
mov dword [ebp + 0x1c], eax
add eax, esi
lea ecx, [eax + ebx + 1]
inc ebx
push ebx
push edx
push eax
mov dword [ebp], eax
mov dword [esp + 0x38], ecx
call sub.MSVCR90.dll_memcpy
mov eax, dword [esp + 0x7c]
mov esi, dword [esp + 0x20]
mov dl, byte [esp + 0x80]
mov edi, dword [esp + 0x1c]
mov dword [ebp + 0xc], esi
mov cx, word [eax]
mov word [ebp + 0x28], cx
xor ecx, ecx
add esp, 0xc
cmp dword [esp + 0x20], ecx
mov byte [ebp + 0x2a], dl
sete cl
mov dword [esp + 0x30], 0
xor ecx, dword [ebp + 0x2c]
and ecx, 3
xor dword [ebp + 0x2c], ecx
mov edx, dword [edi + 0x10]
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + edx + 0xc]
mov ecx, dword [esp + 0x28]
mov dword [ebp + 0x18], edx
mov edx, dword [ecx + 0xc]
cmp byte [edx + 0x4c], 4
mov ecx, dword [eax + 8]
sbb ebx, ebx
neg ebx
dec ebx
cmp dword [eax], 0
mov dword [esp + 0x24], ecx
jle 0x10058f80
jmp 0x10058e80
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 4]
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + 4]
mov dword [esp + 0x34], eax
movsx eax, word [edi + 0x26]
xor esi, esi
mov dword [esp + 0x28], ecx
test eax, eax
jle 0x10058ec6
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
mov ecx, dword [esp + 0x34]
push eax
push ecx
call sym.NirvanaBiz.dll_sqlite3_stricmp
add esp, 8
test eax, eax
je 0x10058ec6
movsx edx, word [edi + 0x26]
add dword [esp + 0x28], 0x18
inc esi
cmp esi, edx
jl 0x10058ea0
movsx eax, word [edi + 0x26]
cmp esi, eax
jge 0x1005908f
mov ecx, dword [esp + 0x30]
mov eax, dword [ebp + 4]
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4], esi
mov ecx, dword [edx]
test ecx, ecx
je 0x10058f16
mov edi, dword [esp + 0x60]
call fcn.1004c950
test eax, eax
je 0x10058f12
mov ecx, dword [eax]
call fcn.10025ea0
mov esi, dword [esp + 0x2c]
mov edi, eax
inc edi
push edi
push ecx
push esi
call sub.MSVCR90.dll_memcpy
add esp, 0xc
add dword [esp + 0x2c], edi
jmp 0x10058f29
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + 4]
lea eax, [esi + esi*2]
mov esi, dword [ecx + eax*8 + 0x10]
test esi, esi
jne 0x10058f29
mov esi, str.BINARY
mov edx, dword [esp + 0x10]
cmp byte [edx + 0x81], 0
jne 0x10058f47
mov edi, dword [esp + 0x60]
call fcn.10056bd0
test eax, eax
je 0x10059041
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp + 0x20]
mov dword [ecx + eax*4], esi
mov esi, dword [esp + 0x24]
mov dl, byte [esi + 0xc]
mov ecx, dword [ebp + 0x1c]
and dl, bl
mov byte [eax + ecx], dl
mov edx, dword [esp + 0x70]
inc eax
add esi, 0x18
cmp eax, dword [edx]
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], esi
jl 0x10058e80
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov edx, ebp
call fcn.100592e0
mov eax, dword [esp + 0x60]
cmp esi, dword [eax + 0x1fc]
jne 0x10059010
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x10059010
lea ebx, [ebx]
movzx eax, word [ebx + 0x28]
movzx ecx, word [ebp + 0x28]
cmp ax, cx
jne 0x10059009
movzx eax, ax
xor esi, esi
mov dword [esp + 0x30], eax
test eax, eax
jle 0x10058ffb
mov edi, dword [ebp + 4]
mov edx, dword [ebx + 4]
sub edx, edi
mov dword [esp + 0x34], edx
lea eax, [edi + esi*4]
mov ecx, dword [edx + eax]
cmp ecx, dword [eax]
jne 0x10058ffb
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebp + 0x20]
mov eax, dword [eax + esi*4]
mov ecx, dword [ecx + esi*4]
cmp eax, ecx
je 0x10058ff2
push ecx
push eax
call sym.NirvanaBiz.dll_sqlite3_stricmp
add esp, 8
test eax, eax
jne 0x10058ffb
mov edx, dword [esp + 0x34]
movzx eax, word [ebx + 0x28]
inc esi
cmp esi, eax
jl 0x10058fc6
cmp esi, dword [esp + 0x30]
je 0x100590b2
mov edi, dword [esp + 0x10]
mov ebx, dword [ebx + 0x14]
test ebx, ebx
jne 0x10058fa0
cmp byte [edi + 0x81], 0
je 0x1005910b
mov ecx, dword [ebp]
push ebp
call fcn.10025ea0
push ecx
mov ecx, dword [ebp + 0x18]
add ecx, 0x18
call fcn.10027230
add esp, 8
test eax, eax
je 0x100590ed
mov byte [edi + 0x38], 1
test ebp, ebp
je 0x1005905c
mov esi, dword [esp + 0x10]
mov eax, dword [ebp + 0x10]
mov ecx, esi
call fcn.10023eb0
mov eax, ebp
mov ecx, esi
call fcn.10023eb0
mov ecx, dword [esp + 0x70]
mov esi, dword [esp + 0x10]
push ecx
push esi
call fcn.1004df60
mov edx, dword [esp + 0x74]
push edx
call fcn.100598b0
mov eax, dword [esp + 0x28]
add esp, 0xc
mov ecx, esi
call fcn.10023eb0
mov eax, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov edi, dword [esp + 0x60]
push eax
push edx
push str.table__s_has_no_column_named__s
call fcn.10025f30
add esp, 0xc
mov byte [edi + 0x11], 1
jmp 0x10059041
mov al, byte [ebx + 0x2a]
mov cl, byte [ebp + 0x2a]
cmp al, cl
je 0x10059041
cmp al, 0x63
je 0x100590d8
cmp cl, 0x63
je 0x100590d8
mov edi, dword [esp + 0x60]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
call fcn.10025f30
add esp, 8
cmp byte [ebx + 0x2a], 0x63
jne 0x10059041
mov cl, byte [ebp + 0x2a]
mov byte [ebx + 0x2a], cl
jmp 0x10059041
or dword [edi + 0x18], 2
cmp dword [esp + 0x6c], 0
je 0x10059262
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x7c]
mov dword [ebp + 0x24], eax
jmp 0x10059262
mov edi, dword [esp + 0x60]
inc dword [edi + 0x4c]
mov ecx, dword [edi + 0x4c]
mov dword [esp + 0x30], ecx
call fcn.1006bf70
mov esi, eax
mov dword [esp + 0x34], esi
test esi, esi
je 0x10059041
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x60]
push 1
call fcn.1005a030
mov ebx, dword [esi + 0x1c]
add esp, 4
cmp dword [esi + 0x20], ebx
jg 0x10059151
mov edi, esi
call fcn.1003e3d0
test eax, eax
jne 0x1005917d
mov eax, dword [esi + 4]
inc dword [esi + 0x1c]
mov ecx, dword [esp + 0x18]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x30]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x68
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
cmp dword [esp + 0x78], 0
je 0x100591bf
cmp dword [esp + 0x74], 0
mov eax, 0x10138e32
je 0x10059195
mov eax, str._UNIQUE
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov esi, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x80]
mov edx, dword [edx]
sub edx, dword [ecx]
inc edx
push edx
push eax
push str.CREATE_s_INDEX__.s
call fcn.10025410
add esp, 0x10
mov esi, eax
jmp 0x100591c1
xor esi, esi
cmp dword [esp + 0x18], 1
mov eax, str.sqlite_temp_master
je 0x100591d2
mov eax, str.sqlite_master
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x60]
push esi
push ecx
mov ecx, dword [edx]
mov edx, dword [ebp]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
mov eax, dword [edi + 0x10]
mov edx, dword [ecx + eax]
push edx
push str.INSERT_INTO__Q._s_VALUES_index__Q__Q__d__Q__
call fcn.100555a0
add esp, 0x1c
mov eax, esi
mov ecx, edi
call fcn.10023eb0
cmp dword [esp + 0x6c], 0
je 0x10059262
mov eax, dword [esp + 0x30]
push eax
push ebp
push ebx
call fcn.100584b0
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
mov esi, ebx
call fcn.10056c40
mov edx, dword [ebp]
add esp, 4
push edx
push str.name_q_AND_typeindex
mov esi, edi
call fcn.10025410
mov esi, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.1003e5a0
push 0
push 0x81
mov eax, esi
call fcn.1003e500
add esp, 0x18
mov ecx, dword [esp + 0x10]
cmp byte [ecx + 0x81], 0
jne 0x1005927a
cmp dword [esp + 0x6c], 0
jne 0x10059041
mov ecx, dword [esp + 0x14]
mov edx, 5
cmp dword [esp + 0x74], edx
jne 0x100592c2
mov eax, dword [ecx + 8]
test eax, eax
je 0x100592c2
cmp byte [eax + 0x2a], dl
je 0x100592c2
cmp dword [eax + 0x14], 0
je 0x100592b0
jmp 0x100592a0
mov ecx, dword [eax + 0x14]
cmp byte [ecx + 0x2a], dl
je 0x100592b0
mov eax, ecx
cmp dword [eax + 0x14], 0
jne 0x100592a0
mov edx, dword [eax + 0x14]
mov dword [ebp + 0x14], edx
mov dword [eax + 0x14], ebp
mov dword [esp + 0x40], ebp
jmp 0x1005905c
mov eax, dword [ecx + 8]
mov dword [ebp + 0x14], eax
mov dword [ecx + 8], ebp
mov dword [esp + 0x40], ebp
jmp 0x1005905c