Function at 0x100b2970
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 0x100b2cf1
mov eax, dword [ebx + 8]
mov edi, ebx
test eax, eax
je 0x100b29ae
and byte [eax + 1], 0xfb
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x100b29a0
mov edi, dword [esi + 4]
mov cl, byte [esi + 9]
test cl, cl
je 0x100b29c8
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x100b29c8
mov ecx, esi
call fcn.100a8990
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 0x100b29e4
add dword [esi + 0xc], 0xffffffff
jne 0x100b29e4
mov ecx, esi
call fcn.100a8950
lea esi, [edi + 1]
mov edi, esi
mov dword [esp + 0x14], esi
cmp edi, 2
jae 0x100b29f6
xor ecx, ecx
jmp 0x100b2a2a
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 [0x10312a04]
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 0x100b29e4
mov eax, dword [0x10312a04]
xor edx, edx
div dword [ebx + 0x24]
inc eax
cmp edi, eax
je 0x100b29e4
push 1
lea eax, [esp + 0x24]
mov ecx, ebx
push esi
push eax
lea edx, [esp + 0x1c]
call fcn.100ae480
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x100b2af2
cmp dword [esp + 0x20], edi
je 0x100b2c89
mov edi, dword [esp + 0x18]
mov byte [esp + 0x1c], al
mov dword [esp + 0x24], eax
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x100b2a8d
push eax
xor edx, edx
call fcn.100a8d80
add esp, 4
mov ebx, eax
jmp 0x100b2a8f
xor ebx, ebx
mov edx, dword [esp + 0x10]
test edx, edx
je 0x100b2aee
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100b2ae7
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.101b0580
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 0x100b2aee
mov ecx, edx
call fcn.1009ee90
test ebx, ebx
je 0x100b2afb
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.100aa400
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x100b2af2
lea eax, [esp + 0x24]
mov edx, esi
push eax
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.100a9130
mov ebx, eax
add esp, 8
mov al, byte [esp + 0x1c]
cmp al, 1
je 0x100b2c07
cmp al, 2
je 0x100b2c07
test ebx, ebx
jne 0x100b2c2a
mov edx, dword [esp + 0x10]
mov ecx, edi
push ebx
push dword [esp + 0x24]
push dword [esp + 0x2c]
push dword [esp + 0x28]
call fcn.100ac040
mov ebx, eax
add esp, 0x10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100b2bc4
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100b2bbd
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.101b0580
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 0x100b2bc4
mov ecx, edx
call fcn.1009ee90
test ebx, ebx
jne 0x100b2af2
lea eax, [esp + 0x10]
mov edx, esi
push ebx
push eax
mov ecx, edi
call fcn.100aa400
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x100b2af2
mov edi, dword [esp + 0x10]
mov ecx, dword [edi + 0x48]
call fcn.100a4ee0
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x100b2c8d
mov edx, dword [edi + 0x48]
jmp 0x100b2c39
push 0x102eba44
push 0x12c84
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.BasicBusinessConfigCenter.dll_sqlite3_log
add esp, 0x14
mov ebx, 0xb
mov edx, dword [esp + 0x10]
test edx, edx
je 0x100b2af2
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100b2ce1
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.101b0580
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.100a8ff0
mov ebx, dword [esp + 0x28]
add esp, 0xc
test ebx, ebx
je 0x100b2cb9
test edi, edi
je 0x100b2af2
mov edx, dword [edi + 0x48]
jmp 0x100b2c39
mov ecx, dword [esp + 0x28]
mov edx, 4
push esi
call fcn.100b35a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100b2d1a
test edi, edi
je 0x100b2af2
mov edx, dword [edi + 0x48]
jmp 0x100b2c39
mov ecx, edx
call fcn.1009ee90
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.100ae480
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x100b2af2
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.100aa330
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x100b2d3e
call fcn.100a4700
mov eax, dword [esp + 0x2c]
pop edi
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret