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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, edx
mov edx, ecx
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [esp + 0x78], eax
mov eax, dword [ecx + 0x18]
or eax, 0xffffffbf
mov dword [esp + 4], eax
mov byte [ecx + 0xa9], 1
cmp esi, 1
mov eax, str.sqlite_temp_master
mov edi, str.sqlite_master
cmove edi, eax
lea ebx, [esp + 0x24]
mov dword [ebx], ecx
mov dword [esp + 0x1c], esi
mov dword [ebx + 8], esi
xor eax, eax
mov dword [ebx + 0xc], eax
mov ecx, dword [ebp + 8]
mov dword [ebx + 4], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebx + 0x10], ecx
lea ecx, [esp + 0x60]
mov dword [ecx], 0x101bab9a
mov dword [ecx + 4], edi
mov dword [esp + 0x20], edi
mov dword [ecx + 8], edi
mov edi, edx
mov dword [ecx + 0xc], 0x101c59ed
mov dword [ecx + 0x10], str.CREATE_TABLE_x_type_text_name_text_tbl_name_text_rootpage_int_sql_text_
mov dword [ecx + 0x14], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
push eax
push ecx
push 5
push ebx
call fcn.10007220
add esp, 0x10
mov eax, dword [esp + 4]
and dword [edi + 0x18], eax
mov ebx, dword [ebx + 0xc]
test ebx, ebx
mov dword [esp], edi
jne 0x10022c31
mov eax, dword [edi + 0x10]
mov esi, dword [esp + 0x1c]
shl esi, 4
mov ecx, dword [eax + esi + 4]
test ecx, ecx
je 0x10022a35
lea edi, [eax + esi]
add edi, 4
cmp byte [ecx + 9], 0
mov dword [esp + 0xc], eax
jne 0x10022d1a
mov ecx, dword [edi]
test ecx, ecx
mov dword [esp + 8], esi
je 0x1002290a
cmp byte [ecx + 8], 0
jne 0x10022cbd
mov dword [esp + 0x14], 0
xor edx, edx
push 0
call fcn.100121d0
add esp, 4
test eax, eax
jne 0x10022e7c
mov dword [esp + 0x18], edi
xor ebx, ebx
mov esi, ebx
mov eax, dword [esp + 0x18]
mov edi, dword [eax]
mov eax, dword [edi + 4]
cmp byte [edi + 9], 0
jne 0x10022c63
mov dword [esp + 4], 0
lea ebx, [esi + 1]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
push dword [eax + esi*4 + 0x28]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov dword [esp + esi*4 + 0x40], eax
cmp byte [esp + 4], 0
jne 0x10022c8d
cmp ebx, 5
jne 0x1002292c
mov edi, dword [esp]
test byte [edi + 0x23], 2
jne 0x10022da4
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 8]
mov edx, dword [esp + 0xc]
lea ebx, [edx + esi]
add ebx, 0xc
mov edx, dword [ebx]
mov dword [edx], ecx
test eax, eax
je 0x10022dc4
cmp dword [esp + 0x1c], 0
jne 0x10022cc8
test byte [edi + 0x18], 0x40
jne 0x10022cc8
and al, 3
xor ecx, ecx
inc ecx
test al, al
movzx eax, al
cmove eax, ecx
mov dword [esp + 0x10], eax
mov byte [edi + 0x50], al
mov esi, dword [edi + 0x1a0]
test esi, esi
jne 0x10022ca2
lea eax, [edi + 0x19c]
lea edx, [edi + 0x198]
mov esi, dword [edx]
mov ecx, 0x101dded0
test esi, esi
je 0x10022a4d
mov dword [esp + 4], ebx
mov eax, dword [eax]
dec esi
mov edi, dword [eax + 0xc]
xor ebx, ebx
movzx edx, byte [edi + ebx]
movzx ecx, byte [ebx + 0x1019c99f]
cmp dl, cl
jne 0x10022a11
test dl, dl
je 0x10022a44
inc ebx
jmp 0x100229fb
mov dl, byte [edx + 0x1019c728]
cmp dl, byte [ecx + 0x1019c728]
je 0x10022a0e
test esi, esi
jne 0x100229f3
mov edi, dword [esp]
mov ebx, dword [esp + 4]
mov edx, dword [esp + 0x10]
mov ecx, 0x101dded0
jmp 0x10022a51
mov eax, dword [eax + 0x1c]
or word [eax + 0x4e], 1
xor ebx, ebx
jmp 0x10022c39
mov ecx, eax
mov edi, dword [esp]
mov ebx, dword [esp + 4]
mov edx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
movzx ecx, dl
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*4 - 0x14]
cmove ecx, eax
mov dword [edi + 8], ecx
mov esi, dword [esp + 8]
mov eax, dword [ebx]
mov byte [eax + 0x4d], dl
mov eax, dword [ebx]
cmp dword [eax + 0x50], 0
jne 0x10022b07
mov dword [eax + 0x50], 0xfffff830
mov dword [esp + 4], ebx
mov eax, dword [ebx]
mov edi, dword [eax + 0x50]
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov esi, dword [eax + 4]
cmp byte [eax + 9], 0
mov dword [esp + 0x10], eax
jne 0x10022d76
mov eax, dword [esi]
mov ebx, dword [eax + 0xd4]
mov dword [ebx + 0x10], edi
mov esi, dword [0x101db098]
test edi, edi
jns 0x10022adf
mov eax, edi
sar eax, 0x1f
shld eax, edi, 0xa
shl edi, 0xa
xor ecx, ecx
neg edi
sbb ecx, eax
mov eax, dword [ebx + 0x1c]
add eax, dword [ebx + 0x18]
mov edx, eax
sar edx, 0x1f
push edx
push eax
push ecx
push edi
call fcn.1014deb0
mov edi, eax
mov ebx, dword [ebx + 0x2c]
mov ecx, esi
call dword [section..00cfg]
push edi
push ebx
call esi
add esp, 8
mov ecx, dword [esp + 0x10]
cmp byte [ecx + 9], 0
mov esi, dword [esp + 8]
mov ebx, dword [esp + 4]
jne 0x10022d91
mov eax, dword [esp + 0x44]
mov ecx, dword [ebx]
mov byte [ecx + 0x4c], al
mov edx, dword [ebx]
mov cl, byte [edx + 0x4c]
test cl, cl
je 0x10022c55
cmp cl, 5
mov ecx, dword [esp]
mov edx, dword [esp + 0x18]
jae 0x10022dcc
cmp dword [esp + 0x1c], 0
jne 0x10022b3d
cmp eax, 4
jl 0x10022b3d
and byte [ecx + 0x20], 0xfd
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 0x10]
push dword [esp + 0x20]
push dword [eax + esi]
push str.SELECTFROM__w_._s_ORDER_BY_rowid
push ecx
call fcn.10024f60
add esp, 0x10
mov esi, eax
mov eax, dword [esp]
mov edi, dword [eax + 0x150]
xor eax, eax
mov ecx, dword [esp]
mov dword [ecx + 0x150], eax
push eax
lea eax, [esp + 0x28]
push eax
push fcn.10007220
push esi
push dword [esp + 0x10]
call sym.nss3.dll_sqlite3_exec
add esp, 0x14
mov ebx, eax
mov eax, dword [esp]
mov dword [eax + 0x150], edi
mov edi, dword [esp]
test ebx, ebx
jne 0x10022ba5
mov ebx, dword [esp + 0x30]
test esi, esi
je 0x10022bb2
mov ecx, edi
mov edx, esi
call fcn.10139000
test ebx, ebx
jne 0x10022e1e
mov ecx, edi
mov edx, dword [esp + 0x1c]
call fcn.10022fb0
cmp byte [edi + 0x53], 0
mov esi, dword [esp + 8]
jne 0x10022e64
mov eax, dword [edi + 0x10]
mov eax, dword [eax + esi + 0xc]
or word [eax + 0x4e], 1
xor ebx, ebx
mov eax, dword [esp + 0x14]
test al, al
mov eax, dword [esp + 0xc]
jne 0x10022c23
mov esi, dword [eax + esi + 4]
cmp byte [esi + 9], 0
jne 0x10022d44
mov ecx, esi
xor edx, edx
call fcn.1001cd30
test eax, eax
jne 0x10022c11
mov ecx, esi
xor edx, edx
call fcn.1001c9c0
cmp byte [esi + 9], 0
mov eax, dword [esp + 0xc]
jne 0x10022d5d
mov esi, dword [esp + 8]
mov ecx, dword [eax + esi + 4]
cmp byte [ecx + 9], 0
jne 0x10022d31
test ebx, ebx
jne 0x10022e37
mov byte [edi + 0xa9], 0
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.1014dc80
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [edx + 0x4c], 1
mov ecx, dword [ebx]
mov cl, byte [ecx + 0x4c]
jmp 0x10022b1d
inc dword [edi + 0xc]
mov cl, 1
mov dword [esp + 4], ecx
cmp byte [edi + 0xa], 0
jne 0x10022949
mov ecx, edi
mov ebx, eax
call fcn.1000a330
mov eax, ebx
mov cl, byte [edi + 9]
mov dword [esp + 4], ecx
jmp 0x10022949
dec dword [edi + 0xc]
jne 0x1002296d
mov ecx, edi
call fcn.1000a430
jmp 0x1002296d
mov eax, 0x2eb35835
xor edx, edx
div dword [edi + 0x194]
lea eax, [esi + edx*8]
add eax, 4
lea edx, [esi + edx*8]
jmp 0x100229e4
mov al, 1
mov dword [esp + 0x14], eax
jmp 0x10022926
and eax, 3
movzx edx, byte [edi + 0x50]
cmp eax, edx
je 0x10022a6a
mov eax, dword [ebp + 8]
mov edx, dword [eax]
test edx, edx
je 0x10022ce8
mov ecx, dword [esp]
call fcn.10139000
mov ecx, dword [esp]
mov edx, 0x44
push 0
call fcn.1014e1f0
add esp, 4
mov esi, eax
test eax, eax
je 0x10022d10
push 0x44
push str.attached_databases_must_use_the_same_text_encoding_as_main_database
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x10022e0f
inc dword [ecx + 0xc]
cmp byte [ecx + 0xa], 0
jne 0x100228f6
call fcn.1000a330
jmp 0x100228f6
dec dword [ecx + 0xc]
jne 0x10022c31
call fcn.1000a430
jmp 0x10022c31
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x10022bfb
mov ecx, esi
call fcn.1000a330
jmp 0x10022bfb
dec dword [esi + 0xc]
jne 0x10022c1f
mov ecx, esi
call fcn.1000a430
mov eax, dword [esp + 0xc]
jmp 0x10022c1f
inc dword [eax + 0xc]
cmp byte [eax + 0xa], 0
jne 0x10022aa2
mov ecx, dword [esp + 0x10]
call fcn.1000a330
jmp 0x10022aa2
dec dword [ecx + 0xc]
jne 0x10022b07
call fcn.1000a430
jmp 0x10022b07
xor eax, eax
mov dword [esp + 0x50], eax
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0xc]
lea ebx, [ecx + esi]
add ebx, 0xc
mov ecx, dword [ebx]
mov dword [ecx], eax
mov dl, byte [edi + 0x50]
jmp 0x10022a6a
mov eax, dword [ebp + 8]
mov edx, dword [eax]
test edx, edx
je 0x10022ddd
mov ecx, dword [esp]
call fcn.10139000
mov ecx, dword [esp]
mov edx, 0x18
push 0
call fcn.1014e1f0
add esp, 4
test eax, eax
je 0x10022e0a
movsd xmm0, qword [0x101b5f69]
movsd qword [eax + 0x10], xmm0
movups xmm0, xmmword [str.unsupported_file_format]
movups xmmword [eax], xmm0
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor ebx, ebx
inc ebx
mov edi, dword [esp]
mov esi, dword [esp + 8]
jmp 0x10022be1
cmp byte [edi + 0x53], 0
mov esi, dword [esp + 8]
jne 0x10022e64
test byte [edi + 0x23], 8
jne 0x10022bd3
jmp 0x10022be1
cmp ebx, 0xc0a
je 0x10022e44
cmp ebx, 7
jne 0x10022e51
mov eax, dword [esp]
cmp byte [eax + 0x53], 0
je 0x10022f0b
mov edi, dword [esp]
mov ecx, edi
mov edx, dword [esp + 0x1c]
call fcn.1014e620
jmp 0x10022c39
mov ecx, edi
call fcn.10151d90
mov eax, dword [edi + 0x10]
mov dword [esp + 0xc], eax
mov ebx, 7
jmp 0x10022be1
mov ebx, eax
mov dword [esp + 4], str.abort_due_to_ROLLBACK
cmp eax, 0x204
jne 0x10022efc
mov eax, dword [ebp + 8]
mov edx, dword [eax]
test edx, edx
je 0x10022e9e
mov ecx, dword [esp]
call fcn.10139000
mov dword [esp + 0x18], 0
cmp dword [esp + 4], 0
je 0x10022ee3
push dword [esp + 4]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esi, eax
inc esi
mov ecx, dword [esp]
mov edx, esi
push 0
call fcn.1014e1f0
add esp, 4
test eax, eax
je 0x10022ee3
mov edi, eax
push esi
push dword [esp + 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [esp + 0x18], edi
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov edi, dword [esp]
mov esi, dword [esp + 8]
mov eax, dword [esp + 0xc]
jmp 0x10022c23
cmp ebx, 0x65
jne 0x10022f61
mov dword [esp + 4], str.no_more_rows_available
jmp 0x10022e8d
mov eax, dword [esp]
cmp byte [eax + 0x54], 0
jne 0x10022e51
mov eax, dword [esp]
mov byte [eax + 0x53], 1
cmp dword [eax + 0xc0], 0
jle 0x10022f35
mov eax, dword [esp]
mov dword [eax + 0x110], 1
mov eax, dword [esp]
inc dword [eax + 0x118]
mov word [eax + 0x11c], 0
mov eax, dword [eax + 0xf0]
test eax, eax
je 0x10022e51
mov dword [eax + 0xc], 7
jmp 0x10022e51
cmp ebx, 0x64
jne 0x10022f73
mov dword [esp + 4], str.another_row_available
jmp 0x10022e8d
movzx eax, bl
mov dword [esp + 4], str.unknown_error
cmp eax, 0x1c
ja 0x10022e8d
mov ecx, 0x1410004
bt ecx, eax
jb 0x10022e8d
mov eax, dword [eax*4 + 0x101a1a94]
mov dword [esp + 4], eax
jmp 0x10022e8d