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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x1012b470]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
push 0x40
mov dword [esp + 0x138], eax
mov byte [esp + 0x13c], al
lea eax, [esp + 0xa4]
mov esi, ecx
mov edi, edx
push ebx
push eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x78], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x7c], ebx
call fcn.100ff5c0
mov ecx, dword [esi + 0x34]
add esp, 0xc
mov dword [esp + 0x38], ecx
cmp edi, ebx
jne 0x10028505
lea eax, [ebx + 7]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.100f9904
mov esp, ebp
pop ebp
ret
movzx ecx, word [esi + 0x18]
movzx eax, byte [esi + 0xc]
lea edi, [eax + ecx]
cmp edi, 2
jge 0x1002851b
mov dword [esp + 0x44], ebx
jmp 0x10028542
mov edx, dword [ebp + 8]
cmp edx, ebx
jne 0x10028528
mov dword [esp + 0x44], ebx
jmp 0x1002853a
cmp edx, edi
jne 0x10028535
mov edx, dword [ebp + 0x10]
lea edx, [edi + edx - 2]
jmp 0x10028536
dec edx
mov dword [esp + 0x44], edx
mov edi, 2
sub edi, dword [ebp + 0x10]
lea edx, [edi + 1]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x44]
sub edx, eax
lea eax, [edx + edi]
cmp eax, ecx
jne 0x10028567
movzx eax, byte [esi + 9]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx + 8]
mov dword [esp + 0x50], edx
jmp 0x10028582
mov ecx, dword [esi + 0x40]
mov dx, word [ecx + eax*2]
movzx ecx, word [esi + 0x1a]
mov ah, dl
mov al, dh
movzx eax, ax
and eax, ecx
add eax, dword [esi + 0x38]
mov dword [esp + 0x50], eax
mov edx, dword [esp + 0x50]
mov eax, dword [edx]
bswap eax
mov dword [esp + 0x48], eax
mov edi, edi
cmp dword [esp + 0x10], 0
jne 0x100286dd
mov ebx, dword [esp + 0x38]
lea eax, [esp + edi*4 + 0x58]
push 0
push eax
mov eax, dword [esp + 0x50]
call fcn.10022670
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100286dd
mov ebx, dword [esp + edi*4 + 0x58]
cmp dword [ebx + 0x14], eax
jge 0x100285dc
push ebx
call fcn.10022180
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100286f9
movzx eax, word [ebx + 0x18]
mov ecx, dword [esp + 0x24]
mov edx, edi
lea eax, [ecx + eax + 4]
dec edi
mov dword [esp + 0x24], eax
test edx, edx
je 0x10028715
mov al, byte [esi + 0xc]
test al, al
je 0x10028638
movzx ecx, word [esi + 0x1c]
mov edx, dword [esp + 0x44]
add edx, edi
cmp edx, ecx
jne 0x10028638
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx]
bswap eax
push ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x4c]
push esi
mov dword [esp + edi*4 + 0x6c], ecx
call eax
movzx ecx, ax
add esp, 8
mov dword [esp + edi*4 + 0xe4], ecx
mov byte [esi + 0xc], 0
jmp 0x10028590
mov ecx, dword [esi + 0x40]
movzx edx, al
mov eax, dword [esp + 0x44]
sub eax, edx
add eax, edi
mov dx, word [ecx + eax*2]
mov ah, dl
mov al, dh
movzx edx, word [esi + 0x1a]
movzx ecx, ax
mov eax, dword [esi + 0x38]
and ecx, edx
add eax, ecx
mov ecx, dword [eax]
bswap ecx
push eax
mov dword [esp + 0x4c], ecx
mov ecx, dword [esi + 0x4c]
push esi
mov dword [esp + edi*4 + 0x6c], eax
call ecx
mov edx, dword [esp + 0x40]
movzx ebx, ax
add esp, 8
test byte [edx + 0x18], 0xc
mov dword [esp + edi*4 + 0xe4], ebx
je 0x100286b9
mov eax, dword [esp + edi*4 + 0x64]
sub eax, dword [esi + 0x38]
lea ecx, [ebx + eax]
cmp ecx, dword [edx + 0x28]
jg 0x100286b9
mov ecx, dword [esp + edi*4 + 0x64]
push ebx
push ecx
mov ecx, dword [esp + 0x74]
add ecx, eax
push ecx
call fcn.101025e0
mov edx, dword [esp + 0x78]
sub edx, dword [esi + 0x38]
add esp, 0xc
add edx, dword [esp + edi*4 + 0x64]
mov dword [esp + edi*4 + 0x64], edx
mov esi, dword [esp + 0x4c]
movzx ecx, byte [esi + 0xc]
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x10]
push eax
sub edx, ecx
add edx, edi
push ebx
push edx
call fcn.100273e0
add esp, 0xc
jmp 0x10028590
lea eax, [edi*4 + 4]
push eax
lea ecx, [esp + 0x5c]
push 0
push ecx
call fcn.100ff5c0
add esp, 0xc
jmp 0x10029715
lea edx, [edi*4]
push edx
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.100ff5c0
add esp, 0xc
jmp 0x10029715
mov edx, dword [esp + 0x38]
lea edi, [eax + 3]
mov eax, dword [edx + 0x24]
and edi, 0xfffffffc
lea ecx, [edi + edi*2]
lea eax, [eax + ecx*2]
cdq
mov ecx, eax
or ecx, edx
je 0x1002873f
push edx
push eax
call fcn.1000a580
add esp, 8
mov dword [esp + 0x14], eax
jmp 0x1002874b
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0xa8], eax
test eax, eax
jne 0x10028763
mov dword [esp + 0x10], 7
jmp 0x10029715
lea eax, [eax + edi*4]
lea edx, [eax + edi*2]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x58]
movzx ecx, byte [eax + 8]
add cx, cx
add cx, cx
cmp dword [esp + 0x34], 0
mov dword [esp + 0x2c], edx
mov dword [esp + 0xa4], eax
movzx eax, byte [eax + 2]
movzx edx, cx
mov dword [esp + 0x54], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0xc], 0
jle 0x10028988
jmp 0x100287b0
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + ecx*4 + 0x58]
movzx edx, word [edi + 0x18]
movzx ecx, word [edi + 0x1a]
mov eax, dword [edi + 0x38]
movzx ebx, word [edi + 0x12]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x18], ecx
mov ecx, dword [edx + 0x38]
mov dl, byte [eax]
add ebx, eax
mov dword [esp + 0x20], eax
cmp dl, byte [ecx]
jne 0x10028b8d
movzx eax, byte [edi + 0xc]
add eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xac]
mov esi, dword [esp + 0xa0]
add eax, eax
push eax
lea edx, [ecx + esi*2]
push 0
push edx
call fcn.100ff5c0
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x10028881
movzx eax, word [edi + 0x1c]
cmp dword [esp + 0x24], eax
jl 0x10028bb8
test eax, eax
jle 0x10028850
mov cx, word [ebx]
mov dh, cl
add ebx, 2
inc esi
mov dl, ch
movzx ecx, word [esp + 0x18]
movzx edx, dx
and edx, ecx
add edx, dword [esp + 0x20]
dec eax
mov ecx, dword [esp + 0x14]
mov dword [ecx + esi*4 - 4], edx
jne 0x10028825
mov dword [esp + 0xa0], esi
xor eax, eax
cmp byte [edi + 0xc], al
jbe 0x10028881
mov ecx, dword [esp + 0x14]
lea edx, [edi + 0x24]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x1c]
mov edx, dword [edx]
add dword [esp + 0x1c], 4
mov dword [ecx + esi*4], edx
movzx edx, byte [edi + 0xc]
inc eax
inc esi
cmp eax, edx
jl 0x10028862
mov dword [esp + 0xa0], esi
movzx ecx, word [edi + 0x12]
movzx eax, word [edi + 0x18]
add ecx, dword [esp + 0x20]
lea eax, [ecx + eax*2]
cmp ebx, eax
jae 0x100288c0
mov dx, word [ebx]
mov ch, dl
add ebx, 2
inc esi
mov cl, dh
movzx edx, cx
movzx ecx, word [esp + 0x18]
and edx, ecx
add edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov dword [ecx + esi*4 - 4], edx
cmp ebx, eax
jb 0x10028894
mov dword [esp + 0xa0], esi
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0xc]
dec edx
mov dword [esp + eax*4 + 0x10c], esi
cmp eax, edx
jge 0x10028975
cmp dword [esp + 0x3c], 0
jne 0x10028975
movzx eax, word [esp + eax*4 + 0xe4]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0xac]
add edx, ecx
add ecx, eax
push eax
mov word [ebx + esi*2], ax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + eax*4 + 0x68]
push ecx
push edx
mov dword [esp + 0x30], edx
call fcn.101025e0
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x20]
movzx edx, ax
add edx, dword [esp + 0x30]
add esp, 0xc
mov dword [ecx + esi*4], edx
sub word [ebx + esi*2], ax
cmp byte [edi + 8], 0
jne 0x10028946
mov eax, dword [edi + 0x38]
mov ecx, dword [ecx + esi*4]
mov edx, dword [eax + 8]
mov dword [ecx], edx
jmp 0x10028969
cmp word [ebx + esi*2], 4
jae 0x10028969
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
mov byte [ecx + eax], 0
inc word [ebx + esi*2]
inc eax
cmp word [ebx + esi*2], 4
jb 0x10028955
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xc]
inc esi
mov dword [esp + 0xa0], esi
inc eax
mov dword [esp + 0xc], eax
cmp eax, dword [esp + 0x34]
jl 0x100287b0
mov esi, dword [esp + 0x4c]
movzx eax, word [esp + 0x54]
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x64], eax
lea eax, [edx + eax - 0xc]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x34]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], edx
test eax, eax
jle 0x10028a90
mov edi, dword [esp + edx*4 + 0x58]
mov eax, dword [edi + 0x3c]
mov dword [esp + ecx*4 + 0xb0], eax
mov eax, dword [esp + edx*4 + 0x10c]
mov dword [esp + ecx*4 + 0xc8], eax
test ecx, ecx
je 0x100289e6
cmp eax, dword [esp + ecx*4 + 0xc4]
jne 0x100289e6
dec ecx
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x3c], 0
jne 0x10028a04
mov ebx, dword [esi + 0x3c]
inc ecx
inc eax
mov dword [esp + ecx*4 + 0xb0], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + ecx*4 + 0xc8], eax
mov eax, dword [esp + 0x40]
sub eax, dword [edi + 0x14]
cmp byte [edi + 0xc], 0
mov dword [esp + edx*4 + 0xe4], eax
mov dword [esp + 0x2c], 0
jbe 0x10028a6c
lea ecx, [edi + 0x24]
mov ebx, eax
mov dword [esp + 0x1c], ecx
lea esp, [esp]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
mov ecx, dword [edi + 0x4c]
push eax
push edi
call ecx
movzx ecx, byte [edi + 0xc]
add dword [esp + 0x24], 4
movzx edx, ax
mov eax, dword [esp + 0x34]
inc eax
add esp, 8
lea ebx, [ebx + edx + 2]
mov dword [esp + 0x2c], eax
cmp eax, ecx
jl 0x10028a30
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov dword [esp + edx*4 + 0xe4], ebx
mov eax, dword [esp + edx*4 + 0x10c]
mov dword [esp + edx*4 + 0xf8], eax
mov eax, dword [esp + 0x34]
inc edx
inc ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], ecx
cmp edx, eax
jl 0x100289b8
xor ebx, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ebx
cmp eax, ebx
jle 0x10028d08
lea eax, [esp + 0xf8]
sub eax, 4
mov dword [esp + 0x20], 1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
lea esp, [esp]
mov eax, dword [esp + 0x40]
cmp dword [esp + ebx + 0xe4], eax
jle 0x10028c0c
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x14]
jl 0x10028b02
inc eax
mov dword [esp + 0x14], eax
cmp eax, 5
jg 0x10028e35
mov ecx, dword [esp + 0xa0]
mov dword [esp + ebx + 0xe8], 0
mov dword [esp + ebx + 0xfc], ecx
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + ecx + 0xf8]
mov edx, dword [esp + 0xac]
lea eax, [ebx - 1]
mov dword [esp + 0x2c], eax
movzx eax, word [edx + eax*2]
test ax, ax
jne 0x10028b3b
mov edi, dword [esp + 0x2c]
lea esi, [esp + 0xa0]
call fcn.10027a30
mov ecx, dword [esp + 0x18]
movzx eax, ax
movzx eax, ax
add eax, 2
sub dword [esp + ecx + 0xe4], eax
cmp dword [esp + 0x3c], 0
jne 0x10028be5
cmp ebx, dword [esp + 0xa0]
jge 0x10028be3
mov eax, dword [esp + 0xac]
movzx eax, word [eax + ebx*2]
test ax, ax
jne 0x10028b85
mov edi, ebx
lea esi, [esp + 0xa0]
call fcn.10027a30
mov ecx, dword [esp + 0x18]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x10028be5
push 0x1011b294
push 0x12fe6
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.MyService.dll_sqlite3_log
add esp, 0x14
mov dword [esp + 0x10], 0xb
jmp 0x10029715
push 0x1011b294
push 0x12ffe
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.MyService.dll_sqlite3_log
add esp, 0x14
mov dword [esp + 0x10], 0xb
jmp 0x10029715
xor eax, eax
add dword [esp + ecx + 0xe8], eax
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
mov dword [esp + ecx + 0xf8], edx
cmp dword [esp + ecx + 0xe4], eax
jg 0x10028ad1
mov edx, dword [esp + 0xa0]
cmp dword [esp + ebx + 0xf8], edx
jge 0x10028cbb
mov edi, dword [esp + ebx + 0xf8]
mov ecx, dword [esp + 0xac]
movzx eax, word [ecx + edi*2]
test ax, ax
jne 0x10028c4d
lea esi, [esp + 0xa0]
call fcn.10027a30
mov edx, dword [esp + 0xa0]
movzx eax, ax
mov ecx, dword [esp + ebx + 0xe4]
movzx eax, ax
add eax, 2
add ecx, eax
cmp ecx, dword [esp + 0x40]
jg 0x10028cbb
inc edi
cmp dword [esp + 0x3c], 0
mov dword [esp + ebx + 0xe4], ecx
mov dword [esp + ebx + 0xf8], edi
jne 0x10028cac
cmp edi, edx
jge 0x10028caa
mov eax, dword [esp + 0xac]
movzx eax, word [eax + edi*2]
test ax, ax
jne 0x10028ca2
lea esi, [esp + 0xa0]
call fcn.10027a30
mov edx, dword [esp + 0xa0]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x10028cac
xor eax, eax
sub dword [esp + ebx + 0xe8], eax
cmp edi, edx
jl 0x10028c20
mov ecx, dword [esp + ebx + 0xf8]
cmp ecx, edx
jl 0x10028cd0
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
jmp 0x10028cea
cmp dword [esp + 0xc], 0
jle 0x10028ce0
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + ebx]
jmp 0x10028ce2
xor eax, eax
cmp ecx, eax
jle 0x10028e60
mov eax, dword [esp + 0xc]
inc dword [esp + 0x20]
inc eax
add ebx, 4
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], ebx
cmp eax, dword [esp + 0x14]
jl 0x10028ac0
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0xc], eax
test eax, eax
jle 0x10028ea7
mov edx, dword [esp + eax*4 + 0xe0]
mov edi, dword [esp + 0xac]
mov ecx, dword [esp + eax*4 + 0xe4]
mov dword [esp + 0x20], edx
lea edx, [esp + 0xf8]
mov ebx, dword [edx + eax*4 - 4]
sub edx, 4
dec ebx
mov dword [esp + 0x1c], edx
mov edx, ebx
sub edx, dword [esp + 0x3c]
mov dword [esp + 0x18], ecx
lea esi, [edx + edx + 2]
cmp word [esi + edi], 0
mov dword [esp + 0x2c], esi
jne 0x10028d79
lea edi, [edx + 1]
lea esi, [esp + 0xa0]
call fcn.10027a30
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x24], esi
mov edx, dword [esp + 0xac]
movzx edx, word [edx + ebx*2]
test dx, dx
jne 0x10028da6
mov edi, ebx
lea esi, [esp + 0xa0]
call fcn.10027a30
mov ecx, dword [esp + 0x18]
movzx edx, ax
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0xac]
movzx esi, word [esi + edi]
movzx edx, dx
mov dword [esp + 0x2c], esi
test ecx, ecx
je 0x10028dea
cmp dword [ebp + 0x10], 0
jne 0x10028e14
mov esi, dword [esp + 0x14]
dec esi
mov edi, eax
sub edi, esi
mov esi, dword [esp + 0x20]
neg edi
sbb edi, edi
and edi, 2
sub esi, edi
mov edi, dword [esp + 0x2c]
sub esi, edx
lea edi, [edi + ecx + 2]
cmp edi, esi
jg 0x10028e14
mov esi, dword [esp + 0x2c]
sub dword [esp + 0x24], 2
lea ecx, [ecx + esi + 2]
mov esi, 0xfffffffe
sub esi, edx
mov edx, dword [esp + 0x1c]
add dword [esp + 0x20], esi
mov dword [edx + eax*4], ebx
dec ebx
mov dword [esp + 0x18], ecx
jns 0x10028d7d
mov dword [esp + eax*4 + 0xe4], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + eax*4 + 0xe0], ecx
cmp eax, 1
jle 0x10028e8b
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + eax*4 - 4]
jmp 0x10028e8d
push 0x1011b294
push 0x13063
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.MyService.dll_sqlite3_log
add esp, 0x14
mov dword [esp + 0x10], 0xb
jmp 0x10029715
push 0x1011b294
push 0x13084
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.MyService.dll_sqlite3_log
add esp, 0x14
mov dword [esp + 0x10], 0xb
jmp 0x10029715
xor ecx, ecx
mov edx, dword [esp + 0x1c]
cmp dword [edx + eax*4], ecx
jle 0x10028f11
dec eax
mov dword [esp + 0xc], eax
test eax, eax
jg 0x10028d19
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0x38]
movzx edx, byte [ecx]
xor ebx, ebx
mov dword [esp + 0x18], edx
cmp dword [esp + 0x14], ebx
jle 0x10029027
cmp ebx, dword [esp + 0x34]
jge 0x10028f91
mov eax, dword [esp + ebx*4 + 0x58]
mov edi, eax
mov esi, dword [edi + 0x48]
test byte [esi + 0x1c], 4
mov ecx, dword [esi + 0x14]
mov dword [esp + ebx*4 + 0x74], eax
mov dword [esp + 0x2c], edi
mov dword [esp + ebx*4 + 0x58], 0
je 0x10028f40
mov eax, dword [ecx + 0x1c]
cmp eax, dword [esi + 0x18]
jb 0x10028f40
cmp dword [ecx + 0x68], 0
je 0x10028f3c
mov eax, esi
call fcn.10017fb0
test eax, eax
je 0x10028f3c
push esi
call fcn.1001b1d0
add esp, 4
jmp 0x10028f67
push 0x1011b294
push 0x130b0
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.MyService.dll_sqlite3_log
add esp, 0x14
mov dword [esp + 0x10], 0xb
jmp 0x10029715
xor eax, eax
jmp 0x10028f67
mov eax, dword [ecx + 0x2c]
test eax, eax
jne 0x10028f67
mov edx, dword [ecx + 0x9c]
cmp edx, dword [ecx + 0xa8]
jbe 0x10028f60
push esi
call fcn.1001c640
add esp, 4
jmp 0x10028f67
mov eax, esi
call fcn.1001c5b0
mov ecx, dword [ebp + 8]
sub ecx, dword [esp + 0x44]
inc dword [esp + 0x28]
xor edx, edx
cmp ebx, ecx
mov ecx, dword [edi + 0x48]
sete dl
mov dword [esp + 0x10], eax
inc edx
cmp dword [ecx + 0x20], edx
jne 0x10029206
test eax, eax
jmp 0x10029016
cmp dword [ebp + 0x10], 0
mov eax, 1
jne 0x10028fa0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x38]
push 0
push eax
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x38]
push eax
push ecx
call fcn.10026630
add esp, 0x14
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10029715
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x2c]
push edx
call fcn.100224c0
mov ecx, dword [esp + 0x3c]
inc dword [esp + 0x2c]
mov eax, dword [esp + 0xa4]
add esp, 4
cmp byte [ecx + 0x11], 0
mov dword [esp + ebx*4 + 0x74], edi
mov dword [esp + ebx*4 + 0x10c], eax
je 0x1002901c
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x10]
push edx
mov edx, dword [eax + 4]
mov eax, dword [edi + 4]
push edx
push 5
call fcn.100210d0
add esp, 0xc
cmp dword [esp + 0x10], 0
jne 0x10029715
inc ebx
cmp ebx, dword [esp + 0x14]
jl 0x10028ec1
mov edx, dword [esp + 0x28]
xor eax, eax
test edx, edx
jle 0x10029044
mov ecx, dword [esp + eax*4 + 0x74]
mov ecx, dword [ecx + 4]
mov dword [esp + eax*4 + 0x120], ecx
inc eax
cmp eax, edx
jl 0x10029031
lea eax, [edx - 1]
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x48], eax
test eax, eax
jle 0x1002914c
lea esp, [esp]
lea eax, [ecx + 1]
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x28]
jge 0x1002913c
lea esi, [ecx*4]
mov dword [esp + 0x2c], esi
lea esp, [esp]
mov ebx, dword [esp + esi + 0x74]
lea edx, [eax*4]
mov edi, dword [esp + edx + 0x74]
mov edi, dword [edi + 4]
cmp edi, dword [ebx + 4]
jae 0x1002909b
mov ecx, eax
mov esi, edx
inc eax
cmp eax, dword [esp + 0x28]
jl 0x10029080
cmp ecx, dword [esp + 0xc]
je 0x10029138
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + edx + 0x74]
mov ecx, dword [esp + ecx*4 + 0x74]
mov edx, dword [ecx + 4]
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], eax
mov eax, dword [0x1012c3e4]
xor edx, edx
div dword [esi + 0x24]
mov esi, dword [edi + 0x48]
movzx edx, word [esi + 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ecx + 0x48]
movzx ecx, word [ecx + 0x1c]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], ecx
mov word [esi + 0x1c], cx
lea ebx, [eax + 1]
call fcn.10016780
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x48]
mov ax, word [esp + 0x14]
mov ebx, dword [esp + 0x24]
mov word [esi + 0x1c], ax
call fcn.10016780
mov esi, dword [edi + 0x48]
mov cx, word [esp + 0xc]
mov ebx, dword [esp + 0x2c]
mov word [esi + 0x1c], cx
call fcn.10016780
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, ebx
mov dword [edi + 4], edx
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x20]
mov ecx, eax
mov dword [esp + 0xc], ecx
cmp ecx, dword [esp + 0x48]
jl 0x10029060
test byte [esp + 0x18], 8
mov edx, dword [esp + 0x28]
mov eax, dword [esp + edx*4 + 0x70]
mov ecx, dword [eax + 4]
mov esi, dword [esp + 0x50]
bswap ecx
mov dword [esi], ecx
jne 0x10029188
mov ecx, dword [esp + 0x34]
cmp edx, ecx
je 0x10029188
lea edx, [esp + 0x74]
jg 0x10029178
lea edx, [esp + 0x58]
mov edx, dword [edx + ecx*4 - 4]
mov ecx, dword [edx + 0x38]
mov edx, dword [eax + 0x38]
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x38]
cmp byte [ecx + 0x11], 0
je 0x10029386
mov ebx, dword [esp + 0x74]
movzx eax, word [ebx + 0x18]
movzx edx, byte [ebx + 0xc]
xor edi, edi
add eax, edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], edi
cmp dword [esp + 0xa0], edi
jle 0x10029386
mov dword [esp + 0x1c], edi
jmp 0x100291d0
mov eax, dword [esp + 0xa8]
mov esi, dword [eax + edi*4]
mov dword [esp + 0x20], esi
cmp edi, dword [esp + 0x50]
jne 0x10029257
xor eax, eax
cmp dword [esp + 0x3c], eax
sete al
mov ecx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x24], ecx
cmp ecx, dword [esp + 0x28]
jge 0x10029239
mov ebx, dword [esp + ecx*4 + 0x74]
jmp 0x1002923d
test eax, eax
jne 0x10029715
push 0x1011b294
push 0x130d1
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.MyService.dll_sqlite3_log
add esp, 0x14
mov dword [esp + 0x10], 0xb
jmp 0x10029715
mov ebx, dword [esp + ecx*4 + 0x58]
movzx ecx, word [ebx + 0x18]
movzx edx, byte [ebx + 0xc]
add ecx, eax
add edx, ecx
mov ecx, dword [esp + 0x50]
add ecx, edx
mov dword [esp + 0x50], ecx
cmp edi, ecx
je 0x100291f1
mov eax, dword [esp + 0x1c]
cmp edi, dword [esp + eax + 0xf8]
jne 0x10029288
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
add eax, eax
add eax, eax
cmp dword [esp + 0x3c], 0
mov ecx, dword [esp + eax + 0x74]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
je 0x10029378
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x28]
jge 0x100292b0
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 4]
cmp ecx, dword [esp + eax*4 + 0x120]
jne 0x100292b0
cmp esi, dword [ebx + 0x38]
jb 0x100292b0
cmp esi, dword [ebx + 0x3c]
jb 0x10029378
cmp word [esp + 0x54], 0
jne 0x100292d7
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [esi]
lea edx, [esp + 0x10]
push edx
push ecx
mov ecx, dword [esp + 0x40]
push 5
bswap eax
call fcn.100210d0
add esp, 0xc
mov edx, dword [esp + 0xac]
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x100292fa
lea esi, [esp + 0xa0]
call fcn.10027a30
mov esi, dword [esp + 0x20]
movzx eax, ax
mov ecx, dword [esp + 0x18]
cmp ax, word [ecx + 0x10]
jbe 0x1002936d
cmp dword [esp + 0x10], 0
jne 0x10029715
lea edx, [esp + 0x88]
push edx
mov eax, ecx
push esi
push eax
mov eax, dword [eax + 0x50]
call eax
movzx ecx, word [esp + 0xa4]
add esp, 0xc
cmp ecx, dword [esp + 0x94]
jae 0x10029378
mov eax, dword [ebx + 0x3c]
cmp esi, eax
jae 0x10029345
add ecx, esi
cmp ecx, eax
ja 0x100293e2
movzx eax, word [esp + 0x9a]
mov eax, dword [eax + esi - 4]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 0x34]
push edx
push 3
bswap eax
call fcn.100210d0
add esp, 0xc
cmp dword [esp + 0x10], 0
jne 0x10029715
inc edi
cmp edi, dword [esp + 0xa0]
jl 0x100291d0
cmp dword [esp + 0x48], 0
mov dword [esp + 0xc], 0
jle 0x10029537
mov eax, dword [esp + 0xc]
mov esi, dword [esp + eax*4 + 0xf8]
mov edi, dword [esp + eax*4 + 0x74]
mov ecx, dword [esp + 0xa8]
mov eax, dword [esp + 0xac]
mov edx, dword [ecx + esi*4]
movzx ecx, word [eax + esi*2]
mov ebx, dword [esp + 0x70]
add ebx, dword [esp + 0x6c]
mov eax, ecx
add eax, dword [esp + 0x64]
cmp byte [edi + 8], 0
mov dword [esp + 0x14], edx
jne 0x1002940d
mov ecx, dword [edi + 0x38]
mov edx, dword [edx]
mov dword [ecx + 8], edx
jmp 0x100294cb
push 0x1011b294
push 0x115a1
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.MyService.dll_sqlite3_log
add esp, 0x14
mov dword [esp + 0x10], 0xb
jmp 0x10029715
cmp dword [esp + 0x3c], 0
je 0x100294ac
mov ecx, dword [esp + 0xa8]
mov edx, dword [ecx + esi*4 - 4]
lea eax, [esp + 0x88]
push eax
mov eax, dword [edi + 0x50]
dec esi
push edx
push edi
call eax
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x94]
add esp, 0xc
mov dword [esp + 0x14], ebx
mov ecx, edx
mov dword [esp + 0x30], eax
test eax, eax
ja 0x10029498
jb 0x10029459
cmp edx, 0x7f
ja 0x1002946b
and dl, 0x7f
mov eax, 1
mov byte [ebx + 4], dl
add eax, 4
xor ebx, ebx
jmp 0x100294cb
test eax, eax
ja 0x10029498
jb 0x10029479
cmp edx, 0x3fff
ja 0x10029498
shrd edx, eax, 7
shr eax, 7
or dl, 0x80
and cl, 0x7f
mov eax, 2
mov byte [ebx + 4], dl
mov byte [ebx + 5], cl
add eax, 4
xor ebx, ebx
jmp 0x100294cb
push eax
push edx
lea ecx, [ebx + 4]
call fcn.1000f8b0
add esp, 8
add eax, 4
xor ebx, ebx
jmp 0x100294cb
sub dword [esp + 0x14], 4
cmp ecx, 4
jne 0x100294cb
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x4c]
mov edx, dword [eax + 0x4c]
push ecx
push eax
call edx
add esp, 8
movzx eax, ax
add dword [esp + 0x70], eax
xor ecx, ecx
cmp dword [esp + ecx*4 + 0xc8], esi
jg 0x100294e0
inc ecx
cmp ecx, 6
jl 0x100294d1
mov ecx, dword [esp + ecx*4 + 0xb0]
mov edx, dword [esp + 0x14]
cmp edx, ecx
jae 0x100294f9
add edx, eax
cmp edx, ecx
ja 0x10029590
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x4c]
add eax, esi
push edx
push eax
mov eax, ebx
call fcn.100274f0
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10029715
inc esi
mov dword [esp + 0xc], esi
cmp esi, dword [esp + 0x48]
jl 0x10029399
mov eax, dword [esp + 0x28]
mov ecx, 1
sub ecx, eax
mov dword [esp + 0xc], ecx
cmp ecx, eax
jge 0x1002963f
mov edi, edi
mov eax, ecx
cdq
mov esi, eax
xor esi, edx
sub esi, edx
cmp byte [esp + esi + 0x134], 0
jne 0x10029630
test ecx, ecx
jns 0x1002957f
mov edx, dword [esp + esi*4 + 0x108]
cmp edx, dword [esp + esi*4 + 0xf4]
jl 0x10029630
test esi, esi
jne 0x100295bb
mov eax, dword [esp + 0xf8]
xor edx, edx
xor ecx, ecx
jmp 0x100295f3
push 0x1011b294
push 0x13199
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.MyService.dll_sqlite3_log
add esp, 0x14
mov dword [esp + 0x10], 0xb
jmp 0x10029715
cmp esi, dword [esp + 0x34]
jge 0x100295d3
xor edx, edx
cmp dword [esp + 0x3c], edx
sete dl
add edx, dword [esp + esi*4 + 0x108]
jmp 0x100295da
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + esi*4 + 0xf8]
xor ecx, ecx
cmp dword [esp + 0x3c], ecx
sete cl
add ecx, dword [esp + esi*4 + 0xf4]
sub eax, ecx
mov ebx, dword [esp + esi*4 + 0x74]
lea edi, [esp + 0xa0]
push edi
push eax
push ecx
push edx
call fcn.10027ef0
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10029715
mov eax, dword [esp + 0x40]
sub eax, dword [esp + esi*4 + 0xe4]
mov ecx, dword [esp + 0xc]
mov byte [esp + esi + 0x134], 1
mov dword [ebx + 0x14], eax
inc ecx
mov dword [esp + 0xc], ecx
cmp ecx, dword [esp + 0x28]
jl 0x10029550
cmp dword [ebp + 0xc], 0
je 0x1002969c
mov eax, dword [esp + 0x4c]
cmp word [eax + 0x18], 0
jne 0x1002969c
movzx ecx, byte [eax + 9]
mov edx, dword [esp + 0x74]
cmp ecx, dword [edx + 0x14]
jg 0x1002969c
mov esi, edx
push 0xffffffffffffffff
push esi
call fcn.100218c0
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
mov eax, esi
call fcn.100283c0
add esp, 0xc
cmp dword [esp + 0x10], 0
jne 0x100296e6
mov ecx, dword [esi + 4]
mov ebx, dword [esi + 0x34]
push ecx
mov eax, esi
call fcn.10026c50
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x100296e6
mov ebx, dword [esp + 0x38]
cmp byte [ebx + 0x11], 0
je 0x100296e6
cmp word [esp + 0x54], 0
jne 0x100296e6
mov edi, dword [esp + 0x28]
xor esi, esi
test edi, edi
jle 0x100296e6
jmp 0x100296c0
mov eax, dword [esp + esi*4 + 0x74]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x10]
push edx
mov edx, dword [eax + 0x38]
mov eax, dword [edx + 8]
push ecx
push 5
bswap eax
mov ecx, ebx
call fcn.100210d0
inc esi
add esp, 0xc
cmp esi, edi
jl 0x100296c0
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x34]
cmp esi, edi
jge 0x10029715
cmp dword [esp + 0x10], 0
mov eax, dword [esp + esi*4 + 0x58]
jne 0x10029710
mov ecx, dword [eax + 4]
mov ebx, dword [eax + 0x34]
push ecx
call fcn.10026c50
add esp, 4
mov dword [esp + 0x10], eax
inc esi
cmp esi, edi
jl 0x100296f2
mov esi, dword [esp + 0xa8]
test esi, esi
je 0x10029778
cmp dword [0x1012c3e8], 0
je 0x1002976e
mov eax, dword [0x1013afb8]
test eax, eax
je 0x1002973c
push eax
call dword [0x1012c438]
add esp, 4
push esi
call dword [0x1012c414]
sub dword [0x1013af50], eax
dec dword [0x1013af74]
add esp, 4
push esi
call dword [0x1012c40c]
mov eax, dword [0x1013afb8]
add esp, 4
test eax, eax
je 0x10029778
push eax
call dword [0x1012c440]
jmp 0x10029775
push esi
call dword [0x1012c40c]
add esp, 4
xor edi, edi
cmp dword [esp + 0x34], edi
jle 0x100297e9
mov eax, dword [esp + edi*4 + 0x58]
test eax, eax
je 0x100297e2
mov eax, dword [eax + 0x48]
test byte [eax + 0x1c], 0x20
je 0x100297dd
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x80]
mov edx, dword [ecx + 0x90]
mov dword [eax + 0x10], edx
mov esi, dword [ecx + 0x40]
mov dword [ecx + 0x90], eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov ebx, dword [esi]
push edx
mov edx, dword [ecx + 0xac]
mov ecx, dword [ecx + 0xa8]
push edx
push ecx
dec eax
push 0
push eax
call fcn.101072b0
push edx
mov edx, dword [ebx + 0x48]
push eax
push esi
call edx
add esp, 0x10
jmp 0x100297e2
call fcn.10016480
inc edi
cmp edi, dword [esp + 0x34]
jl 0x10029784
xor edi, edi
cmp dword [esp + 0x28], edi
jle 0x1002985a
mov eax, dword [esp + edi*4 + 0x74]
test eax, eax
je 0x10029853
mov eax, dword [eax + 0x48]
test byte [eax + 0x1c], 0x20
je 0x1002984e
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x80]
mov edx, dword [ecx + 0x90]
mov dword [eax + 0x10], edx
mov esi, dword [ecx + 0x40]
mov dword [ecx + 0x90], eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov ebx, dword [esi]
push edx
mov edx, dword [ecx + 0xac]
mov ecx, dword [ecx + 0xa8]
push edx
push ecx
dec eax
push 0
push eax
call fcn.101072b0
push edx
mov edx, dword [ebx + 0x48]
push eax
push esi
call edx
add esp, 0x10
jmp 0x10029853
call fcn.10016480
inc edi
cmp edi, dword [esp + 0x28]
jl 0x100297f5
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100f9904
mov esp, ebp
pop ebp
ret