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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x1030f644]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], eax
mov ebx, dword [edi + 4]
mov dword [esp + 0x1c], ebx
cmp edx, dword [ebx + 0x30]
jbe 0x100b3119
push 0x102eb8d4
push 0x12d4b
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.BasicBusinessConfigCenter.dll_sqlite3_log
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.101afab5
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
lea ecx, [esp + 0x28]
push 0
push ecx
push edx
push eax
mov eax, dword [eax + 0xcc]
call eax
add esp, 0x10
test eax, eax
jne 0x100b34dc
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov esi, dword [edx + 8]
cmp ecx, dword [esi + 4]
je 0x100b3163
mov eax, dword [edx + 4]
cmp ecx, 1
mov dword [esi + 0x38], eax
setne al
mov dword [esi + 0x48], edx
dec al
mov dword [esi + 0x34], ebx
and al, 0x64
mov dword [esi + 4], ecx
mov byte [esi + 9], al
mov edx, ecx
mov ecx, edi
push 0
call fcn.100b2fd0
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edi
test edi, edi
jne 0x100b3475
mov eax, dword [esp + 0x20]
mov dword [eax], edi
cmp byte [ebx + 0x11], 0
je 0x100b345f
mov edi, dword [esp + 0x24]
mov cl, byte [edi + 9]
mov ebx, dword [edi + 4]
test cl, cl
je 0x100b31b4
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x100b31b4
mov ecx, edi
call fcn.100a8990
mov cl, byte [edi + 9]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax + 0x34]
bswap ebx
test cl, cl
je 0x100b31d0
add dword [edi + 0xc], 0xffffffff
jne 0x100b31d0
mov ecx, edi
call fcn.100a8950
cmp dword [esp + 0x14], ebx
jne 0x100b3250
lea edx, [esp + 0x18]
mov ecx, esi
call fcn.100af0f0
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100b3229
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
add esp, 0x10
jmp 0x100b3230
mov ecx, edx
call fcn.1009ee90
mov edi, dword [esp + 0x18]
test edi, edi
je 0x100b3411
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.101afab5
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100b3298
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
add esp, 0x10
jmp 0x100b329f
mov ecx, edx
call fcn.1009ee90
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push 0
push eax
mov edx, ebx
mov ecx, esi
call fcn.100aa400
mov edi, eax
add esp, 8
test edi, edi
jne 0x100b34da
mov eax, dword [esp + 0x10]
cmp dword [eax + 4], 3
jae 0x100b32f2
push 0x102eb8d4
push 0x11742
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.BasicBusinessConfigCenter.dll_sqlite3_log
add esp, 0x14
mov dword [esp + 0x14], 0xb
jmp 0x100b3320
mov edi, dword [esp + 0x14]
mov edx, dword [eax + 0x48]
mov ecx, dword [esi]
push 0
push edi
call fcn.100a5520
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x100b3320
mov eax, dword [esp + 0x10]
mov ecx, eax
mov dword [eax + 4], edi
call fcn.100abd90
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100b3370
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 + 0x2c]
add esp, 0x10
jmp 0x100b3377
mov ecx, edx
call fcn.1009ee90
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x100b34dc
push eax
mov dword [esp + 0x14], eax
mov edx, ebx
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.100aa400
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x20]
add esp, 8
mov dword [esp + 0x18], eax
mov ecx, esi
call fcn.100af0f0
test esi, esi
je 0x100b33ff
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100b33f8
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
add esp, 0x10
jmp 0x100b33ff
mov ecx, edx
call fcn.1009ee90
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x100b34da
mov eax, dword [esp + 0x20]
mov dword [eax], ebx
mov ecx, dword [esp + 0x1c]
xor edx, edx
mov eax, dword [0x10311a04]
dec ebx
div dword [ecx + 0x24]
lea esi, [eax + 1]
cmp ebx, esi
je 0x100b3436
mov edx, ebx
call fcn.100a8fb0
cmp eax, ebx
jne 0x100b3439
mov ecx, dword [esp + 0x1c]
dec ebx
jmp 0x100b3423
mov ecx, dword [esp + 0x24]
mov edx, 4
push ebx
call fcn.100b35a0
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.101afab5
mov esp, ebp
pop ebp
ret
push dword [esi + 4]
mov ecx, dword [esi + 0x34]
mov edx, esi
call fcn.100aed60
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100b34d3
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
mov edi, dword [esp + 0x20]
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.101afab5
mov esp, ebp
pop ebp
ret
mov ecx, edx
call fcn.1009ee90
mov eax, edi
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101afab5
mov esp, ebp
pop ebp
ret