Function at 0x100f5920
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1012132b
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x1014d0cc]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push esi
push edi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0x198]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
mov ecx, 0x19
mov esi, str.M_SEARCH__HTTP_1.1_r_nHOST:_239.255.255.250:1900_r_nST:upnp:rootdevice_r_nMAN:_ssdp:discover__r_nMX:3_r_n_r_n_r_n
lea edi, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x1c], 0
call fcn.1010d600
push 0
push 0x64
lea ecx, [esp + 0x64]
push ecx
lea edx, [ebx + 0x70]
push edx
mov dword [esp + 0x30], eax
call fcn.1001b9a0
mov eax, dword [esp + 0x1c]
neg eax
sbb eax, eax
test eax, fcn.1009bff0
je 0x100f5a3e
lea esi, [esp + 0x40]
lea eax, [esp + 0x1c]
call fcn.100017c0
cmp dword [eax + 0x18], 0x10
jb 0x100f59cc
mov eax, dword [eax + 4]
jmp 0x100f59cf
add eax, 4
push eax
push str.broadcast_failed:__s._Aborting.
mov esi, 0xc8
lea edi, [esp + 0xcc]
call fcn.1000c210
add esp, 8
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov esi, dword [esp + 0x18]
cmp byte [esi + 4], 0
je 0x100f5a0a
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esi + 4], 0
lea edx, [esp + 0xc4]
push edx
lea ecx, [ebx + 0x48]
call fcn.10062800
cmp byte [esi + 4], 0
jne 0x100f5a2d
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esi + 4], 1
push esi
lea ecx, [esp + 0x20]
push ecx
push ebx
call fcn.100f99a0
jmp 0x100f5b73
add dword [ebx + 0x68], 1
mov eax, dword [ebx + 0x68]
push 0
add eax, eax
cdq
push 0xf4240
push edx
push eax
call fcn.1010e450
push edx
push eax
call fcn.100b5be0
mov dword [esp + 0x30], edx
mov edx, dword [ebx + 0xd0]
add esp, 8
lea esi, [esp + 0x34]
mov edi, eax
mov dword [esp + 0x10], edx
call fcn.100b5c40
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add ecx, edi
adc eax, dword [esp + 0x28]
add ebx, 0xd8
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], ecx
push ebx
add eax, 0x14
lea ecx, [esp + 0x20]
lea ebx, [esp + 0x28]
call fcn.10025bc0
movzx eax, byte [0x10155823]
mov esi, dword [esp + 0x14]
push eax
push ecx
mov eax, esp
mov ecx, esi
mov dword [esp + 0x18], esp
call fcn.10062740
lea ecx, [esp + 0x34]
push 0x100f61b0
push ecx
call fcn.100fcd50
xor ebx, ebx
mov dword [esp + 0x1b0], ebx
mov edi, dword [eax]
mov edx, dword [esi + 0xd0]
add esp, 8
mov ecx, esp
mov dword [ecx], edi
mov eax, dword [eax + 4]
cmp eax, ebx
mov dword [esp + 0x1c], esp
mov dword [ecx + 4], eax
je 0x100f5aff
mov ecx, 1
lock xadd dword [eax], ecx
add edx, 0x14
lea ecx, [esi + 0xd8]
push edx
call fcn.100fece0
mov dword [esp + 0x1a0], 0xffffffff
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x100f5b3f
mov edi, eax
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x100f5b3f
cmp edi, ebx
je 0x100f5b3f
push edi
call fcn.100f5730
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edi, dword [esp + 0x18]
cmp byte [edi + 4], bl
je 0x100f5b54
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [edi + 4], bl
push str.broadcasting_search_for_rootdevice
lea ecx, [esi + 0x48]
call fcn.10062800
cmp byte [edi + 4], bl
jne 0x100f5b73
mov ecx, dword [edi]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [edi + 4], 1
mov ecx, dword [esp + 0x198]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x180]
xor ecx, esp
call fcn.1010defb
mov esp, ebp
pop ebp
ret 4