Function at 0x401ad0
Capabilities:
Get number of processors
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4269c7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x100
mov eax, dword [0x432c88]
push ebx
push ebp
push esi
mov ebp, ecx
mov esi, 0x64
xor ebx, ebx
push edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x118], ebx
call fcn.0041a8b3
mov cl, byte [0x434bcc]
xor eax, eax
mov byte [esp + 0xac], cl
mov ecx, 0x18
lea edi, [esp + 0xad]
mov byte [esp + 0x118], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, ebp
stosb byte es:[edi], al
call fcn.00401940
push 0x434bcc
lea ecx, [esp + 0x34]
call fcn.0041ee66
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x120], 2
call fcn.0041a946
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x1c]
push edx
push 0x20019
push ebx
push str.SYSTEMCurrentControlSet_servicesusbprintEnum_
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x401d1c
lea eax, [esp + 0x14]
lea ecx, [esp + 0x48]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
push ebx
lea ecx, [esp + 0xbc]
push eax
push ecx
mov ebp, 1
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push edx
mov edi, ebp
call ebx
test eax, eax
jne 0x401d12
cmp dword [esp + 0x24], ebp
je 0x401be4
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
jmp 0x401ce1
lea eax, [esp + 0x48]
lea ecx, [esp + 0x10]
push eax
call fcn.0041ee66
push 0x432550
push 0x43254c
lea ecx, [esp + 0x18]
mov byte [esp + 0x120], 3
call fcn.00419c72
push str.VID_0471PID_0055
lea ecx, [esp + 0x14]
call fcn.00419f0a
cmp eax, 0xffffffff
jne 0x401c9e
push str.VID_6868PID_0500
lea ecx, [esp + 0x14]
call fcn.00419f0a
cmp eax, 0xffffffff
jne 0x401c9e
push str.VID_6868PID_0200
lea ecx, [esp + 0x14]
call fcn.00419f0a
cmp eax, 0xffffffff
jne 0x401c9e
push str.VID_8866PID_0100
lea ecx, [esp + 0x14]
call fcn.00419f0a
cmp eax, 0xffffffff
jne 0x401c9e
push str.VID_0707PID_3323
lea ecx, [esp + 0x14]
call fcn.00419f0a
cmp eax, 0xffffffff
jne 0x401c9e
push str.VID_0500PID_0200
lea ecx, [esp + 0x14]
call fcn.00419f0a
cmp eax, 0xffffffff
jne 0x401c9e
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x3c]
call fcn.0041aa8f
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x48]
push eax
push ecx
jmp 0x401cbb
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x3c]
call fcn.0041aa8f
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x48]
push ecx
push edx
push str._ls_and_size_is__d_n
call fcn.0040d475
add esp, 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov byte [esp + 0x118], 2
call fcn.0041edf8
lea ecx, [esp + 0x14]
lea edx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x28]
push edx
push ecx
lea edx, [esp + 0x24]
push 0
lea ecx, [esp + 0xbc]
mov eax, edi
push edx
mov edx, dword [esp + 0x30]
push ecx
push eax
push edx
inc edi
call ebx
test eax, eax
je 0x401bd1
mov ebp, dword [esp + 0x28]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 0x3c]
xor esi, esi
test eax, eax
jle 0x401dfd
mov bl, 4
lea eax, [esp + 0x28]
push esi
push eax
lea ecx, [esp + 0x3c]
call fcn.00402500
mov ecx, dword [eax]
push 0x432484
push ecx
push 0x432428
lea edx, [esp + 0x2c]
push 0x4323f4
push edx
mov byte [esp + 0x12c], bl
call fcn.0041a24b
add esp, 0x14
lea ecx, [esp + 0x28]
mov byte [esp + 0x118], 2
call fcn.0041edf8
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x20]
mov eax, dword [eax - 8]
push eax
call fcn.0041f228
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x401df0
lea edx, [esp + 0x14]
lea eax, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x28]
push eax
push ecx
push 0
push str.Port_Number
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401df0
mov eax, dword [esp + 0x2c]
cmp eax, 9
push eax
jle 0x401dda
push str.USB0
lea eax, [ebp + 0x5c]
push str._s_d
push eax
jmp 0x401de8
push str.USB00
lea ecx, [ebp + 0x5c]
push str._s_d
push ecx
call fcn.0041a24b
add esp, 0x10
mov eax, dword [esp + 0x3c]
inc esi
cmp esi, eax
jl 0x401d2c
mov edx, dword [0x434bb8]
push 0
push 0x50
push 0x402
mov eax, dword [edx + 0x7c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x30]
mov byte [esp + 0x118], 1
call fcn.0041edf8
lea ecx, [esp + 0x34]
mov byte [esp + 0x118], 0
call fcn.0041a8e6
lea ecx, [esp + 0x20]
mov dword [esp + 0x118], 0xffffffff
call fcn.0041edf8
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10c
ret