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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
xor eax, eax
mov dword [esp + 0x28], 0
mov dword [esp], eax
xor ecx, ecx
mov eax, dword [ebp + 0x24]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [eax], ecx
xor esi, esi
xor eax, eax
mov dword [esp + 0x18], esi
cmp dword [ebp + 0x20], eax
push edi
setne al
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x486c7a
push eax
call dword [0x58c190]
add esp, 4
push 0
push 0x1c
mov ecx, ebx
call fcn.0045a000
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
je 0x487259
xorps xmm0, xmm0
mov ecx, ebx
movdqu xmmword [edi], xmm0
push 0
movq qword [edi + 0x10], xmm0
push 0x220
mov dword [edi + 0x18], esi
call fcn.0045a000
mov edi, eax
add esp, 8
mov dword [esp + 0x10], edi
test edi, edi
je 0x487255
push 0x220
push 0
push edi
call fcn.00509d10
add esp, 0xc
mov dword [edi], ebx
test esi, esi
je 0x486d1d
cmp dword [ebx + 0x1c8], 0
je 0x486cee
mov edx, esi
mov ecx, ebx
call fcn.00459cc0
jmp 0x486d1d
cmp esi, dword [ebx + 0x120]
jb 0x486d14
cmp esi, dword [ebx + 0x124]
jae 0x486d14
mov eax, dword [ebx + 0x11c]
mov dword [esi], eax
dec dword [ebx + 0x108]
mov dword [ebx + 0x11c], esi
jmp 0x486d1d
push esi
call fcn.00459c50
add esp, 4
xor esi, esi
xor edi, edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], esi
cmp dword [ebx + 0x14], esi
jle 0x486d58
mov edi, edi
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + esi + 4]
test ecx, ecx
je 0x486d4f
cmp byte [ecx + 9], 0
je 0x486d4f
inc dword [ecx + 0xc]
cmp byte [ecx + 0xa], 0
jne 0x486d4f
call fcn.0046c150
inc edi
add esi, 0x10
cmp edi, dword [ebx + 0x14]
jl 0x486d30
push dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor edx, edx
mov esi, dword [esp + 0x14]
mov ecx, esi
push edi
call fcn.00496fa0
mov edx, eax
add esp, 8
mov dword [esp + 0x20], edx
test edx, edx
je 0x48722f
mov al, byte [edx + 0x2a]
test al, 0x10
jne 0x487220
test al, 0x20
jne 0x487218
cmp dword [edx + 0xc], 0
jne 0x487210
movsx ecx, word [edx + 0x22]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ecx
test ecx, ecx
jle 0x486e30
mov eax, dword [ebp + 0x14]
mov ebx, dword [edx + 4]
movzx eax, byte [eax]
movzx edi, byte [eax + 0x5649b0]
mov dword [esp + 0x30], edi
mov esi, dword [ebx]
mov dl, byte [esi]
movzx eax, dl
movzx eax, byte [eax + 0x5649b0]
sub eax, edi
jne 0x486e0f
mov edi, dword [ebp + 0x14]
sub edi, esi
jmp 0x486de0
test dl, dl
je 0x486e03
movzx eax, byte [esi + edi + 1]
inc esi
movzx ecx, byte [eax + 0x5649b0]
mov dl, byte [esi]
movzx eax, dl
movzx eax, byte [eax + 0x5649b0]
sub eax, ecx
je 0x486de0
jmp 0x486e07
test eax, eax
je 0x486e21
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
add ebx, 0x10
inc eax
mov dword [esp + 0x14], eax
cmp eax, ecx
jl 0x486dc4
jmp 0x486e29
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
mov ebx, dword [ebp + 8]
mov edx, dword [esp + 0x20]
cmp eax, ecx
je 0x4871bd
cmp dword [esp + 0x24], 0
je 0x486ed7
xor edi, edi
test dword [ebx + 0x18], 0x80000
je 0x486e7c
mov esi, dword [edx + 0x10]
test esi, esi
je 0x486e7c
mov edx, dword [esi + 0x14]
test edx, edx
jle 0x486e75
mov ebx, dword [esp + 0x14]
lea ecx, [esi + 0x24]
cmp dword [ecx], ebx
lea ecx, [ecx + 8]
mov eax, str.foreign_key
cmovne eax, edi
mov edi, eax
dec edx
jne 0x486e63
mov esi, dword [esi + 4]
test esi, esi
jne 0x486e55
mov ebx, dword [esp + 0x20]
mov ebx, dword [ebx + 8]
mov dword [esp + 0x30], ebx
test ebx, ebx
je 0x486ecc
jmp 0x486e90
movzx esi, word [ebx + 0x32]
xor eax, eax
test esi, esi
jle 0x486ec1
mov ebx, dword [ebx + 4]
lea ecx, [ecx]
movzx edx, word [ebx + eax*2]
movsx ecx, dx
cmp ecx, dword [esp + 0x14]
je 0x486eb3
cmp dx, 0xfffe
jne 0x486eb8
mov edi, str.indexed
inc eax
cmp eax, esi
jl 0x486ea0
mov ebx, dword [esp + 0x30]
mov ebx, dword [ebx + 0x14]
mov dword [esp + 0x30], ebx
test ebx, ebx
jne 0x486e90
mov ebx, dword [ebp + 8]
test edi, edi
jne 0x487113
mov ecx, dword [esp + 0x10]
call fcn.00478f40
mov edi, eax
mov eax, dword [esp + 0x18]
mov dword [eax + 0x14], edi
test edi, edi
je 0x487028
mov eax, dword [esp + 0x20]
mov esi, 0xfff0bdc0
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x486f1c
mov edx, dword [ebx + 0x14]
xor esi, esi
test edx, edx
jle 0x486f1c
mov eax, dword [ebx + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x486f1c
inc esi
add eax, 0x10
cmp esi, edx
jl 0x486f10
push dword [ecx + 4]
mov edx, 2
push dword [ecx]
mov ecx, edi
push dword [esp + 0x2c]
push esi
call fcn.004797e0
mov eax, dword [edi]
add esp, 0x10
cmp byte [eax + 0x45], 0
jne 0x486f4b
mov eax, dword [edi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov byte [eax + ecx*4 - 0x11], 1
push ecx
push 0x566c20
mov edx, 9
mov ecx, edi
call fcn.00479b10
mov edx, 1
mov ecx, esi
shl edx, cl
add esp, 8
or dword [edi + 0x68], edx
mov ebx, eax
cmp esi, 1
je 0x486f87
mov eax, dword [edi]
add ecx, ecx
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx*8 + 4]
cmp byte [eax + 9], 0
je 0x486f87
or dword [edi + 0x6c], edx
mov eax, dword [ebp + 8]
cmp byte [eax + 0x45], 0
jne 0x487025
mov ecx, dword [esp + 0x20]
mov dword [ebx + 4], esi
mov eax, dword [ecx + 0x1c]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 0xc], eax
mov eax, dword [ecx]
mov ecx, dword [edi]
cmp byte [ecx + 0x45], 0
je 0x486fbf
push eax
xor edx, edx
call fcn.00479ca0
add esp, 4
jmp 0x486fd2
mov edx, dword [edi + 4]
mov ecx, edi
push 0
push eax
add edx, 0x14
call fcn.00479ec0
add esp, 8
mov eax, dword [ebp + 8]
cmp byte [eax + 0x45], 0
jne 0x487025
cmp dword [esp + 0x24], 0
je 0x486fe6
mov byte [ebx + 0x14], 0x37
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x1c]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], esi
mov byte [ebx + 0x15], 0xf2
movsx eax, word [ecx + 0x22]
inc eax
mov dword [ebx + 0x24], eax
movsx eax, word [ecx + 0x22]
mov ecx, 1
mov dword [ebx + 0x58], eax
mov eax, dword [esp + 0x10]
mov edx, eax
mov word [eax + 0x1bc], cx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x48], ecx
mov ecx, edi
call fcn.0047abd0
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov dword [edi], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0xc], eax
mov dword [edi + 0x18], ebx
xor edi, edi
cmp dword [ebx + 0x14], edi
jle 0x487069
xor esi, esi
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + esi + 4]
test ecx, ecx
je 0x487060
cmp byte [ecx + 9], 0
je 0x487060
dec dword [ecx + 0xc]
jne 0x487060
call fcn.0046c110
inc edi
add esi, 0x10
cmp edi, dword [ebx + 0x14]
jl 0x487045
cmp byte [ebx + 0x45], 0
mov edi, dword [esp + 0x18]
jne 0x4871b0
mov esi, dword [edi + 0x14]
mov edx, 1
mov ecx, esi
call fcn.0047fa20
test eax, eax
jne 0x4870d3
mov eax, dword [esi + 0x3c]
mov ecx, 0x2460
test word [eax + 8], cx
je 0x4870ac
mov ecx, dword [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x18]
push ecx
mov ecx, eax
call fcn.00478370
add esp, 8
jmp 0x4870c0
mov ecx, dword [ebp + 0x18]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [eax + 4], ecx
mov ecx, 4
mov word [eax + 8], cx
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4870d3
push eax
call dword [0x58c198]
add esp, 4
push dword [ebp + 0x1c]
lea edx, [esp + 0x30]
mov ecx, edi
push dword [ebp + 0x18]
call fcn.00486ad0
mov ecx, dword [esp + 0x3c]
add esp, 8
inc ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x34], ecx
cmp ecx, 0x32
jge 0x4871a8
cmp eax, 0x11
jne 0x4871a8
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x10]
jmp 0x486cc4
push edi
push str.cannot_open__s_column_for_writing
push ebx
call fcn.0045bbf0
xor edi, edi
mov dword [esp + 0x28], eax
add esp, 0xc
mov dword [esp + 0xc], 1
cmp dword [ebx + 0x14], edi
jle 0x48715b
xor esi, esi
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + esi + 4]
test ecx, ecx
je 0x487152
cmp byte [ecx + 9], 0
je 0x487152
dec dword [ecx + 0xc]
jne 0x487152
call fcn.0046c110
inc edi
add esi, 0x10
cmp edi, dword [ebx + 0x14]
jl 0x487137
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4872eb
mov esi, dword [edi + 0x14]
test esi, esi
je 0x48718d
mov eax, dword [esi + 0x28]
cmp eax, 0xbdf20da3
je 0x48717f
cmp eax, 0x519c2973
jne 0x487186
mov ecx, esi
call fcn.0047c080
mov ecx, esi
call fcn.0047c6a0
cmp dword [ebx + 0x1c8], 0
je 0x48726d
mov edx, edi
mov ecx, ebx
call fcn.00459cc0
jmp 0x4872eb
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x48715b
jmp 0x487259
push dword [ebp + 0x14]
push str.no_such_column:___s_
push ebx
call fcn.0045bbf0
xor edi, edi
mov dword [esp + 0x28], eax
add esp, 0xc
mov dword [esp + 0xc], 1
cmp dword [ebx + 0x14], edi
jle 0x48715b
xor esi, esi
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + esi + 4]
test ecx, ecx
je 0x487202
cmp byte [ecx + 9], 0
je 0x487202
dec dword [ecx + 0xc]
jne 0x487202
call fcn.0046c110
inc edi
add esi, 0x10
cmp edi, dword [ebx + 0x14]
jl 0x4871e7
jmp 0x48715b
push edi
push str.cannot_open_view:__s
jmp 0x487226
push edi
push str.cannot_open_table_without_rowid:__s
jmp 0x487226
push edi
push str.cannot_open_virtual_table:__s
push esi
call fcn.0045ca50
add esp, 0xc
mov eax, dword [esi + 4]
test eax, eax
je 0x487241
mov dword [esp + 0x1c], eax
mov dword [esi + 4], 0
mov ecx, ebx
mov dword [esp + 0xc], 1
call fcn.0046c230
jmp 0x48715b
mov edi, dword [esp + 0x18]
cmp byte [ebx + 0x45], 0
jne 0x48715b
mov eax, dword [ebp + 0x24]
mov dword [eax], edi
jmp 0x4872eb
cmp edi, dword [ebx + 0x120]
jb 0x487293
cmp edi, dword [ebx + 0x124]
jae 0x487293
mov eax, dword [ebx + 0x11c]
mov dword [edi], eax
dec dword [ebx + 0x108]
mov dword [ebx + 0x11c], edi
jmp 0x4872eb
cmp dword [0x58c138], 0
je 0x4872e1
mov eax, dword [0x5a22a8]
test eax, eax
je 0x4872af
push eax
call dword [0x58c190]
add esp, 4
push edi
call dword [0x58c16c]
sub dword [0x5a22e8], eax
add esp, 4
dec dword [0x5a230c]
push edi
call dword [0x58c164]
mov eax, dword [0x5a22a8]
add esp, 4
test eax, eax
je 0x4872eb
push eax
call dword [0x58c198]
jmp 0x4872e8
push edi
call dword [0x58c164]
add esp, 4
mov esi, dword [esp + 0x1c]
xor ecx, ecx
mov edi, dword [esp + 0xc]
test esi, esi
push esi
mov eax, 0x568b20
cmove eax, ecx
push eax
push edi
push ebx
call fcn.0045c9a0
add esp, 0x10
test esi, esi
je 0x4873a8
cmp dword [ebx + 0x1c8], 0
je 0x48732a
mov edx, esi
mov ecx, ebx
call fcn.00459cc0
jmp 0x4873a8
cmp esi, dword [ebx + 0x120]
jb 0x487350
cmp esi, dword [ebx + 0x124]
jae 0x487350
mov eax, dword [ebx + 0x11c]
mov dword [esi], eax
dec dword [ebx + 0x108]
mov dword [ebx + 0x11c], esi
jmp 0x4873a8
cmp dword [0x58c138], 0
je 0x48739e
mov eax, dword [0x5a22a8]
test eax, eax
je 0x48736c
push eax
call dword [0x58c190]
add esp, 4
push esi
call dword [0x58c16c]
sub dword [0x5a22e8], eax
add esp, 4
dec dword [0x5a230c]
push esi
call dword [0x58c164]
mov eax, dword [0x5a22a8]
add esp, 4
test eax, eax
je 0x4873a8
push eax
call dword [0x58c198]
jmp 0x4873a5
push esi
call dword [0x58c164]
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x487516
mov edi, dword [eax + 0x78]
mov esi, dword [eax]
test edi, edi
je 0x48745a
test esi, esi
je 0x487402
cmp dword [esi + 0x1c8], 0
je 0x4873dc
mov edx, edi
mov ecx, esi
call fcn.00459cc0
jmp 0x48745a
cmp edi, dword [esi + 0x120]
jb 0x487402
cmp edi, dword [esi + 0x124]
jae 0x487402
mov eax, dword [esi + 0x11c]
mov dword [edi], eax
dec dword [esi + 0x108]
mov dword [esi + 0x11c], edi
jmp 0x48745a
cmp dword [0x58c138], 0
je 0x487450
mov eax, dword [0x5a22a8]
test eax, eax
je 0x48741e
push eax
call dword [0x58c190]
add esp, 4
push edi
call dword [0x58c16c]
sub dword [0x5a22e8], eax
add esp, 4
dec dword [0x5a230c]
push edi
call dword [0x58c164]
mov eax, dword [0x5a22a8]
add esp, 4
test eax, eax
je 0x48745a
push eax
call dword [0x58c198]
jmp 0x487457
push edi
call dword [0x58c164]
add esp, 4
mov edi, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [edi + 0x144]
call fcn.0048e9f0
test esi, esi
je 0x487479
movzx eax, byte [edi + 0x18]
sub dword [esi + 0x100], eax
mov byte [edi + 0x18], 0
cmp dword [ebx + 0x1c8], 0
je 0x487494
mov edx, edi
mov ecx, ebx
call fcn.00459cc0
jmp 0x487512
cmp edi, dword [ebx + 0x120]
jb 0x4874ba
cmp edi, dword [ebx + 0x124]
jae 0x4874ba
mov eax, dword [ebx + 0x11c]
mov dword [edi], eax
dec dword [ebx + 0x108]
mov dword [ebx + 0x11c], edi
jmp 0x487512
cmp dword [0x58c138], 0
je 0x487508
mov eax, dword [0x5a22a8]
test eax, eax
je 0x4874d6
push eax
call dword [0x58c190]
add esp, 4
push edi
call dword [0x58c16c]
sub dword [0x5a22e8], eax
add esp, 4
dec dword [0x5a230c]
push edi
call dword [0x58c164]
mov eax, dword [0x5a22a8]
add esp, 4
test eax, eax
je 0x487512
push eax
call dword [0x58c198]
jmp 0x48750f
push edi
call dword [0x58c164]
add esp, 4
mov edi, dword [esp + 0xc]
cmp byte [ebx + 0x45], 0
jne 0x487529
cmp edi, 0xc0a
je 0x487529
and edi, dword [ebx + 0x38]
jmp 0x487532
mov ecx, ebx
call fcn.0045a400
mov edi, eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x487543
push eax
call dword [0x58c198]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret