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

Disassembly:
push 0xffffffffffffffff
push 0x7752a7
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x74], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x24], ebp
push 0x161d
mov dword [esp + 0x30], 0x161e
call fcn.00606650
mov ecx, eax
call fcn.00606640
mov ecx, eax
call fcn.005fca70
push 0xc
mov dword [esp + 0x98], 0
xor bl, bl
mov dword [esp + 0x1c], 0
call fcn.006f7558
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
mov byte [esp + 0x94], 1
test esi, esi
je 0x6820c8
push str.SELECT__FROM_SoftwareLicensingProduct_WHERE_PartialProductKey____null
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.00733530
mov dword [esi], eax
jmp 0x6820ca
xor esi, esi
mov byte [esp + 0x94], 0
mov dword [esp + 0x28], esi
test esi, esi
jne 0x6820e4
push 0x8007000e
call fcn.007333f0
push 0xc
mov byte [esp + 0x98], 2
call fcn.006f7558
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
mov byte [esp + 0x94], 3
test edi, edi
je 0x682124
push 0x79b808
mov dword [edi + 4], 0
mov dword [edi + 8], 1
call fcn.00733530
mov dword [edi], eax
jmp 0x682126
xor edi, edi
mov byte [esp + 0x94], 2
mov dword [esp + 0x14], edi
test edi, edi
jne 0x682140
push 0x8007000e
call fcn.007333f0
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x18]
push edx
push 0
push 0x30
push dword [esi]
mov ecx, dword [eax]
push dword [edi]
mov byte [esp + 0xa8], 4
push eax
call dword [ecx + 0x50]
or ebp, 0xffffffff
mov dword [esp + 0x14], eax
mov byte [esp + 0x94], 2
lea ecx, [edi + 8]
mov eax, ebp
lock xadd dword [ecx], eax
dec eax
mov ecx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
jne 0x6821b4
mov eax, dword [edi]
test eax, eax
je 0x68218e
push eax
call ecx
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x6821a5
push eax
call fcn.006f8afe
add esp, 4
mov dword [edi + 4], 0
push edi
call fcn.006f75a9
mov ecx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
mov byte [esp + 0x94], 0
lea eax, [esi + 8]
lock xadd dword [eax], ebp
dec ebp
jne 0x6821f5
mov eax, dword [esi]
test eax, eax
je 0x6821d5
push eax
call ecx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x6821ec
push eax
call fcn.006f8afe
add esp, 4
mov dword [esi + 4], 0
push esi
call fcn.006f75a9
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
jns 0x68225b
push eax
lea eax, [esp + 0x54]
push eax
call fcn.006066c0
add esp, 8
add eax, 4
mov byte [esp + 0x94], 5
cmp dword [eax + 0x14], 0x10
jb 0x68221e
mov eax, dword [eax]
push eax
push 0x1616
call fcn.00606650
mov ecx, eax
call fcn.00606640
mov ecx, eax
call fcn.005fcaa0
cmp dword [esp + 0x68], 0x10
mov byte [esp + 0x94], 0
mov dword [esp + 0x50], vtable.wbs::StringBase_char_.0
jb 0x6823ea
push dword [esp + 0x54]
jmp 0x6823e2
mov edx, dword [esp + 0x18]
mov dword [esp + 0x1c], 0
test edx, edx
je 0x6823ee
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ebp, dword [esp + 0x24]
lea esp, [esp]
test bl, bl
jne 0x6823ee
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
mov eax, dword [edx]
push ecx
lea ecx, [esp + 0x20]
push ecx
push 1
push 0x1388
push edx
call dword [eax + 0x10]
cmp dword [esp + 0x14], 0
je 0x68238a
push 0xc8
call fcn.006f888a
add esp, 4
lea edx, [esp + 0x40]
mov esi, eax
mov eax, dword [esp + 0x1c]
push 0
mov ecx, dword [eax]
push 0
push edx
push 0
push str.ApplicationId
push eax
call dword [ecx + 0x10]
push 0x64
push dword [esp + 0x4c]
push esi
call fcn.00705d04
xor eax, eax
push str.55c92734_d682_4d71_983e_d6ec3f16059f
push esi
mov word [esi + 0xc6], ax
call fcn.007042cb
add esp, 0x14
test eax, eax
sete al
test al, al
je 0x682372
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x50]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.Name
push eax
call dword [ecx + 0x10]
lea eax, [esp + 0x50]
push eax
call edi
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x30]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push 0x79b80c
push eax
call dword [ecx + 0x10]
push dword [esp + 0x38]
call fcn.00705d44
add esp, 4
mov dword [ebp + 4], eax
lea eax, [esp + 0x30]
push eax
call edi
push 0x1618
call fcn.00606650
mov ecx, eax
call fcn.00606640
mov ecx, eax
call fcn.005fca70
mov bl, 1
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x682280
jmp 0x6823ee
push eax
lea eax, [esp + 0x70]
push eax
call fcn.006066c0
add esp, 8
add eax, 4
mov byte [esp + 0x94], 6
cmp dword [eax + 0x14], 0x10
jb 0x6823ab
mov eax, dword [eax]
push eax
push 0x1617
call fcn.00606650
mov ecx, eax
call fcn.00606640
mov ecx, eax
call fcn.005fcaa0
cmp dword [esp + 0x84], 0x10
mov byte [esp + 0x94], 0
mov dword [esp + 0x6c], vtable.wbs::StringBase_char_.0
jb 0x6823ea
push dword [esp + 0x70]
call fcn.006f75a9
add esp, 4
mov edx, dword [esp + 0x18]
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
push 0x161e
mov dword [esp + 0x98], 0xffffffff
call fcn.00606650
mov ecx, eax
call fcn.00606640
mov ecx, eax
call fcn.005fca70
mov al, bl
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.006f7ca4
add esp, 0x84
ret