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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd8
mov eax, dword [0x1011d004]
xor eax, esp
mov dword [esp + 0xd4], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0x40], edx
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x28], edi
mov eax, dword [edi]
mov dword [esp + 0x38], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], eax
test edx, edx
jne 0x100559d6
test ecx, ecx
je 0x10056478
mov esi, dword [edi + 0xe8]
test esi, esi
je 0x10056478
test ecx, ecx
jne 0x10055a04
mov edx, dword [esi]
mov ecx, eax
call fcn.10055940
mov ecx, dword [esp + 0x2c]
test eax, eax
mov eax, dword [esp + 0x14]
je 0x10055a04
or dword [esi + 0x1c], 0x1000
cmp byte [eax + 0xb1], 0
je 0x10055a33
test ecx, ecx
jne 0x10055b0e
cmp byte [esi + 0x2b], cl
je 0x10055af4
cmp dword [eax + 0xac], ecx
jne 0x10055b0e
mov eax, dword [eax + 0xac]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
test eax, 0x10000
je 0x10055abf
or dword [esi + 0x1c], 0x10000
xor ecx, ecx
mov dword [esp + 0x18], 0
cmp cx, word [esi + 0x22]
jge 0x10055abf
xor eax, eax
mov dword [esp + 0x24], eax
nop
mov edx, dword [esi + 4]
add edx, eax
mov ecx, dword [edx + 4]
test cl, 0xf0
je 0x10055b30
mov eax, ecx
and al, 0xf0
cmp al, 0x10
jne 0x10055a7d
mov byte [edx + 8], 0x41
test byte [edx + 0xe], 1
je 0x10055aa2
movsx eax, word [esi + 0x20]
cmp eax, dword [esp + 0x18]
je 0x10055aa2
test cl, 0xf
jne 0x10055aa2
and ecx, 0xfffffff2
or ecx, 2
mov dword [edx + 4], ecx
or dword [esi + 0x1c], 0x800
mov ecx, dword [esp + 0x18]
movsx eax, word [esi + 0x22]
inc ecx
add dword [esp + 0x24], 0x10
cmp ecx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], ecx
jl 0x10055a60
mov eax, dword [ebp + 0xc]
test al, al
jns 0x10055bd7
mov eax, dword [esi + 0x1c]
test al, 8
je 0x10055b9e
push str.AUTOINCREMENT_not_allowed_on_WITHOUT_ROWID_tables
push edi
call fcn.10008be0
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0xac]
mov dword [esi + 0x14], eax
cmp eax, 1
jne 0x10055a33
or dword [esi + 0x1c], eax
jmp 0x10055a33
push 0x101077f8
push edi
call fcn.10008be0
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret
test byte [edx + 0xe], 4
mov eax, dword [edx]
mov dword [esp + 0x38], eax
je 0x10055b79
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10055b41
sub ecx, edx
mov edx, dword [esp + 0x38]
lea eax, [edx + 1]
add eax, ecx
push eax
push edx
push dword [esi]
push str.unknown_datatype_for__s._s:___s_
push edi
call fcn.10008be0
add esp, 0x14
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret
push eax
push dword [esi]
push str.missing_datatype_for__s._s
push edi
call fcn.10008be0
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret
test al, 4
jne 0x10055bc6
push dword [esi]
push str.PRIMARY_KEY_missing_on_table__s
push edi
call fcn.10008be0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret
or eax, 0x280
mov edx, esi
mov ecx, edi
mov dword [esi + 0x1c], eax
call fcn.10055350
mov ecx, dword [esi + 0x3c]
mov dword [esp + 0x24], 0xffff8000
test ecx, ecx
je 0x10055c0c
mov eax, dword [esp + 0x14]
xor edx, edx
mov dword [esp + 0x24], edx
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x10055c0c
nop word [eax + eax]
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x10055c00
mov dword [esp + 0x24], edx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10055c41
push eax
push 0
push 4
mov edx, esi
mov ecx, edi
call fcn.10040600
add esp, 0xc
cmp dword [edi + 0x24], 0
je 0x10055c41
mov edx, dword [esi + 0x10]
test edx, edx
je 0x10055c3a
mov ecx, dword [esp + 0x14]
call fcn.10043810
mov dword [esi + 0x10], 0
test byte [esi + 0x1c], 0x60
je 0x10055e0a
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
cmp ax, word [esi + 0x22]
jge 0x10055de8
xor ecx, ecx
mov dword [esp + 0x10], ecx
nop word [eax + eax]
mov eax, dword [esi + 4]
test byte [eax + ecx + 0xe], 0x60
je 0x10055dc5
movzx eax, word [eax + ecx + 0xc]
test ax, ax
jne 0x10055c8c
xor edx, edx
jmp 0x10055cac
cmp byte [esi + 0x2b], 0
je 0x10055c96
xor edx, edx
jmp 0x10055cac
mov edx, dword [esi + 0x34]
test edx, edx
je 0x10055cac
cmp dword [edx], eax
jge 0x10055ca5
xor edx, edx
jmp 0x10055cac
lea eax, [eax + eax*4]
mov edx, dword [edx + eax*4 - 0xc]
mov eax, dword [esi]
xorps xmm0, xmm0
mov dword [esp + 0x98], eax
mov eax, dword [edi]
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x70], xmm0
movlpd qword [esp + 0x8c], xmm0
mov dword [esp + 0x94], 0
mov dword [esp + 0x9c], 0
movlpd qword [esp + 0xa4], xmm0
movlpd qword [esp + 0xac], xmm0
movlpd qword [esp + 0xb4], xmm0
movlpd qword [esp + 0xc0], xmm0
movlpd qword [esp + 0xc8], xmm0
movlpd qword [esp + 0xd0], xmm0
mov dword [esp + 0x88], 1
mov dword [esp + 0xa0], esi
mov dword [esp + 0xbc], 0xffffffff
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0x88]
cmp dword [esi + 0x3c], ecx
mov ecx, 0x10008
mov dword [esp + 0x64], eax
mov eax, 0x50008
cmove eax, ecx
mov dword [esp + 0x60], edi
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], eax
call fcn.100403f0
test eax, eax
je 0x10055dbb
mov ecx, dword [esp + 0x14]
push 0
push 0x34
call fcn.10005060
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x10055da6
push 0x34
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x2c]
add esp, 0xc
or ecx, 0xffffffff
mov byte [eax], 0x78
mov word [eax + 0x22], cx
mov dword [eax + 0x18], 1
push eax
mov eax, dword [esi + 4]
mov edx, esi
add eax, dword [esp + 0x14]
mov ecx, edi
push eax
call fcn.10052f20
add esp, 8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
jmp 0x10055dc9
inc dword [esp + 0x1c]
movsx eax, word [esi + 0x22]
inc edx
add ecx, 0x10
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
cmp edx, eax
jl 0x10055c70
cmp dword [esp + 0x1c], 0
jne 0x10055e0a
push str.must_have_at_least_one_non_generated_column
push edi
call fcn.10008be0
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret
movsx edi, word [esi + 0x22]
xor eax, eax
mov ecx, dword [esi + 4]
xor edx, edx
mov dword [esp + 0x10], edi
cmp edi, 2
mov edi, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
jl 0x10055e70
movsx edx, word [esi + 0x22]
movsx edi, word [esi + 0x22]
lea edx, [edx - 2]
shr edx, 1
inc edx
mov eax, edx
neg eax
lea edi, [edi + eax*2]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x28]
nop word [eax + eax]
movzx eax, byte [ecx + 9]
add dword [esp + 0x1c], eax
movzx eax, byte [ecx + 0x19]
add ecx, 0x20
add dword [esp + 0x18], eax
sub edx, 1
jne 0x10055e50
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x10], 0
jle 0x10055e7d
movzx ecx, byte [ecx + 9]
jmp 0x10055e7f
xor ecx, ecx
add eax, ecx
add eax, edx
cmp word [esi + 0x20], 0
push 0
lea ecx, [eax + 1]
cmovge ecx, eax
shl ecx, 2
push ecx
call fcn.1000a050
mov word [esi + 0x28], ax
add esp, 8
mov eax, dword [esi + 8]
test eax, eax
je 0x10055ec2
mov edi, eax
nop dword [eax]
mov ecx, edi
call fcn.10055120
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x10055eb0
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
mov al, byte [eax + 0xb1]
test al, al
jne 0x10056388
mov edx, dword [edi + 8]
mov dword [esp + 0x10], edx
test edx, edx
jne 0x10055f05
cmp dword [edi + 0x74], edx
jne 0x10055ef0
mov eax, dword [edi]
test byte [eax + 0x4c], 8
jne 0x10055ef0
mov byte [edi + 0x17], 1
mov ecx, edi
call fcn.10028fb0
mov edx, eax
mov dword [esp + 0x10], eax
test edx, edx
je 0x10056478
mov ecx, dword [edx + 0x74]
cmp dword [edx + 0x78], ecx
jg 0x10055f2a
mov ecx, dword [esp + 0x10]
mov edx, 0x78
push 0
push 0
push 0
call fcn.10029250
mov edx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x10055f61
mov edi, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [edx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 0x70]
mov dword [eax + ecx*4], 0x78
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov al, byte [esi + 0x2b]
mov ecx, str.VIEW
test al, al
mov dword [esp + 0x20], str.TABLE
cmove ecx, dword [esp + 0x20]
mov dword [esp + 0x34], ecx
mov ecx, str.view
mov dword [esp + 0x20], str.table
cmove ecx, dword [esp + 0x20]
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x3c], ecx
je 0x10056212
mov eax, dword [edi + 0x2c]
mov ecx, edi
inc eax
mov dword [esp + 0x18], eax
inc eax
mov dword [esp + 0x20], eax
inc eax
mov dword [edi + 0x2c], eax
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x74]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [edx + 0x74]
mov eax, dword [edi + 0x5c]
mov dword [esp + 0x30], eax
cmp dword [edx + 0x78], ecx
jg 0x10055fed
push dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov edx, 0x65
push eax
push 1
call fcn.10029250
mov edx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x10056024
mov edi, dword [esp + 0x30]
lea eax, [ecx + 1]
mov dword [edx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 0x70]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x24]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x65
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edx + 0x74]
test eax, eax
jle 0x1005603f
lea ecx, [eax + eax*4]
mov edi, 0x10
mov eax, dword [edx + 0x70]
mov word [eax + ecx*4 - 0x12], di
mov edi, dword [esp + 0x28]
mov dword [edi + 0x28], 2
mov eax, dword [edx + 0x74]
mov dword [esp + 0x34], eax
lea ecx, [eax + 1]
mov dword [esp + 0x30], ecx
cmp dword [edx + 0x78], eax
jg 0x10056074
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push 0
push edx
mov edx, 0xd
call fcn.10029250
add esp, 0xc
jmp 0x100560a4
mov dword [edx + 0x74], ecx
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x70]
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [edi + 0x24], 0
jne 0x10056478
mov edx, dword [esp + 0x2c]
mov ecx, edi
push 0x41
call fcn.10075db0
mov edx, eax
add esp, 4
test edx, edx
je 0x10056478
movzx ecx, word [edx + 0x22]
xor eax, eax
mov word [esi + 0x24], cx
mov word [esi + 0x22], cx
mov ecx, dword [edx + 4]
mov dword [esi + 4], ecx
mov word [edx + 0x22], ax
mov dword [edx + 4], eax
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x210], 0
jne 0x100560f6
add dword [edx + 0x18], 0xffffffff
jne 0x100560fd
mov ecx, eax
call fcn.100531f0
mov eax, dword [esp + 0x18]
mov ecx, edi
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x48], 0xd
mov dword [esp + 0x50], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
call fcn.1007c270
add esp, 4
cmp dword [edi + 0x24], 0
jne 0x10056478
mov edi, dword [esp + 0x10]
mov ecx, edi
mov edx, dword [esp + 0x18]
call fcn.10029c00
mov edx, dword [esp + 0x34]
mov ecx, edi
call fcn.10029fc0
push dword [esp + 0x48]
mov edx, 0xe
mov ecx, edi
call fcn.10029360
mov ecx, dword [esp + 0x14]
add esp, 4
mov edx, 0x5f
mov edi, eax
push dword [esp + 0x20]
push dword [esp + 0x58]
push dword [esp + 0x58]
call fcn.10029290
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov edx, esi
push 0
call fcn.10065a30
mov ecx, dword [esp + 0x14]
add esp, 4
mov edx, 0x7d
push dword [esp + 0x1c]
push 1
call fcn.100293c0
push dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, 0x7e
push dword [esp + 0x2c]
push 1
call fcn.10029290
mov ecx, dword [esp + 0x24]
add esp, 0x14
mov edx, edi
call fcn.10029430
mov ecx, dword [esp + 0x10]
mov edx, edi
call fcn.10029fc0
mov ecx, dword [esp + 0x10]
mov edx, 0x78
push 1
call fcn.10029360
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, esi
call fcn.10054de0
mov edi, dword [esp + 0x28]
mov edx, eax
mov dword [esp + 0x20], edx
jmp 0x10056256
cmp dword [ebp + 0xc], 0
lea edx, [edi + 0xc0]
jne 0x10056222
mov edx, dword [esp + 0x38]
mov eax, dword [edx]
mov ecx, eax
sub ecx, dword [edi + 0xb8]
cmp byte [eax], 0x3b
je 0x10056234
add ecx, dword [edx + 4]
push dword [edi + 0xb8]
push ecx
push dword [esp + 0x3c]
push str.CREATE__s__.s
push dword [esp + 0x24]
call fcn.10007ea0
add esp, 0x14
mov dword [esp + 0x20], eax
mov edx, eax
push dword [edi + 0x58]
mov eax, dword [esi]
mov ecx, dword [esp + 0x28]
push edx
push dword [edi + 0x5c]
shl ecx, 4
push eax
push eax
mov eax, dword [esp + 0x28]
push dword [esp + 0x50]
mov dword [esp + 0x34], ecx
mov eax, dword [eax + 0x10]
push dword [eax + ecx]
push str.UPDATE__Q.sqlite_master_SET_type_s__name_Q__tbl_name_Q__rootpage_d__sql_Q_WHERE_rowid_d
push edi
call fcn.10052380
mov edx, dword [esp + 0x44]
add esp, 0x24
test edx, edx
je 0x10056299
mov ecx, dword [esp + 0x14]
call fcn.10004cc0
mov eax, dword [edi]
mov edx, dword [esp + 0x1c]
mov ecx, dword [edi + 8]
mov dword [esp + 0x34], ecx
mov eax, dword [eax + 0x10]
mov edi, dword [ecx + 0x74]
mov dword [esp + 0x3c], edi
mov eax, dword [eax + edx + 0xc]
mov eax, dword [eax]
inc eax
cmp dword [ecx + 0x78], edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x30], eax
jg 0x100562de
push eax
push 1
push dword [esp + 0x2c]
mov edx, 0x62
call fcn.10029250
mov edx, dword [esp + 0x28]
add esp, 0xc
jmp 0x1005631d
mov edi, dword [esp + 0x3c]
lea eax, [edi + 1]
mov dword [ecx + 0x74], eax
lea ecx, [edi + edi*4]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
mov eax, dword [eax + 0x70]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x30]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x62
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0x10], 0
test byte [esi + 0x1c], 8
je 0x1005634f
cmp byte [edi + 0xcc], 0
jne 0x1005634f
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx + edx + 0xc]
add ecx, edx
cmp dword [eax + 0x48], 0
jne 0x1005634f
push dword [ecx]
push str.CREATE_TABLE__Q.sqlite_sequence_name_seq_
push edi
call fcn.10052380
add esp, 0xc
push 0
push ecx
push dword [esi]
push str.tbl_name_q_AND_type_trigger
push dword [esp + 0x24]
call fcn.10007ea0
mov edx, dword [esp + 0x38]
add esp, 0x10
mov ecx, dword [esp + 0x14]
push eax
call fcn.10029a50
mov eax, dword [esp + 0x1c]
add esp, 8
mov al, byte [eax + 0xb1]
test al, al
je 0x1005644f
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi]
push esi
lea ecx, [ecx + 8]
call fcn.1000a550
add esp, 4
test eax, eax
mov eax, dword [esp + 0x14]
je 0x10056404
cmp byte [eax + 0x53], 0
jne 0x10056478
cmp byte [eax + 0x54], 0
jne 0x10056478
cmp dword [eax + 0xc8], 0
mov byte [eax + 0x53], 1
jle 0x100563cc
mov dword [eax + 0x128], 1
inc dword [eax + 0x130]
xor ecx, ecx
mov word [eax + 0x134], cx
mov eax, dword [eax + 0x10c]
test eax, eax
je 0x10056478
mov dword [eax + 0xc], 7
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret
mov dword [edi + 0xe8], 0
mov ecx, str.sqlite_sequence
or dword [eax + 0x18], 1
mov eax, dword [esi]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10056440
test dl, dl
je 0x1005643c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10056440
add eax, 2
add ecx, 2
test dl, dl
jne 0x10056420
xor eax, eax
jmp 0x10056445
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1005644f
mov eax, dword [esi + 0x3c]
mov dword [eax + 0x48], esi
cmp dword [esp + 0x2c], 0
jne 0x10056478
cmp byte [esi + 0x2b], 0
jne 0x10056478
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
test eax, eax
jne 0x1005646c
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
sub eax, dword [edi + 0xb8]
add eax, 0xd
mov dword [esi + 0x2c], eax
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret