Function at 0x4ea2d0
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x540320
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5ab720]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ab720]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [esp + 0x88]
xor ebx, ebx
push 0x564f30
lea ecx, [esp + 0x38]
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x3c], ebx
call fcn.00404670
push 0x564f30
lea ecx, [esp + 0x18]
mov dword [esp + 0x84], ebx
call fcn.00404670
push 0x12
push ebx
push ebx
mov byte [esp + 0x8c], 1
push 0x565f40
xor ebp, ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x4c], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x4ea5a3
lea ecx, [esp + 0x3c]
push ecx
push ebx
push esi
mov dword [esp + 0x38], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x4ea59c
lea edx, [esp + 0x3c]
push edx
push esi
lea esi, [esp + 0x40]
lea edi, [esp + 0x30]
mov ebx, 4
call fcn.004eb570
test eax, eax
je 0x4ea572
mov edx, dword [esp + 0x28]
test edx, edx
jne 0x4ea3b3
xor eax, eax
jmp 0x4ea3cf
mov eax, edx
lea esi, [eax + 2]
jmp 0x4ea3c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ea3c0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00404a30
lea edi, [esp + 0x14]
call fcn.00410630
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jl 0x4ea572
push str.RTKUSBAD
push eax
call fcn.00522186
add esp, 8
test eax, eax
je 0x4ea572
sub eax, dword [esp + 0x14]
sar eax, 1
cmp eax, 0xffffffff
je 0x4ea572
mov ebx, dword [esp + 0x18]
mov edi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push 1
lea ecx, [esp + 0x50]
push ecx
push ebx
call edi
mov edx, dword [esp + 0x1c]
push edx
call fcn.00522319
mov esi, eax
add esp, 4
test esi, esi
je 0x4ea469
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x1c]
push eax
push ecx
push esi
push 0
push 1
lea edx, [esp + 0x50]
push edx
push ebx
call edi
cmp word [esi], 0
je 0x4ea576
mov dword [esp + 0x58], 0x1c
mov dword [esp + 0x24], 0
lea esp, [esp]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x58]
push eax
push ecx
push 0x565f40
lea edx, [esp + 0x48]
push edx
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x4ea549
test ebp, ebp
je 0x4ea4b0
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
mov edi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
push 0
lea eax, [esp + 0x24]
push eax
push 0
push 0
lea ecx, [esp + 0x68]
push ecx
push ebx
call edi
test eax, eax
jne 0x4ea4dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4ea576
mov eax, dword [esp + 0x20]
push eax
push 0x40
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
test ebp, ebp
je 0x4ea576
push 0
lea edx, [esp + 0x24]
push edx
push esi
push ebp
lea eax, [esp + 0x68]
push eax
push ebx
mov dword [ebp], 6
call edi
test eax, eax
je 0x4ea569
mov esi, dword [esp + 0x30]
lea ecx, [ebp + 4]
push ecx
mov ecx, esi
call fcn.004049f0
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, str.waveout
xor ebp, ebp
call fcn.00410600
cmp eax, 0xffffffff
jne 0x4ea576
mov ecx, esi
call fcn.00404ad0
add dword [esp + 0x24], 1
jmp 0x4ea480
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x4ea576
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
add dword [esp + 0x24], 1
jmp 0x4ea480
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4ea576
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x3c]
add eax, 1
push edx
push eax
push ebx
mov dword [esp + 0x38], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
mov esi, dword [esp + 0x18]
jne 0x4ea387
xor ebx, ebx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov byte [esp + 0x80], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ea5ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ea5f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0052151a
add esp, 0x70
ret 4