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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov dword [esp + 0x28], edx
push esi
push edi
mov edi, dword [ebx]
mov dword [esp + 0x18], edi
jne 0x5bcb099
test eax, eax
je 0x5bcb856
mov esi, dword [ebx + 0xf4]
test esi, esi
je 0x5bcb856
test eax, eax
jne 0x5bcb0c2
mov edx, dword [esi]
mov ecx, edi
call fcn.05bcb860
test eax, eax
mov eax, dword [ebp + 0x10]
je 0x5bcb0c2
or dword [esi + 0x1c], 0x1000
cmp byte [edi + 0xb1], 0
je 0x5bcb0f5
test eax, eax
jne 0x5bcb194
cmp byte [esi + 0x2b], al
je 0x5bcb0e4
cmp dword [edi + 0xac], eax
jne 0x5bcb194
mov eax, dword [edi + 0xac]
mov dword [esi + 0x14], eax
cmp eax, 1
jne 0x5bcb0f5
or dword [esi + 0x1c], eax
mov eax, dword [ebp + 0xc]
test eax, 0x10000
je 0x5bcb170
or dword [esi + 0x1c], 0x10000
xor ecx, ecx
xor edx, edx
cmp cx, word [esi + 0x22]
jge 0x5bcb170
mov dword [esp + 0x1c], ecx
mov edi, dword [esi + 4]
add edi, ecx
mov ecx, dword [edi + 4]
mov eax, ecx
and eax, 0xf0
je 0x5bcb1a9
cmp eax, 0x10
jne 0x5bcb132
mov byte [edi + 8], 0x41
test byte [edi + 0xe], 1
je 0x5bcb155
movsx eax, word [esi + 0x20]
cmp eax, edx
je 0x5bcb155
test cl, 0xf
jne 0x5bcb155
and ecx, 0xfffffff2
or ecx, 2
mov dword [edi + 4], ecx
or dword [esi + 0x1c], 0x800
mov ecx, dword [esp + 0x1c]
inc edx
movsx eax, word [esi + 0x22]
add ecx, 0x10
mov dword [esp + 0x1c], ecx
cmp edx, eax
jl 0x5bcb114
mov edi, dword [esp + 0x18]
mov eax, dword [ebp + 0xc]
test al, al
jns 0x5bcb21a
mov eax, dword [esi + 0x1c]
test al, 8
je 0x5bcb1ee
push str.AUTOINCREMENT_not_allowed_on_WITHOUT_ROWID_tables
push ebx
call fcn.05c1c6a0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5c37db0
push ebx
call fcn.05c1c6a0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [edi + 0xe], 4
je 0x5bcb1d5
mov edx, 0x5c37db0
mov ecx, edi
call fcn.05c1c970
push eax
push dword [edi]
push dword [esi]
push str.unknown_datatype_for__s._s:___s_
push ebx
call fcn.05c1c6a0
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [edi]
push dword [esi]
push str.missing_datatype_for__s._s
push ebx
call fcn.05c1c6a0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test al, 4
jne 0x5bcb209
push dword [esi]
push str.PRIMARY_KEY_missing_on_table__s
push ebx
call fcn.05c1c6a0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0x280
mov edx, esi
mov ecx, ebx
mov dword [esi + 0x1c], eax
call fcn.05bcba20
mov ecx, dword [esi + 0x3c]
mov dword [esp + 0x14], 0xffff8000
test ecx, ecx
je 0x5bcb24c
mov eax, dword [edi + 0x10]
xor edx, edx
add eax, 0xc
mov dword [esp + 0x14], edx
cmp dword [eax], ecx
je 0x5bcb24c
nop dword [eax]
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x5bcb240
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x5bcb27f
push eax
push 0
push 4
mov edx, esi
mov ecx, ebx
call fcn.05be20b0
add esp, 0xc
cmp dword [ebx + 0x24], 0
je 0x5bcb27f
mov edx, dword [esi + 0x10]
test edx, edx
je 0x5bcb278
mov ecx, edi
call fcn.05bdf190
mov dword [esi + 0x10], 0
test byte [esi + 0x1c], 0x60
je 0x5bcb394
xor edx, edx
xor eax, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
cmp ax, word [esi + 0x22]
jge 0x5bcb378
xor ecx, ecx
mov dword [esp + 0x10], ecx
nop word [eax + eax]
mov eax, dword [esi + 4]
test byte [eax + ecx + 0xe], 0x60
je 0x5bcb38d
movzx eax, word [eax + ecx + 0xc]
test ax, ax
jne 0x5bcb2cc
xor eax, eax
jmp 0x5bcb2f0
cmp byte [esi + 0x2b], 0
je 0x5bcb2d6
xor eax, eax
jmp 0x5bcb2f0
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x5bcb2e1
xor eax, eax
jmp 0x5bcb2f0
cmp dword [ecx], eax
jge 0x5bcb2e9
xor eax, eax
jmp 0x5bcb2f0
lea eax, [eax + eax*4]
mov eax, dword [ecx + eax*4 - 0xc]
push 0
push eax
push 8
mov edx, esi
mov ecx, ebx
call fcn.05be20b0
add esp, 0xc
test eax, eax
je 0x5bcb34c
push 0
push 0x34
mov ecx, edi
call fcn.05c20690
mov edi, eax
add esp, 8
test edi, edi
je 0x5bcb337
push 0x34
push 0
push edi
call fcn.05b02790
add esp, 0xc
mov byte [edi], 0x79
or eax, 0xffffffff
mov dword [edi + 0x18], 1
mov word [edi + 0x22], ax
mov eax, dword [esi + 4]
mov edx, esi
add eax, dword [esp + 0x10]
mov ecx, ebx
push edi
push eax
call fcn.05bce500
add esp, 8
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
add ecx, 0x10
movsx eax, word [esi + 0x22]
inc edi
mov dword [esp + 0x20], edi
cmp edi, eax
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
jl 0x5bcb2b0
test edx, edx
jne 0x5bcb394
push str.must_have_at_least_one_non_generated_column
push ebx
call fcn.05c1c6a0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc edx
mov dword [esp + 0x1c], edx
jmp 0x5bcb354
mov ecx, esi
call fcn.05bcc170
mov edi, dword [esi + 8]
test edi, edi
je 0x5bcb3b0
mov ecx, edi
call fcn.05bcc080
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x5bcb3a2
mov edi, dword [esp + 0x18]
cmp byte [edi + 0xb1], 0
jne 0x5bcb7c2
mov ecx, dword [ebx + 8]
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x5bcb3f2
cmp dword [ebx + 0x78], ecx
jne 0x5bcb3dd
mov eax, dword [ebx]
test byte [eax + 0x50], 8
jne 0x5bcb3dd
mov byte [ebx + 0x17], 1
mov ecx, ebx
call fcn.05bf98f0
mov ecx, eax
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x5bcb856
mov edx, dword [ecx + 0x6c]
cmp dword [ecx + 0x70], edx
jg 0x5bcb40f
push 0
push 0
push 0
mov edx, 0x7a
call fcn.05bf9640
add esp, 0xc
jmp 0x5bcb446
lea eax, [edx + 1]
mov dword [ecx + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x68]
mov dword [eax + ecx*4], 0x7a
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 edx, str.TABLE
test al, al
mov ecx, str.VIEW
cmove ecx, edx
mov edx, str.table
mov dword [esp + 0x28], ecx
mov ecx, str.view
cmove ecx, edx
cmp dword [ebp + 0x10], 0
mov dword [esp + 0x2c], ecx
je 0x5bcb679
cmp byte [ebx + 0xd8], 0
je 0x5bcb491
mov dword [ebx + 0xc], 1
inc dword [ebx + 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc dword [ebx + 0x2c]
mov ecx, ebx
mov eax, dword [ebx + 0x2c]
mov edx, 0x71
push dword [esp + 0x14]
mov dword [esp + 0x24], eax
inc eax
mov dword [esp + 0x28], eax
inc eax
mov dword [ebx + 0x2c], eax
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x78]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
push dword [ebx + 0x60]
mov ecx, dword [esp + 0x18]
push 1
call fcn.05bf95d0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [edx + 0x6c]
test eax, eax
jle 0x5bcb4ef
lea ecx, [eax + eax*4]
mov edi, 0x10
mov eax, dword [edx + 0x68]
mov word [eax + ecx*4 - 0x12], di
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x28], 2
mov eax, dword [edx + 0x6c]
mov edx, 0xb
mov dword [esp + 0x28], eax
inc eax
push eax
push 0
push dword [esp + 0x28]
call fcn.05bf95d0
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x5bcb856
mov edx, dword [ebp + 0x10]
mov ecx, ebx
push 0x41
call fcn.05badf20
add esp, 4
test eax, eax
je 0x5bcb856
movzx ecx, word [eax + 0x22]
mov word [esi + 0x24], cx
mov word [esi + 0x22], cx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
xor ecx, ecx
mov word [eax + 0x22], cx
mov dword [eax + 4], ecx
cmp dword [edi + 0x220], ecx
jne 0x5bcb560
add dword [eax + 0x18], 0xffffffff
jne 0x5bcb569
mov edx, eax
mov ecx, edi
call fcn.05bcdf10
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x34]
mov edx, dword [ebp + 0x10]
mov ecx, ebx
push eax
mov byte [esp + 0x38], 0xd
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
call fcn.05ba4b00
add esp, 4
cmp dword [ebx + 0x24], 0
jne 0x5bcb856
mov edx, edi
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.05bf8d40
mov edx, dword [esp + 0x28]
mov ecx, edi
call fcn.05bf8810
push dword [esp + 0x38]
mov edx, 0xc
mov ecx, edi
call fcn.05bf9510
mov ecx, dword [esp + 0x14]
add esp, 4
mov edx, 0x61
mov edi, eax
push dword [esp + 0x24]
push dword [esp + 0x48]
push dword [esp + 0x48]
call fcn.05bf95d0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov edx, esi
push 0
call fcn.05bbd440
mov ecx, dword [esp + 0x14]
add esp, 4
mov edx, 0x7f
push dword [esp + 0x1c]
push 1
call fcn.05bf94a0
push dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, 0x80
push dword [esp + 0x30]
push 1
call fcn.05bf95d0
mov ecx, dword [esp + 0x24]
add esp, 0x14
mov edx, edi
call fcn.05bf9430
mov ecx, dword [esp + 0x10]
mov edx, edi
call fcn.05bf8810
mov ecx, dword [esp + 0x10]
mov edx, 0x7a
push 1
call fcn.05bf9510
mov edi, dword [esp + 0x1c]
add esp, 4
mov edx, esi
mov ecx, edi
call fcn.05bcc370
mov edx, eax
mov dword [esp + 0x24], edx
jmp 0x5bcb6b9
cmp dword [ebp + 0xc], 0
lea edx, [ebx + 0xcc]
jne 0x5bcb688
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, eax
sub ecx, dword [ebx + 0xc4]
cmp byte [eax], 0x3b
je 0x5bcb69a
add ecx, dword [edx + 4]
push dword [ebx + 0xc4]
push ecx
push dword [esp + 0x30]
push str.CREATE__s__.s
push edi
call fcn.05c1db30
add esp, 0x14
mov dword [esp + 0x24], eax
mov edx, eax
push dword [ebx + 0x5c]
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
push edx
push dword [ebx + 0x60]
shl ecx, 4
push eax
push eax
mov eax, dword [edi + 0x10]
push dword [esp + 0x40]
mov dword [esp + 0x38], ecx
push dword [ecx + eax]
push str.UPDATE__Q.sqlite_master_SET_type_s__name_Q__tbl_name_Q__rootpage_d__sql_Q_WHERE_rowid_d
push ebx
call fcn.05bcf0c0
mov edx, dword [esp + 0x48]
add esp, 0x24
test edx, edx
je 0x5bcb6f6
mov ecx, edi
call fcn.05c20b20
mov eax, dword [ebx]
mov edx, dword [esp + 0x20]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x2c], ecx
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edx + 0xc]
mov edx, dword [ecx + 0x6c]
mov eax, dword [eax]
inc eax
mov dword [esp + 0x28], eax
cmp dword [ecx + 0x70], edx
jg 0x5bcb72f
push eax
push 1
push dword [esp + 0x1c]
mov edx, 0x64
call fcn.05bf9640
add esp, 0xc
jmp 0x5bcb766
lea eax, [edx + 1]
mov dword [ecx + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x64
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
test byte [esi + 0x1c], 8
je 0x5bcb795
cmp byte [ebx + 0xd8], 0
jne 0x5bcb795
mov ecx, dword [edi + 0x10]
add ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0xc]
cmp dword [eax + 0x48], 0
jne 0x5bcb795
push dword [ecx]
push str.CREATE_TABLE__Q.sqlite_sequence_name_seq_
push ebx
call fcn.05bcf0c0
add esp, 0xc
push 0
push ecx
push dword [esi]
push str.tbl_name_q_AND_type_trigger
push edi
call fcn.05c1db30
mov edx, dword [esp + 0x28]
add esp, 0x10
mov ecx, dword [esp + 0x14]
push eax
call fcn.05bf8e40
add esp, 8
cmp byte [edi + 0xb1], 0
je 0x5bcb82f
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi]
push esi
lea ecx, [ecx + 8]
call fcn.05c1a840
add esp, 4
test eax, eax
je 0x5bcb7e5
mov ecx, edi
call fcn.05c20310
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0xf4], 0
mov ecx, str.sqlite_sequence
or dword [edi + 0x18], 1
mov eax, dword [esi]
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5bcb820
test dl, dl
je 0x5bcb81c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5bcb820
add eax, 2
add ecx, 2
test dl, dl
jne 0x5bcb800
xor eax, eax
jmp 0x5bcb825
sbb eax, eax
or eax, 1
test eax, eax
jne 0x5bcb82f
mov eax, dword [esi + 0x3c]
mov dword [eax + 0x48], esi
cmp dword [ebp + 0x10], 0
jne 0x5bcb856
cmp byte [esi + 0x2b], 0
jne 0x5bcb856
mov ecx, dword [esp + 0x30]
mov eax, dword [ebp + 8]
cmp dword [ecx], 0
cmovne eax, ecx
mov eax, dword [eax]
sub eax, dword [ebx + 0xc4]
add eax, 0xd
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret