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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov ebx, eax
mov ecx, dword [ebx + 0x34]
xor eax, eax
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 0x1c]
push esi
add ecx, edx
push edi
movzx edi, byte [ebx + 7]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
cmp byte [ebx + 3], al
je 0x1006f564
cmp ecx, 0x80
jae 0x1006f548
mov edx, dword [ebp + 8]
mov byte [edi + edx], cl
lea ecx, [eax + 1]
jmp 0x1006f55f
mov eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp + 8]
lea esi, [edi + eax]
call fcn.1001dea0
add esp, 8
mov ecx, eax
xor eax, eax
movzx ecx, cl
add edi, ecx
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
lea esi, [edi + edx]
mov edx, dword [ebp + 0x10]
cmp ecx, eax
ja 0x1006f5b2
jb 0x1006f57b
cmp edx, 0x7f
ja 0x1006f588
mov al, dl
and al, 0x7f
mov byte [esi], al
mov eax, 1
jmp 0x1006f5c4
cmp ecx, eax
ja 0x1006f5b2
jb 0x1006f596
cmp edx, 0x3fff
ja 0x1006f5b2
mov eax, edx
shrd eax, ecx, 7
shr ecx, 7
or al, 0x80
mov cl, dl
and cl, 0x7f
mov byte [esi], al
mov byte [esi + 1], cl
mov eax, 2
jmp 0x1006f5c1
push ecx
push edx
mov ecx, esi
call fcn.100165a0
mov edx, dword [ebp + 0x10]
add esp, 8
mov ecx, dword [ebp + 0x14]
add edi, eax
cmp byte [ebx + 2], 0
je 0x1006f5e3
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov dword [ebp + 0x1c], 0
jmp 0x1006f610
test ecx, ecx
jg 0x1006f89d
jl 0x1006f5f9
cmp edx, 0x7fffffff
ja 0x1006f89d
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1006f89d
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
movzx ecx, word [ebx + 0xa]
mov eax, dword [esp + 0x14]
cmp eax, ecx
jg 0x1006f635
lea edx, [eax + edi]
cmp edx, 4
jge 0x1006f629
mov edx, 4
mov ecx, dword [ebp + 0x20]
mov dword [ecx], edx
mov edx, dword [ebp + 8]
mov ebx, eax
jmp 0x1006f661
movzx esi, word [ebx + 0xc]
mov edx, dword [ebx + 0x34]
mov ebx, dword [edx + 0x24]
xor edx, edx
sub eax, esi
sub ebx, 4
div ebx
add edx, esi
cmp edx, ecx
jle 0x1006f650
mov edx, esi
mov ecx, dword [ebp + 0x20]
mov ebx, edx
add edx, edi
lea eax, [edx + 4]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
add edx, eax
mov ecx, dword [ebp + 8]
add edi, ecx
cmp dword [esp + 0x14], 0
mov dword [esp + 0x28], edx
jle 0x1006f88b
test ebx, ebx
jne 0x1006f826
mov ebx, dword [esp + 0x30]
cmp byte [ebx + 0x11], 0
mov edi, dword [esp + 0x10]
mov dword [esp + 0x34], edi
je 0x1006f6ea
lea ecx, [edi - 2]
inc edi
inc ecx
mov dword [esp + 0x2c], ecx
cmp edi, 2
jae 0x1006f6a1
xor eax, eax
jmp 0x1006f6d3
mov eax, 0xcccccccd
mul dword [ebx + 0x24]
mov esi, edx
shr esi, 2
mov eax, ecx
xor edx, edx
inc esi
div esi
xor edx, edx
mov ecx, eax
mov eax, dword [0x100cb4d0]
imul ecx, esi
div dword [ebx + 0x20]
add ecx, 2
inc eax
cmp ecx, eax
jne 0x1006f6cd
inc ecx
mov eax, ecx
mov ecx, dword [esp + 0x2c]
cmp eax, edi
je 0x1006f692
mov eax, dword [0x100cb4d0]
xor edx, edx
div dword [ebx + 0x20]
inc eax
cmp edi, eax
je 0x1006f692
mov dword [esp + 0x10], edi
push 0
push edi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x30]
push eax
push ebx
call fcn.1006d880
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
add esp, 0x14
cmp byte [ebx + 0x11], 0
mov esi, eax
mov dword [esp + 0x2c], esi
je 0x1006f74f
test esi, esi
jne 0x1006f753
mov eax, dword [esp + 0x34]
test eax, eax
setne dl
lea ecx, [esp + 0x2c]
push ecx
add dl, 3
movzx ecx, dl
push ecx
push ebx
mov ebx, eax
mov eax, dword [esp + 0x1c]
call fcn.1006c670
mov esi, dword [esp + 0x38]
add esp, 0xc
test esi, esi
je 0x1006f765
mov eax, edi
call fcn.10025600
mov ecx, dword [esp + 0x10]
test esi, esi
je 0x1006f769
mov eax, dword [esp + 0x20]
call fcn.10025600
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov edx, ecx
shr edx, 0x18
mov byte [eax], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov byte [eax + 2], dl
mov byte [eax + 3], cl
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1006f7fc
mov eax, dword [eax + 0x44]
test byte [eax + 0x18], 0x40
mov esi, dword [eax + 0x10]
je 0x1006f7dc
dec dword [esi + 0x78]
mov ecx, dword [esi + 0x88]
mov dword [eax + 0xc], ecx
mov ebx, dword [esi + 0x3c]
mov dword [esi + 0x88], eax
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0x98]
mov edi, dword [ebx]
push edx
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.100083f0
push edx
mov edx, dword [edi + 0x48]
push eax
push ebx
call edx
mov edi, dword [esp + 0x34]
add esp, 0x10
jmp 0x1006f7e1
call fcn.1001d7d0
cmp dword [esi + 0x78], 0
jne 0x1006f7fc
mov eax, dword [esi + 0xdc]
cmp dword [eax + 0xc], 0
jne 0x1006f7fc
push esi
call fcn.10069eb0
add esp, 4
mov eax, dword [edi + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x20], edi
mov byte [eax], 0
mov byte [eax + 1], 0
mov byte [eax + 2], 0
mov byte [eax + 3], 0
mov edi, dword [edi + 0x38]
mov ebx, dword [ecx + 0x24]
add edi, 4
mov dword [esp + 0x28], eax
sub ebx, 4
mov esi, dword [esp + 0x14]
cmp esi, ebx
jle 0x1006f830
mov esi, ebx
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x1006f84c
cmp esi, eax
jle 0x1006f83e
mov esi, eax
mov edx, dword [esp + 0x1c]
push esi
push edx
push edi
call fcn.100091c0
jmp 0x1006f855
push esi
push 0
push edi
call fcn.10004b00
mov eax, dword [esp + 0x24]
sub dword [esp + 0x20], esi
add dword [esp + 0x28], esi
sub eax, esi
add esp, 0xc
add edi, esi
sub ebx, esi
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1006f880
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x14], 0
jg 0x1006f675
mov eax, dword [esp + 0x20]
call fcn.10025600
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x100b88d4
push 0xe45e
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call sym.SQLite.Interop.dll_sqlite3_log
add esp, 0x10
pop edi
pop esi
mov eax, 0xb
pop ebx
mov esp, ebp
pop ebp
ret