Function at 0x4820e0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b8633
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e3f80]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2c]
lea eax, [edi + 0x64]
push eax
mov dword [esp + 0x28], 2
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
xor esi, esi
mov dword [edi], 1
cmp dword [edi + 0x1c], esi
jne 0x482139
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
call ebx
cmp dword [edi + 0x1c], esi
je 0x482130
mov eax, dword [edi + 8]
cmp eax, esi
je 0x482147
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [edi + 0x54]
sub ebx, dword [edi + 0x50]
lea ebp, [edi + 0x44]
sar ebx, 2
sub ebx, 1
js 0x482256
lea esp, [esp]
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
sar ecx, 2
cmp ebx, ecx
jb 0x482172
call fcn.004a0b05
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ebx*4]
mov eax, dword [eax + 0x1b4]
cmp eax, esi
je 0x4821b1
cmp dword [eax + 0x10], esi
setne al
test al, al
je 0x4821b1
mov eax, dword [ebp + 0x10]
sub eax, edx
sar eax, 2
cmp ebx, eax
jb 0x48219d
call fcn.004a0b05
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + ebx*4]
cmp ecx, esi
je 0x4821d4
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
jmp 0x4821d4
mov ecx, dword [ebp + 0x10]
sub ecx, edx
sar ecx, 2
cmp ebx, ecx
jb 0x4821c2
call fcn.004a0b05
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + ebx*4]
cmp ecx, esi
je 0x4821d4
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov esi, dword [ebp + 0xc]
cmp esi, dword [ebp + 0x10]
jbe 0x4821e1
call fcn.004a0b05
mov eax, dword [ebp]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x482207
call fcn.004a0b05
xor eax, eax
lea esi, [esi + ebx*4]
cmp esi, dword [eax + 0x10]
ja 0x482212
mov eax, dword [esp + 0x14]
test eax, eax
je 0x48220b
mov eax, dword [eax]
jmp 0x48220d
mov eax, dword [eax]
jmp 0x4821f3
xor eax, eax
cmp esi, dword [eax + 0xc]
jae 0x482217
call fcn.004a0b05
mov eax, dword [ebp + 0x10]
lea ecx, [esi + 4]
sub eax, ecx
sar eax, 2
test eax, eax
jle 0x482236
add eax, eax
add eax, eax
push eax
push ecx
push eax
push esi
call fcn.0049dc8a
add esp, 0x10
add dword [ebp + 0x10], 0xfffffffc
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 0xc], esi
ja 0x482246
cmp esi, eax
jbe 0x48224b
call fcn.004a0b05
xor esi, esi
sub ebx, 1
jns 0x482160
mov eax, dword [edi + 0x34]
cmp eax, esi
jle 0x48232f
mov eax, dword [edi + 0x30]
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
je 0x4823a7
mov ecx, dword [eax + 4]
mov ebx, dword [eax + 8]
mov dword [edi + 0x30], ecx
cmp ecx, esi
je 0x482284
mov dword [ecx], esi
jmp 0x482287
mov dword [edi + 0x2c], esi
mov ecx, dword [edi + 0x38]
mov dword [eax], ecx
add dword [edi + 0x34], 0xffffffff
mov dword [edi + 0x38], eax
jne 0x4822bd
mov eax, dword [edi + 0x2c]
cmp eax, esi
je 0x4822a6
lea esp, [esp]
mov eax, dword [eax]
cmp eax, esi
jne 0x4822a0
mov ecx, dword [edi + 0x3c]
mov dword [edi + 0x34], esi
mov dword [edi + 0x38], esi
mov dword [edi + 0x30], esi
mov dword [edi + 0x2c], esi
call fcn.00499511
mov dword [edi + 0x3c], esi
cmp ebx, esi
je 0x482326
mov eax, dword [ebx + 8]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4822e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx + 4]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4822ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48231d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
call fcn.0049081d
add esp, 4
cmp dword [edi + 0x34], esi
jg 0x482261
mov byte [esp + 0x24], 1
mov eax, dword [edi + 0x60]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x482353
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebp
mov byte [esp + 0x28], 0
call fcn.00486da0
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [edi + 0x2c]
mov dword [edi + 0x28], vtable.CList_struct_SerialPortInfo___struct_SerialPortInfo__.0
cmp eax, esi
je 0x48237a
mov eax, dword [eax]
cmp eax, esi
jne 0x482374
mov ecx, dword [edi + 0x3c]
mov dword [edi + 0x34], esi
mov dword [edi + 0x38], esi
mov dword [edi + 0x30], esi
mov dword [edi + 0x2c], esi
call fcn.00499511
mov dword [edi + 0x3c], esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
call fcn.00499100
int3