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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
xor eax, eax
mov dword [esp + 0x28], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x24]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [eax], esi
xor eax, eax
cmp dword [ebp + 0x20], eax
push edi
setne al
mov dword [esp + 0x14], esi
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x10200288
push eax
call dword [0x1031bdf0]
add esp, 4
push 0
push 0x20
mov ecx, ebx
call fcn.10236dd0
mov edi, eax
add esp, 8
mov dword [esp + 0x10], edi
test edi, edi
je 0x102002b0
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movups xmmword [edi + 0x10], xmm0
nop word [eax + eax]
push 0x94
lea eax, [esp + 0x40]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0xfc]
push 0x4c
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebx + 0x10c]
add esp, 0xc
cmp byte [ebx + 0x57], 0
mov dword [esp + 0xf0], eax
lea eax, [esp + 0x38]
mov dword [ebx + 0x10c], eax
mov dword [esp + 0x38], ebx
je 0x10200307
push str.out_of_memory
push eax
call fcn.102339b0
add esp, 8
test edi, edi
je 0x10200812
test esi, esi
je 0x10200368
cmp dword [ebx + 0x210], 0
je 0x10200327
mov edx, esi
mov ecx, ebx
call fcn.10237240
jmp 0x10200368
cmp esi, dword [ebx + 0x164]
jae 0x1020035f
cmp esi, dword [ebx + 0x15c]
jb 0x10200347
mov eax, dword [ebx + 0x158]
mov dword [esi], eax
mov dword [ebx + 0x158], esi
jmp 0x10200368
cmp esi, dword [ebx + 0x160]
jb 0x1020035f
mov eax, dword [ebx + 0x150]
mov dword [esi], eax
mov dword [ebx + 0x150], esi
jmp 0x10200368
push esi
call sym.WMCommon.dll_sqlite3_free
add esp, 4
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], eax
cmp byte [ebx + 0x5f], al
jne 0x1020037e
mov ecx, ebx
call fcn.10220870
push dword [ebp + 0xc]
xor edx, edx
lea ecx, [esp + 0x3c]
push dword [ebp + 0x10]
call fcn.101e8dd0
mov esi, eax
add esp, 8
mov dword [esp + 0x24], esi
test esi, esi
je 0x10200799
mov al, byte [esi + 0x2b]
cmp al, 1
je 0x10200784
test byte [esi + 0x1c], 0x80
jne 0x1020077a
cmp al, 2
je 0x10200770
mov dword [edi + 0x1c], esi
mov ecx, 0xffff8000
mov edx, dword [esi + 0x3c]
test edx, edx
je 0x102003e0
mov eax, dword [ebx + 0x10]
xor ecx, ecx
add eax, 0xc
cmp dword [eax], edx
je 0x102003e0
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x102003d8
mov eax, dword [ebx + 0x10]
add ecx, ecx
mov eax, dword [eax + ecx*8]
xor ecx, ecx
mov dword [edi + 0x18], eax
movsx eax, word [esi + 0x22]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x1020042e
mov edi, dword [esi + 4]
mov esi, dword [ebp + 0x14]
mov edx, dword [edi]
sub esi, edx
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x10200546
test ecx, ecx
jne 0x10200558
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
cmp ecx, eax
je 0x10200751
cmp dword [ebp + 0x20], 0
je 0x102004de
mov eax, dword [ebx + 0x20]
xor edi, edi
and eax, 0x4000
or eax, edi
je 0x1020047e
mov esi, dword [esi + 0x30]
test esi, esi
je 0x1020047e
mov edx, dword [esi + 0x14]
test edx, edx
jle 0x10200477
mov ebx, dword [esp + 0x20]
lea ecx, [esi + 0x24]
cmp dword [ecx], ebx
lea ecx, [ecx + 8]
mov eax, str.foreign_key
cmovne eax, edi
mov edi, eax
sub edx, 1
jne 0x10200463
mov esi, dword [esi + 4]
test esi, esi
jne 0x10200455
mov ebx, dword [esp + 0x24]
mov ebx, dword [ebx + 8]
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x102004cf
nop dword [eax]
movzx esi, word [ebx + 0x32]
xor eax, eax
test esi, esi
je 0x102004c4
mov ecx, dword [ebx + 4]
mov ebx, ecx
mov dword [esp + 0x28], ecx
movzx edx, word [ebx + eax*2]
movsx ecx, dx
cmp ecx, dword [esp + 0x20]
je 0x102004b6
cmp dx, 0xfffe
jne 0x102004bb
mov edi, str.indexed
inc eax
cmp eax, esi
jl 0x102004a3
mov ebx, dword [esp + 0x1c]
mov ebx, dword [ebx + 0x14]
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x10200490
mov ebx, dword [ebp + 8]
test edi, edi
jne 0x1020073c
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x38]
call fcn.10210fc0
mov esi, eax
mov dword [edi + 0x10], esi
test esi, esi
je 0x102006d7
mov eax, dword [esp + 0x24]
mov edi, 0xffff8000
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x10200518
mov eax, dword [ebx + 0x10]
xor edi, edi
add eax, 0xc
cmp dword [eax], ecx
je 0x10200518
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x10200510
mov edx, dword [esi + 0x6c]
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], ebx
cmp dword [esi + 0x70], edx
jg 0x1020057b
push ebx
push dword [esp + 0x30]
mov edx, 2
mov ecx, esi
push edi
call fcn.10210d20
add esp, 0xc
mov edx, eax
jmp 0x102005aa
movzx eax, byte [eax + 0x1025d320]
movzx ecx, byte [ecx + 0x1025d320]
sub ecx, eax
jne 0x1020055e
inc edx
jmp 0x10200407
mov ecx, dword [esp + 0x20]
add edi, 0x10
mov eax, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x20], ecx
cmp ecx, eax
jl 0x10200400
jmp 0x10200426
mov ebx, dword [esp + 0x2c]
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x28]
mov dword [eax + ecx*4], 2
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
jne 0x102005c5
mov eax, dword [esi + 0x68]
lea ecx, [edx + edx*4]
mov edx, dword [esp + 0x1c]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edx
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x102005dc
lea ecx, [eax + eax*4]
mov edx, 1
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
push ecx
push 0x1025bb00
mov edx, 6
mov ecx, esi
call fcn.102101f0
mov ebx, eax
add esp, 8
mov eax, dword [esi + 0x9c]
bts eax, edi
mov dword [esi + 0x9c], eax
cmp edi, 1
je 0x10200629
mov eax, dword [esi]
mov ecx, edi
add ecx, ecx
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx*8 + 4]
cmp byte [eax + 9], 0
je 0x10200629
mov eax, dword [esi + 0xa0]
bts eax, edi
mov dword [esi + 0xa0], eax
mov eax, dword [ebp + 8]
cmp byte [eax + 0x57], 0
jne 0x102006d1
mov ecx, dword [esp + 0x24]
mov dword [ebx + 4], edi
mov eax, dword [ecx + 0x14]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0xc], eax
mov eax, dword [ecx]
mov ecx, dword [esi]
cmp byte [ecx + 0x57], 0
je 0x10200661
push eax
xor edx, edx
call fcn.1020ff90
add esp, 4
jmp 0x10200674
mov edx, dword [esi + 0x68]
mov ecx, esi
push 0
push eax
add edx, 0x28
call fcn.1020fdd0
add esp, 8
mov eax, dword [ebp + 8]
cmp byte [eax + 0x57], 0
jne 0x102006d1
cmp dword [ebp + 0x20], 0
je 0x10200687
mov byte [ebx + 0x14], 0x71
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x38]
mov eax, dword [ecx + 0x14]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], edi
mov byte [ebx + 0x15], 0xfd
movsx eax, word [ecx + 0x22]
inc eax
mov dword [ebx + 0x24], eax
movsx eax, word [ecx + 0x22]
mov ecx, esi
mov dword [ebx + 0x44], eax
xor eax, eax
mov word [esp + 0x104], ax
mov dword [esp + 0x64], 1
mov dword [esp + 0x60], 1
call fcn.1020ed70
mov ebx, dword [ebp + 8]
jmp 0x102006d3
mov ebx, eax
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov word [edi + 8], ax
mov dword [edi + 0x14], ebx
cmp byte [ebx + 0x5f], 0
jne 0x102006ef
mov ecx, ebx
call fcn.10220820
cmp byte [ebx + 0x57], 0
jne 0x10200812
push dword [ebp + 0x1c]
lea edx, [esp + 0x34]
mov ecx, edi
push dword [ebp + 0x18]
call fcn.10200b30
mov ecx, eax
add esp, 8
mov eax, dword [esp + 0x34]
inc eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x34], eax
cmp eax, 0x32
jge 0x10200744
cmp ecx, 0x11
jne 0x10200744
lea ecx, [esp + 0x38]
call fcn.101cdcb0
mov esi, dword [esp + 0x30]
mov dword [esp + 0x14], esi
jmp 0x102002b0
push edi
push str.cannot_open__s_column_for_writing
jmp 0x10200759
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], eax
jmp 0x10200816
push dword [ebp + 0x14]
push str.no_such_column:___s_
push ebx
call fcn.10234930
add esp, 0xc
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 1
jmp 0x102007b6
push dword [ebp + 0x10]
push str.cannot_open_view:__s
jmp 0x1020078c
push dword [ebp + 0x10]
push str.cannot_open_table_without_rowid:__s
jmp 0x1020078c
push dword [ebp + 0x10]
push str.cannot_open_virtual_table:__s
lea eax, [esp + 0x40]
push eax
call fcn.102339b0
add esp, 0xc
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x102007ad
mov dword [esp + 0x14], eax
mov dword [esp + 0x3c], 0
mov eax, 1
mov dword [esp + 0x18], eax
cmp byte [ebx + 0x5f], 0
jne 0x102007c3
mov ecx, ebx
call fcn.10220820
mov edi, dword [esp + 0x10]
test edi, edi
je 0x10200a21
mov esi, dword [edi + 0x10]
test esi, esi
je 0x1020097a
mov al, byte [esi + 0x95]
cmp al, 1
jb 0x1020089c
mov edi, dword [esi]
cmp al, 2
jne 0x102007f5
mov ecx, esi
call fcn.1020db80
cmp dword [esi + 0x20], 0
jl 0x10200830
cmp dword [edi + 0x124], 0
jne 0x10200829
cmp dword [esi + 0x7c], 0
jne 0x10200829
mov eax, dword [esi + 0x24]
mov dword [edi + 0x40], eax
jmp 0x10200830
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x102007c3
cmp byte [ebx + 0x57], cl
jne 0x102007c3
mov eax, dword [ebp + 0x24]
mov dword [eax], edi
jmp 0x10200a21
mov ecx, esi
call fcn.1020da80
mov edx, dword [esi + 0x7c]
test edx, edx
je 0x10200895
test edi, edi
je 0x10200885
cmp dword [edi + 0x210], 0
je 0x1020084d
mov ecx, edi
call fcn.10237240
jmp 0x1020088e
cmp edx, dword [edi + 0x164]
jae 0x10200885
cmp edx, dword [edi + 0x15c]
jb 0x1020086d
mov eax, dword [edi + 0x158]
mov dword [edx], eax
mov dword [edi + 0x158], edx
jmp 0x1020088e
cmp edx, dword [edi + 0x160]
jb 0x10200885
mov eax, dword [edi + 0x150]
mov dword [edx], eax
mov dword [edi + 0x150], edx
jmp 0x1020088e
push edx
call sym.WMCommon.dll_sqlite3_free
add esp, 4
mov dword [esi + 0x7c], 0
mov dword [esi + 0x78], 0
mov edi, dword [esi]
mov edx, esi
mov ecx, edi
call fcn.1020d5c0
cmp dword [edi + 0x210], 0
jne 0x102008d8
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
test ecx, ecx
je 0x102008bf
mov dword [ecx + 8], eax
jmp 0x102008c2
mov dword [edi + 4], eax
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x102008cf
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
cmp dword [edi + 0x210], 0
je 0x102008e6
mov edx, esi
mov ecx, edi
call fcn.10237240
jmp 0x10200976
cmp esi, dword [edi + 0x164]
jae 0x1020091e
cmp esi, dword [edi + 0x15c]
jb 0x10200906
mov eax, dword [edi + 0x158]
mov dword [esi], eax
mov dword [edi + 0x158], esi
jmp 0x10200976
cmp esi, dword [edi + 0x160]
jb 0x1020091e
mov eax, dword [edi + 0x150]
mov dword [esi], eax
mov dword [edi + 0x150], esi
jmp 0x10200976
cmp dword [0x1031bda0], 0
je 0x1020096c
mov eax, dword [0x10321388]
test eax, eax
je 0x1020093a
push eax
call dword [0x1031bdf0]
add esp, 4
push esi
call dword [0x1031bdcc]
sub dword [0x10321088], eax
add esp, 4
dec dword [0x103210ac]
push esi
call dword [0x1031bdc4]
mov eax, dword [0x10321388]
add esp, 4
test eax, eax
je 0x10200976
push eax
call dword [0x1031bdf8]
jmp 0x10200973
push esi
call dword [0x1031bdc4]
add esp, 4
mov edi, dword [esp + 0x10]
cmp dword [ebx + 0x210], 0
je 0x10200991
mov edx, edi
mov ecx, ebx
call fcn.10237240
jmp 0x10200a21
cmp edi, dword [ebx + 0x164]
jae 0x102009c9
cmp edi, dword [ebx + 0x15c]
jb 0x102009b1
mov eax, dword [ebx + 0x158]
mov dword [edi], eax
mov dword [ebx + 0x158], edi
jmp 0x10200a21
cmp edi, dword [ebx + 0x160]
jb 0x102009c9
mov eax, dword [ebx + 0x150]
mov dword [edi], eax
mov dword [ebx + 0x150], edi
jmp 0x10200a21
cmp dword [0x1031bda0], 0
je 0x10200a17
mov eax, dword [0x10321388]
test eax, eax
je 0x102009e5
push eax
call dword [0x1031bdf0]
add esp, 4
push edi
call dword [0x1031bdcc]
sub dword [0x10321088], eax
add esp, 4
dec dword [0x103210ac]
push edi
call dword [0x1031bdc4]
mov eax, dword [0x10321388]
add esp, 4
test eax, eax
je 0x10200a21
push eax
call dword [0x1031bdf8]
jmp 0x10200a1e
push edi
call dword [0x1031bdc4]
add esp, 4
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov edi, dword [esp + 0x18]
test esi, esi
push esi
mov eax, 0x10279434
cmove eax, ecx
push eax
push edi
push ebx
call fcn.10233a40
add esp, 0x10
test esi, esi
je 0x10200af0
cmp dword [ebx + 0x210], 0
je 0x10200a60
mov edx, esi
mov ecx, ebx
call fcn.10237240
jmp 0x10200af0
cmp esi, dword [ebx + 0x164]
jae 0x10200a98
cmp esi, dword [ebx + 0x15c]
jb 0x10200a80
mov eax, dword [ebx + 0x158]
mov dword [esi], eax
mov dword [ebx + 0x158], esi
jmp 0x10200af0
cmp esi, dword [ebx + 0x160]
jb 0x10200a98
mov eax, dword [ebx + 0x150]
mov dword [esi], eax
mov dword [ebx + 0x150], esi
jmp 0x10200af0
cmp dword [0x1031bda0], 0
je 0x10200ae6
mov eax, dword [0x10321388]
test eax, eax
je 0x10200ab4
push eax
call dword [0x1031bdf0]
add esp, 4
push esi
call dword [0x1031bdcc]
sub dword [0x10321088], eax
add esp, 4
dec dword [0x103210ac]
push esi
call dword [0x1031bdc4]
mov eax, dword [0x10321388]
add esp, 4
test eax, eax
je 0x10200af0
push eax
call dword [0x1031bdf8]
jmp 0x10200aed
push esi
call dword [0x1031bdc4]
add esp, 4
lea ecx, [esp + 0x38]
call fcn.101cdcb0
cmp byte [ebx + 0x57], 0
jne 0x10200b07
test edi, edi
jne 0x10200b07
xor esi, esi
jmp 0x10200b12
mov edx, edi
mov ecx, ebx
call fcn.10236a00
mov esi, eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x10200b23
push eax
call dword [0x1031bdf8]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret