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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp byte [esi], 0
jne 0x1008ec11
mov dl, byte [esi + 1]
test dl, 2
je 0x1008ec11
mov ecx, dword [esi + 0x20]
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x24]
mov ebx, dword [ebp + 0x10]
cmp ecx, edi
jne 0x1008ebb7
cmp eax, ebx
jne 0x1008ebb9
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp eax, ebx
jg 0x1008ec11
jl 0x1008ebc1
cmp ecx, edi
jae 0x1008ec11
test dl, 8
jne 0x1008ec27
add ecx, 1
adc eax, 0
cmp ecx, edi
jne 0x1008ec11
cmp eax, ebx
jne 0x1008ec11
mov eax, dword [ebp + 0x18]
push 0
push esi
mov dword [eax], 0
call fcn.1008db90
add esp, 8
test eax, eax
jne 0x1008ec08
push esi
call fcn.10069740
add esp, 4
cmp dword [esi + 0x20], edi
jne 0x1008ec11
cmp dword [esi + 0x24], ebx
jne 0x1008ec11
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x65
jne 0x1008ee1f
push esi
call fcn.10071d50
add esp, 4
test eax, eax
je 0x1008ec39
cmp eax, 0x10
jne 0x1008ee1f
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0xffffffff
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, 1
lea ebx, [esi + 0x74]
sub eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov edx, dword [ebx]
mov ecx, eax
xor ebx, ebx
mov dword [ebp - 8], edx
movzx edi, word [edx + 0x18]
mov eax, dword [edx + 0x40]
dec edi
mov esi, edi
mov dword [ebp - 0xc], eax
sar esi, cl
mov cl, byte [edx + 2]
mov byte [ebp - 1], cl
mov ax, word [eax + esi*2]
mov ch, al
mov cl, ah
movzx eax, cx
movzx ecx, word [edx + 0x1a]
and eax, ecx
add eax, dword [edx + 0x44]
cmp byte [ebp - 1], 0
je 0x1008ec96
cmp byte [eax], 0x80
jb 0x1008ec95
mov ecx, dword [edx + 0x3c]
inc eax
cmp eax, ecx
jae 0x1008edaa
cmp byte [eax], 0x80
jae 0x1008ec87
inc eax
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.100af380
mov ecx, dword [ebp - 0x14]
add esp, 8
mov eax, dword [ebp - 0x18]
cmp ecx, dword [ebp + 0x10]
jg 0x1008ecc3
jl 0x1008ecb7
mov edx, dword [ebp + 0xc]
cmp eax, edx
jae 0x1008ecc6
lea ebx, [esi + 1]
cmp ebx, edi
jle 0x1008ecd8
or eax, 0xffffffff
jmp 0x1008ecea
mov edx, dword [ebp + 0xc]
cmp ecx, dword [ebp + 0x10]
jl 0x1008ed0e
jg 0x1008ecd1
cmp eax, edx
jbe 0x1008ed0e
lea edi, [esi - 1]
cmp ebx, edi
jg 0x1008ece5
mov edx, dword [ebp - 8]
lea esi, [edi + ebx]
mov eax, dword [ebp - 0xc]
sar esi, 1
jmp 0x1008ec65
mov eax, 1
mov edx, dword [ebp - 8]
mov edi, dword [ebp + 8]
cmp byte [edx + 8], 0
je 0x1008ed24
mov ecx, dword [ebp + 0x18]
mov word [edi + 0x46], si
mov dword [ecx], eax
xor eax, eax
xor ecx, ecx
mov word [edi + 0x32], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov word [edi + 0x46], si
cmp byte [edx + 8], 0
jne 0x1008ee04
mov ebx, esi
movzx eax, word [edx + 0x18]
cmp ebx, eax
jl 0x1008ed39
movzx ecx, byte [edx + 9]
mov eax, dword [edx + 0x38]
mov edx, dword [ecx + eax + 8]
jmp 0x1008ed53
mov eax, dword [edx + 0x40]
mov ax, word [eax + ebx*2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x1a]
movzx ecx, cx
and ecx, eax
mov eax, dword [edx + 0x38]
mov edx, dword [ecx + eax]
mov al, byte [edi + 0x44]
movzx ecx, bx
mov word [edi + 0x46], cx
cmp al, 0x13
jge 0x1008edd4
and byte [edi + 1], 0xf9
lea ebx, [edi + 0x74]
movsx eax, al
xor esi, esi
mov word [edi + 0x32], si
bswap edx
mov word [edi + eax*2 + 0x48], cx
movsx ecx, byte [edi + 0x44]
mov eax, dword [ebx]
mov dword [edi + ecx*4 + 0x78], eax
xor eax, eax
inc byte [edi + 0x44]
mov word [edi + 0x46], ax
movzx eax, byte [edi + 2]
push eax
push edi
push ebx
push edx
push dword [edi + 0x14]
call fcn.10069650
add esp, 0x14
test eax, eax
jne 0x1008edf7
mov eax, dword [ebp - 0x10]
jmp 0x1008ec47
push 0x1011b6ec
push 0x12161
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.e_sqlite3.dll_sqlite3_log
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1011b6ec
push 0x11fd8
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.e_sqlite3.dll_sqlite3_log
add esp, 0x14
mov eax, 0xb
xor ecx, ecx
mov word [edi + 0x32], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or byte [edi + 1], 2
mov dword [edi + 0x20], eax
xor eax, eax
mov word [edi + 0x32], ax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x24], ecx
mov dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret