Function at 0x10082550
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, ecx
mov dword [esp + 0x28], edx
push edi
mov dword [esp + 0x28], esi
mov ebx, dword [esi + 4]
mov dword [esp + 0x18], ebx
cmp byte [ebx + 0x11], 0
je 0x100828d1
mov eax, dword [ebx + 8]
mov edi, ebx
test eax, eax
je 0x1008258e
and byte [eax + 1], 0xfb
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x10082580
mov edi, dword [esi + 4]
mov cl, byte [esi + 9]
test cl, cl
je 0x100825a8
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x100825a8
mov ecx, esi
call fcn.10078580
mov cl, byte [esi + 9]
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x38]
mov edi, dword [eax + 0x34]
bswap edi
test cl, cl
je 0x100825c4
add dword [esi + 0xc], 0xffffffff
jne 0x100825c4
mov ecx, esi
call fcn.10078540
lea esi, [edi + 1]
mov edi, esi
mov dword [esp + 0x14], esi
cmp edi, 2
jae 0x100825d6
xor ecx, ecx
jmp 0x1008260a
mov eax, 0xcccccccd
lea esi, [edi - 2]
mul dword [ebx + 0x28]
mov eax, esi
mov ecx, edx
xor edx, edx
shr ecx, 2
inc ecx
div ecx
mov eax, dword [0x102d69fc]
xor ecx, ecx
sub esi, edx
xor edx, edx
div dword [ebx + 0x24]
dec eax
cmp esi, eax
sete cl
add esi, 2
add ecx, esi
mov esi, dword [esp + 0x14]
cmp edi, ecx
je 0x100825c4
mov eax, dword [0x102d69fc]
xor edx, edx
div dword [ebx + 0x24]
inc eax
cmp edi, eax
je 0x100825c4
push 1
lea eax, [esp + 0x24]
mov ecx, ebx
push esi
push eax
lea edx, [esp + 0x1c]
call fcn.1007e060
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x100826d2
cmp dword [esp + 0x20], edi
je 0x10082869
mov edi, dword [esp + 0x18]
mov byte [esp + 0x1c], al
mov dword [esp + 0x24], eax
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x1008266d
push eax
xor edx, edx
call fcn.10078970
add esp, 4
mov ebx, eax
jmp 0x1008266f
xor ebx, ebx
mov edx, dword [esp + 0x10]
test edx, edx
je 0x100826ce
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100826c7
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.10181160
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x24]
add esp, 0x10
mov edi, dword [esp + 0x18]
jmp 0x100826ce
mov ecx, edx
call fcn.1006ea70
test ebx, ebx
je 0x100826db
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
mov edx, esi
push 0
push eax
mov ecx, edi
call fcn.10079ff0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x100826d2
lea eax, [esp + 0x24]
mov edx, esi
push eax
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.10078d20
mov ebx, eax
add esp, 8
mov al, byte [esp + 0x1c]
cmp al, 1
je 0x100827e7
cmp al, 2
je 0x100827e7
test ebx, ebx
jne 0x1008280a
mov edx, dword [esp + 0x10]
mov ecx, edi
push ebx
push dword [esp + 0x24]
push dword [esp + 0x2c]
push dword [esp + 0x28]
call fcn.1007bc30
mov ebx, eax
add esp, 0x10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100827a4
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x1008279d
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.10181160
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x24]
add esp, 0x10
mov edi, dword [esp + 0x18]
jmp 0x100827a4
mov ecx, edx
call fcn.1006ea70
test ebx, ebx
jne 0x100826d2
lea eax, [esp + 0x10]
mov edx, esi
push ebx
push eax
mov ecx, edi
call fcn.10079ff0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x100826d2
mov edi, dword [esp + 0x10]
mov ecx, dword [edi + 0x48]
call fcn.10074ad0
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x1008286d
mov edx, dword [edi + 0x48]
jmp 0x10082819
push 0x102b63bc
push 0x12c84
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.BasicSQLite.dll_sqlite3_log
add esp, 0x14
mov ebx, 0xb
mov edx, dword [esp + 0x10]
test edx, edx
je 0x100826d2
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100828c1
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov dword [eax + 0x88], edx
mov esi, dword [eax + 0x3c]
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.10181160
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push 0
push 1
mov edx, esi
call fcn.10078be0
mov ebx, dword [esp + 0x28]
add esp, 0xc
test ebx, ebx
je 0x10082899
test edi, edi
je 0x100826d2
mov edx, dword [edi + 0x48]
jmp 0x10082819
mov ecx, dword [esp + 0x28]
mov edx, 4
push esi
call fcn.10083180
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100828fa
test edi, edi
je 0x100826d2
mov edx, dword [edi + 0x48]
jmp 0x10082819
mov ecx, edx
call fcn.1006ea70
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [esp + 0x2c]
mov ecx, ebx
push 1
push eax
lea edx, [esp + 0x1c]
call fcn.1007e060
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x100826d2
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
test byte [ebp + 8], 1
mov eax, 0xa
mov edx, 0xd
mov ecx, edi
cmove edx, eax
call fcn.10079f20
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x1008291e
call fcn.100742f0
mov eax, dword [esp + 0x2c]
pop edi
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret