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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
mov edx, dword [esi + 0xc]
mov eax, dword [ecx + 0x10]
add edx, edx
mov eax, dword [eax + edx*8 + 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x51c]
push edi
push eax
mov dword [esp + 0x14], edx
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
xor ebx, ebx
lea ecx, [esi + 0x14]
mov dword [esi + 0x51c], ebx
mov dword [esp + 0x18], ecx
jmp 0x101bf750
mov edx, dword [esp + 0x18]
cmp dword [edx], ebx
jne 0x101bf8a0
mov eax, dword [esi + 4]
push eax
mov dword [esi + 0x528], ebx
mov dword [esi + 0x52c], ebx
mov dword [esi + 0x530], ebx
mov dword [esi + 0x534], ebx
mov dword [esi + 0x538], ebx
mov dword [esi + 0x53c], ebx
mov dword [esi + 0x548], ebx
mov dword [esi + 0x54c], ebx
mov dword [esi + 0x524], ebx
call sym.SQLite.Interop.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x101bfd12
mov edi, dword [esi + 4]
cmp edi, ebx
je 0x101bf7ec
mov ecx, dword [edi]
mov eax, dword [ecx + 0xc]
cmp eax, ebx
je 0x101bf7c1
push eax
call dword [0x10292478]
add esp, 4
mov eax, dword [edi + 0x78]
cmp eax, ebx
je 0x101bf7db
mov edx, 1
cmp dx, word [edi + 0x90]
jae 0x101bf7db
add eax, 0x28
jmp 0x101bf7f1
mov ebx, dword [edi]
mov eax, 0x19
mov dword [ebx + 0x40], eax
call fcn.10143850
xor ebx, ebx
mov eax, 0x1026de90
mov edx, eax
call fcn.1013bb70
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
cmp edi, ebx
je 0x101bf839
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
mov ecx, dword [edi + 0x28]
jne 0x101bf81e
cmp ecx, 0xc0a
je 0x101bf81e
mov eax, dword [eax + 0x44]
and eax, ecx
jmp 0x101bf823
call fcn.10144890
mov dword [edi + 0x28], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x101bf839
push eax
call dword [0x10292480]
add esp, 4
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x18], ebx
je 0x101bfcfb
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
push ebx
push edx
mov eax, ecx
push edi
push eax
mov eax, dword [eax + 0xcc]
call eax
add esp, 0x10
cmp byte [esi + 9], 0
mov dword [esp + 0xc], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], ebx
jne 0x101bf88b
push 0x1027c690
call sym.SQLite.Interop.dll_sqlite3_mprintf
add esp, 4
mov dword [esi + 0x1c], eax
cmp eax, ebx
jne 0x101bf88b
mov dword [esp + 0xc], 7
mov dword [esi + 0x510], ebx
mov dword [esi + 0x524], 1
jmp 0x101bfa8d
cmp byte [esi + 9], 0
mov eax, dword [esi + 0x510]
lea ecx, [eax + eax*4]
lea eax, [esi + ecx*8 + 0x10]
mov dword [esp + 0xc], eax
jne 0x101bf8ed
mov dword [esi + 0x528], ebx
mov dword [esi + 0x52c], ebx
mov dword [esi + 0x530], ebx
mov dword [esi + 0x534], ebx
mov dword [esi + 0x538], ebx
mov dword [esi + 0x53c], ebx
mov dword [esi + 0x548], ebx
mov dword [esi + 0x54c], ebx
mov dword [esi + 0x524], ebx
mov edx, dword [eax + 8]
cmp edx, dword [eax + 0x14]
jge 0x101bf9e8
lea esp, [esp]
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0x1c]
lea eax, [eax + eax*2]
mov edx, dword [ecx + eax*8 + 0x14]
cmp edx, dword [ecx + eax*8 + 8]
lea ebx, [ecx + eax*8]
jge 0x101bf9cf
mov edi, edi
mov edi, dword [esp + 0x14]
cmp byte [edi + 9], 0
je 0x101bf938
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x101bf938
call fcn.10134af0
cmp byte [edi + 9], 0
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x1c], ecx
je 0x101bf957
dec dword [edi + 0xc]
jne 0x101bf957
mov esi, edi
call fcn.1012b2f0
mov esi, dword [ebp + 8]
inc dword [esi + 0x524]
call fcn.101250e0
mov edx, dword [ebx + 8]
dec edx
cmp dword [ebx + 0x14], edx
jge 0x101bf984
mov eax, dword [esp + 0x1c]
mov esi, dword [ebp + 8]
add eax, 0xfffffffc
cdq
add dword [esi + 0x538], eax
adc dword [esi + 0x53c], edx
jmp 0x101bf9b0
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp + 8]
cdq
add dword [ecx + 0x538], eax
mov eax, dword [esp + 0x1c]
mov esi, ecx
adc dword [ecx + 0x53c], edx
sub eax, dword [ebx + 0x10]
sub eax, 4
cdq
add dword [ecx + 0x530], eax
adc dword [ecx + 0x534], edx
mov edi, dword [ebx + 0x14]
lea eax, [edi + 1]
mov dword [ebx + 0x14], eax
cmp byte [esi + 9], 0
je 0x101bfd29
mov esi, dword [ebp + 8]
cmp eax, dword [ebx + 8]
jl 0x101bf920
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x20], 0
jne 0x101bf9e8
inc dword [eax + 8]
mov edx, dword [eax + 8]
cmp edx, dword [eax + 0x14]
jl 0x101bf900
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x20], 0
je 0x101bfbe9
mov eax, dword [edi + 8]
cmp eax, dword [edi + 0x14]
jg 0x101bfbe9
mov ebx, 1
add dword [esi + 0x510], ebx
cmp dword [esi + 0x510], 0x20
jge 0x101bfd81
mov eax, dword [edi + 8]
cmp eax, dword [edi + 0x14]
jne 0x101bfa27
mov ecx, dword [edi + 0x20]
jmp 0x101bfa31
lea edx, [eax + eax*2]
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + edx*8 + 4]
push 0
lea edx, [edi + 0x2c]
mov eax, ecx
push edx
push eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x28], ecx
push eax
mov eax, dword [eax + 0xcc]
call eax
add dword [esi + 0x524], ebx
add esp, 0x10
mov dword [edi + 0x30], 0
cmp byte [esi + 9], 0
mov dword [esp + 0xc], eax
jne 0x101bfa88
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
push ecx
push edx
push str._s_.3x_
call sym.SQLite.Interop.dll_sqlite3_mprintf
add esp, 0xc
mov dword [edi + 0x34], eax
test eax, eax
jne 0x101bfa88
mov dword [esp + 0xc], 7
add dword [edi + 8], ebx
xor ebx, ebx
cmp dword [esp + 0xc], ebx
jne 0x101bfdb4
mov eax, dword [esi + 0x510]
mov ecx, dword [esi + 4]
lea eax, [eax + eax*4]
push 0
push ecx
lea edi, [esi + eax*8 + 0x10]
call sym.SQLite.Interop.dll_sqlite3_column_text
mov dword [esi + 0x518], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [edi]
push edi
push eax
mov dword [esi + 0x514], edx
call fcn.1014abb0
add esp, 0x10
mov dword [esp + 0xc], eax
test eax, eax
jne 0x101bfdb4
call fcn.101250e0
movzx eax, byte [edi + 0x10]
add eax, 0xfffffffe
cmp eax, 0xb
ja case.0x101bfaef.3
movzx ecx, byte [eax + 0x101bfdd4]
jmp dword [ecx*4 + 0x101bfdc8]
mov esi, dword [ebp + 8]
mov dword [esi + 0x520], 0x1027c6b4
jmp 0x101bfb25
mov edx, dword [ebp + 8]
mov dword [edx + 0x520], 0x1027c6c0
mov esi, edx
jmp 0x101bfb25
mov eax, dword [ebp + 8]
mov dword [eax + 0x520], 0x1027c6c8
mov esi, eax
mov ecx, dword [edi + 0x14]
add dword [esi + 0x528], ecx
mov eax, dword [edi + 0x18]
cdq
add dword [esi + 0x530], eax
adc dword [esi + 0x534], edx
mov eax, dword [edi + 0x24]
cmp eax, dword [esi + 0x52c]
jle 0x101bfb4f
mov dword [esi + 0x52c], eax
cmp byte [esi + 9], 0
jne 0x101bfb78
mov edx, dword [edi + 0xc]
push edx
push 0x102759c0
call sym.SQLite.Interop.dll_sqlite3_mprintf
add esp, 8
mov dword [esi + 0x51c], eax
test eax, eax
jne 0x101bfb78
mov dword [esp + 0xc], 7
mov ecx, dword [edi + 0x14]
xor eax, eax
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x1c], eax
cmp ecx, 2
jl 0x101bfbaf
mov eax, dword [edi + 0x1c]
add ecx, 0xfffffffe
shr ecx, 1
inc ecx
lea ebx, [ecx + ecx]
mov dword [esp + 0x24], ebx
mov ebx, edx
lea esp, [esp]
add edx, dword [eax]
add ebx, dword [eax + 0x18]
add eax, 0x30
dec ecx
jne 0x101bfba0
mov eax, dword [esp + 0x24]
cmp eax, dword [edi + 0x14]
jge 0x101bfbc1
mov ecx, dword [edi + 0x1c]
lea eax, [eax + eax*2]
mov eax, dword [ecx + eax*8]
mov dword [esp + 0x1c], eax
lea eax, [ebx + edx]
add eax, dword [esp + 0x1c]
cdq
add dword [esi + 0x538], eax
adc dword [esi + 0x53c], edx
cmp byte [esi + 9], 0
je 0x101bfdb4
mov esi, dword [ebp + 8]
xor ebx, ebx
jmp 0x101bf750
mov edi, dword [esp + 0xc]
call fcn.101303d0
mov eax, dword [edi + 4]
test eax, eax
je 0x101bfc54
test byte [eax + 0x1c], 0x20
je 0x101bfc4f
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov edx, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov ebx, dword [edx]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
dec eax
push edx
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [esp + 0x30]
push 0
push eax
call fcn.10100050
mov ecx, dword [ebx + 0x48]
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
call ecx
add esp, 0x10
jmp 0x101bfc54
call fcn.1012c920
mov ebx, dword [edi + 0xc]
test ebx, ebx
je 0x101bfcb3
cmp dword [0x10292428], 0
je 0x101bfca9
mov eax, dword [0x10299778]
test eax, eax
je 0x101bfc77
push eax
call dword [0x10292478]
add esp, 4
push ebx
call dword [0x10292454]
sub dword [0x10299710], eax
dec dword [0x10299734]
add esp, 4
push ebx
call dword [0x1029244c]
mov eax, dword [0x10299778]
add esp, 4
test eax, eax
je 0x101bfcb3
push eax
call dword [0x10292480]
jmp 0x101bfcb0
push ebx
call dword [0x1029244c]
add esp, 4
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov eax, dword [esi + 0x510]
test eax, eax
jle 0x101bfcea
dec eax
mov dword [esi + 0x510], eax
xor ebx, ebx
jmp 0x101bf750
cmp byte [esi + 9], 0
jne 0x101bfdbf
xor ebx, ebx
jmp 0x101bf750
mov edx, dword [esi + 4]
push edx
mov byte [esi + 8], 1
call sym.SQLite.Interop.dll_sqlite3_reset
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
push eax
mov byte [esi + 8], 1
call sym.SQLite.Interop.dll_sqlite3_reset
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 4]
push 0
push ecx
call sym.SQLite.Interop.dll_sqlite3_column_text
mov dword [esi + 0x518], eax
mov edx, dword [ebx + 0xc]
mov eax, dword [edx + edi*4]
mov dword [esi + 0x514], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x520], 0x1027c694
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
push edi
push ecx
push edx
push str._s_.3x_.6x
call sym.SQLite.Interop.dll_sqlite3_mprintf
mov dword [esi + 0x51c], eax
add esp, 0x18
neg eax
sbb eax, eax
and eax, 0xfffffff9
add eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.101a27a0
add esp, 4
push 0x1027dfdc
push 0x3273e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.SQLite.Interop.dll_sqlite3_log
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret