Function at 0x4168c0
Capabilities:
Get number of processors
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ff31a
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5365f0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x40], 1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], 3
mov dword [esp + 0x10], ebx
mov byte [esp + 0x40], 4
mov dword [esp + 0x20], ebx
cmp eax, ebx
je 0x416b6e
xor ecx, ecx
cmp cx, word [eax]
je 0x416b6e
cmp dword [esp + 0x24], ebx
je 0x41694f
push str.CSqliteDB::OpenDB_:__database_already_opened
mov edi, 0x93c770
call fcn.004c9ad0
add esp, 4
jmp 0x416b6e
lea edx, [esp + 0x24]
push edx
push eax
call fcn.004c9120
add esp, 8
cmp eax, ebx
je 0x416982
push eax
push str.CSqliteDB::OpenDB_:__sqlite3_open16_failed_with__d
mov edi, 0x93c770
call fcn.004c9ad0
mov eax, dword [esp + 0x2c]
push eax
call fcn.004c73b0
add esp, 0xc
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x24]
push ebx
lea ecx, [esp + 0x18]
push ecx
push 1
push 0x82
push str.SELECT_COUNT_name__FROM_sqlite_master_WHERE_nametbl_events_
mov dword [esp + 0x28], ebx
call fcn.004adc30
add esp, 0x14
cmp eax, ebx
je 0x4169c0
push eax
push str.CSqliteDB::PrepareStatement_:_sqlite3_prepare16_v2_failed_with__d
mov edi, 0x93c770
call fcn.004c9ad0
add esp, 8
jmp 0x416b6e
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x416b6c
push ebx
mov dword [esp + 0x14], ebx
call fcn.00485340
mov esi, eax
add esp, 4
cmp esi, 0x65
je 0x4169f8
cmp esi, 0x64
je 0x416a01
push esi
push str.CSqlStatement::Step_:_sqlite3_step_failed_with__d
mov edi, 0x93c770
call fcn.004c9ad0
add esp, 8
cmp esi, 0x64
jne 0x416b46
xor edi, edi
cmp dword [ebx + 0x14], edi
je 0x416a28
xor edx, edx
cmp dx, word [ebx + 0x2c]
jae 0x416a28
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
cmp eax, edi
je 0x416a23
push eax
call dword [0x5377a4]
add esp, 4
mov eax, dword [ebx + 0x14]
jmp 0x416a52
mov eax, dword [ebx]
cmp eax, edi
je 0x416a4d
mov eax, dword [eax + 0xc]
cmp eax, edi
je 0x416a3f
push eax
call dword [0x5377a4]
add esp, 4
mov ecx, dword [ebx]
push edi
push 0x19
push ecx
call fcn.00467be0
add esp, 0xc
mov eax, 0x5061f0
movzx ecx, word [eax + 0x1c]
test cl, 4
je 0x416a66
mov edi, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
jmp 0x416aeb
test cl, 8
je 0x416abe
fld qword [eax + 8]
mov edx, SysReAllocString
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edx
fild qword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x416a90
xor eax, eax
fstp st(0)
mov edi, eax
jmp 0x416aeb
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], SysStringLen
fild qword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x416ab5
xor eax, eax
fstp st(0)
mov edi, eax
jmp 0x416aeb
call fcn.004f09b6
mov edi, eax
jmp 0x416aeb
mov dword [esp + 0x18], edi
test cl, 0x12
je 0x416aef
mov ecx, dword [eax + 0x18]
push ecx
mov ecx, dword [eax + 4]
mov al, byte [eax + 0x1f]
lea edx, [esp + 0x18]
push edx
push ecx
mov dword [esp + 0x20], edi
call fcn.004683a0
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x18], edx
mov esi, dword [ebx]
mov eax, dword [ebx + 0x58]
test esi, esi
je 0x416b20
cmp byte [esi + 0x36], 0
jne 0x416b05
cmp eax, 0xc0a
jne 0x416b1b
push 0
push 7
push esi
call fcn.00467be0
add esp, 0xc
mov byte [esi + 0x36], 0
mov eax, 7
mov esi, dword [esi + 0x30]
jmp 0x416b25
mov esi, 0xff
and esi, eax
mov eax, dword [ebx]
mov dword [ebx + 0x58], esi
mov eax, dword [eax + 0xc]
test eax, eax
je 0x416b3d
push eax
call dword [0x5377ac]
add esp, 4
cmp edi, 1
jne 0x416b46
mov dword [esp + 0x20], edi
push ebx
call fcn.004847c0
add esp, 4
test eax, eax
jne 0x416b59
mov dword [esp + 0x10], eax
jmp 0x416b6c
push eax
push str.CSqlStatement::Finalize_:_sqlite3_finalize_failed_with__d
mov edi, 0x93c770
call fcn.004c9ad0
add esp, 8
xor ebx, ebx
lea esi, [esp + 0x24]
call fcn.004c9d30
mov byte [esp + 0x40], 3
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x416baa
push eax
call fcn.004847c0
add esp, 4
cmp eax, ebx
jne 0x416b97
mov dword [esp + 0x10], ebx
jmp 0x416baa
push eax
push str.CSqlStatement::Finalize_:_sqlite3_finalize_failed_with__d
mov edi, 0x93c770
call fcn.004c9ad0
add esp, 8
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x24]
push ecx
call fcn.004c9c40
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4