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

Disassembly:
sub esp, 0x64
push ebx
push ebp
mov ebp, dword [esp + 0x74]
cmp ebp, 1
push esi
push edi
mov edi, dword [esp + 0x78]
jne 0x1002c2d0
mov eax, str.CREATE_TEMP_TABLE_sqlite_temp_master__n__type_text__n__name_text__n__tbl_name_text__n__rootpage_integer__n__sql_text_n_
mov ebx, str.sqlite_temp_master
jmp 0x1002c2da
mov eax, str.CREATE_TABLE_sqlite_master__n__type_text__n__name_text__n__tbl_name_text__n__rootpage_integer__n__sql_text_n_
mov ebx, str.sqlite_master
cmp dword [edi + 0x30], 0xf03b7906
mov dword [esp + 0x20], ebx
mov esi, 0xb5357930
jne 0x1002c2f5
mov dword [edi + 0x30], 0xa029a697
jmp 0x1002c302
mov dword [edi + 0x30], esi
mov dword [edi + 0x98], 1
push 0
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x88]
lea edx, [esp + 0x34]
push 3
push edx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 0x1004f7f4
mov dword [esp + 0x58], 0
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], eax
call fcn.1000e780
add esp, 0x10
test eax, eax
je 0x1002c384
mov eax, dword [edi + 0x30]
cmp eax, 0xa029a697
jne 0x1002c364
mov eax, dword [esp + 0x38]
mov dword [edi + 0x30], 0xf03b7906
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
cmp eax, 0xf03b7906
jne 0x1002c378
mov dword [edi + 0x30], esi
mov dword [edi + 0x98], 1
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
mov eax, dword [edi + 4]
lea esi, [ebp + ebp*2]
add esi, esi
add esi, esi
add esi, esi
mov ecx, dword [esi + eax]
push ecx
push ebx
push edi
mov dword [esp + 0x24], esi
call fcn.10005f60
add esp, 0xc
test eax, eax
je 0x1002c3ab
mov byte [eax + 0x34], 1
mov eax, dword [edi + 0x30]
cmp eax, 0xa029a697
jne 0x1002c3be
mov dword [edi + 0x30], 0xf03b7906
jmp 0x1002c3d6
cmp eax, 0xf03b7906
jne 0x1002c3d6
mov dword [edi + 0x30], 0xb5357930
mov dword [edi + 0x98], 1
mov eax, dword [edi + 4]
mov ebx, dword [eax + esi + 4]
test ebx, ebx
lea ecx, [eax + esi + 4]
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], ebx
jne 0x1002c407
cmp ebp, 1
jne 0x1002c3fd
mov eax, dword [eax + 0x2c]
or word [eax + 0x7a], bp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x64
ret
mov esi, dword [ebx + 4]
cmp dword [esi + 8], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
jne 0x1002c460
call fcn.1002a530
mov ebx, eax
test ebx, ebx
je 0x1002c460
mov ebp, eax
test ebx, ebx
je 0x1002c56a
cmp ebx, 0x10
je 0x1002c5cc
push 0
push ebx
call fcn.10007e90
mov edx, dword [esp + 0x88]
add esp, 4
push eax
push edx
call fcn.1000add0
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x64
ret
cmp dword [0x100593ac], 0
je 0x1002c472
cmp dword [0x100593b8], 0
jg 0x1002c49a
push 0x58
call fcn.10041469
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x1002c489
call fcn.10008ea0
jmp 0x1002c496
push 0x58
push 0
push ebp
call fcn.10041850
add esp, 0xc
test ebp, ebp
jne 0x1002c4af
mov esi, dword [esp + 0x14]
mov ebx, 7
call fcn.10018080
mov ebp, ebx
jmp 0x1002c429
mov dword [ebp + 0x14], 1
mov edx, dword [esi]
push edx
call fcn.100043e0
add esp, 4
test eax, eax
jne 0x1002c4ca
lea ebx, [eax + 0x10]
jmp 0x1002c501
mov esi, dword [ebp + 0x14]
test esi, esi
lea ebx, [ebp + 0x18]
jne 0x1002c4d9
lea ebx, [esi + 0xb]
jmp 0x1002c501
mov edi, dword [esp + 0x14]
push ebx
xor eax, eax
call fcn.1001e830
add esp, 4
test eax, eax
jne 0x1002c4fb
mov ebx, dword [ebx]
cmp byte [ebx], al
jne 0x1002c4fb
push eax
call fcn.10004cc0
add esp, 4
test eax, eax
mov ebx, eax
je 0x1002c531
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1002c514
mov eax, dword [eax + 0x48]
push eax
call fcn.10017750
add esp, 4
push ebp
call fcn.100417c0
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x7c]
add esp, 4
call fcn.10018080
mov ebp, ebx
jmp 0x1002c429
mov ecx, dword [esp + 0x24]
mov eax, edi
mov dword [ebp + 0xc], 0x10007d80
mov dword [ebp + 0x10], 0
mov dword [ebp], ecx
mov byte [ebp + 0x40], 0
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [ebp + 4], ecx
je 0x1002c559
mov dword [ecx + 8], ebp
mov edi, dword [esp + 0x78]
mov dword [eax + 4], ebp
mov byte [ebp + 0x41], 0
mov dword [esp + 0x10], ebp
xor ebp, ebp
xor esi, esi
test ebp, ebp
jne 0x1002c59c
lea ebx, [esp + 0x4c]
cmp esi, 0xa
jae 0x1002c598
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push ebx
add esi, 1
push esi
push ecx
call fcn.10021b70
mov ebp, eax
add esp, 0xc
add ebx, 4
test ebp, ebp
je 0x1002c574
jmp 0x1002c59c
test ebp, ebp
je 0x1002c5f2
push 0
push ebp
call fcn.10007e90
mov edx, dword [esp + 0x88]
add esp, 4
push eax
push edx
call fcn.1000add0
mov eax, dword [esp + 0x1c]
push eax
call fcn.10018130
add esp, 0x10
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x64
ret
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov ecx, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
jmp 0x1002c5fa
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x4c]
test ecx, ecx
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
lea ebx, [esi + edx + 0x14]
mov esi, dword [ebx]
mov dword [esi], eax
je 0x1002c6ac
cmp dword [esp + 0x7c], 0
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x14]
jne 0x1002c676
lea esi, [edi + 0xf8]
test esi, esi
mov byte [eax + 0x79], cl
je 0x1002c66f
cmp dword [esi + 0x18], 0
je 0x1002c66f
cmp byte [esi], 3
mov eax, 0x10003460
je 0x1002c641
mov eax, 0x100034e0
push 6
push str.BINARY
call eax
mov edx, dword [esi + 0x14]
sub edx, 1
push 6
and edx, eax
push str.BINARY
mov ecx, esi
call fcn.100036f0
add esp, 0x10
test eax, eax
je 0x1002c66f
mov eax, dword [eax + 8]
mov dword [edi + 0x1c], eax
jmp 0x1002c6b8
xor eax, eax
mov dword [edi + 0x1c], eax
jmp 0x1002c6b8
movzx edx, byte [eax + 0x79]
cmp ecx, edx
je 0x1002c6b8
mov eax, dword [esp + 0x10]
push eax
call fcn.10018130
mov ecx, dword [esp + 0x84]
push 0
push str.attached_databases_must_use_the_same_text_encoding_as_main_database
push ecx
call fcn.1000add0
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x64
ret
mov eax, dword [edi + 4]
mov eax, dword [edx + eax + 0x14]
or word [eax + 0x7a], 4
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebx]
mov cl, byte [edx + 0x79]
mov byte [eax + 0x79], cl
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x1002c6d3
mov eax, 0x7d0
mov edx, dword [ebx]
mov ecx, dword [esp + 0x1c]
mov dword [edx + 0x7c], eax
mov eax, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [eax + 0x7c]
cmp eax, 0xa
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
jle 0x1002c6f2
mov dword [ecx + 0x48], eax
jmp 0x1002c6f9
mov dword [ecx + 0x48], 0xa
mov edx, dword [ebx]
mov al, byte [esp + 0x50]
mov byte [edx + 0x78], al
mov ecx, dword [ebx]
cmp byte [ecx + 0x78], 0
jne 0x1002c710
mov edx, ecx
mov byte [edx + 0x78], 1
mov eax, dword [ebx]
cmp byte [eax + 0x78], 4
jbe 0x1002c746
mov ecx, dword [esp + 0x10]
push ecx
call fcn.10018130
mov edx, dword [esp + 0x84]
push 0
push str.unsupported_file_format
push edx
call fcn.1000add0
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x64
ret
cmp ebp, 0x10
jne 0x1002c74f
xor esi, esi
jmp 0x1002c7c7
mov eax, dword [esp + 0x20]
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [edx + ecx]
push eax
push str.SELECT_name__rootpage__sql_FROM__q._s
call fcn.100172b0
push edi
mov ebx, eax
call fcn.10003120
push 0
lea ecx, [esp + 0x40]
push ecx
push fcn.1000e780
push ebx
push edi
call fcn.10040140
mov esi, eax
add esp, 0x24
cmp esi, 4
jne 0x1002c792
mov esi, dword [esp + 0x38]
push edi
call fcn.100030e0
add esp, 4
test ebx, ebx
je 0x1002c7a8
push ebx
call fcn.100417c0
add esp, 4
test esi, esi
jne 0x1002c7ba
mov edx, dword [esp + 0x7c]
push edx
push edi
call fcn.10019fb0
add esp, 8
mov eax, dword [esp + 0x10]
push eax
call fcn.10018130
add esp, 4
cmp dword [0x100593ac], 0
je 0x1002c7eb
cmp dword [0x100593b8], 0
jle 0x1002c7eb
push 0
push edi
mov esi, 7
call fcn.1001a400
add esp, 8
jmp 0x1002c7ef
test esi, esi
je 0x1002c7f8
test dword [edi + 8], 0x40000
je 0x1002c80a
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + ecx + 0x14]
or word [eax + 0x7a], 1
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret