Function at 0x1005bae0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1009549b
mov eax, dword fs:[0]
push eax
mov eax, 0x47d0
call fcn.10073e90
mov eax, dword [0x100bbef4]
xor eax, esp
mov dword [esp + 0x47cc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100bbef4]
xor eax, esp
push eax
lea eax, [esp + 0x47e4]
mov dword fs:[0], eax
mov dword [esp + 0x30], ecx
call fcn.1006f2ab
push eax
lea ecx, [esp + 0x20]
call fcn.10068c2f
xor ebp, ebp
mov dword [esp + 0x47ec], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.10074d7b
add esp, 4
call fcn.10040710
test eax, eax
jne 0x1005bb88
push ebp
push 0x10098fb8
push 0x100a2fc0
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x20], ebp
mov dword [esp + 0x47ec], 0xffffffff
je 0x1005bb81
mov eax, dword [esp + 0x1c]
push eax
push ebp
call fcn.100683d2
xor eax, eax
jmp 0x1005c3cd
push 0x800
push 0x100be8f0
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, 0x100be8f0
lea edx, [eax + 2]
jmp 0x1005bbb0
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x1005bbb0
sub eax, edx
sar eax, 1
add eax, 0xffffffff
cmp eax, ebp
jl 0x1005bbec
mov ecx, 0x5c
jmp 0x1005bbd0
cmp word [eax*2 + 0x100be8f0], cx
je 0x1005bbe1
sub eax, 1
jns 0x1005bbd0
jmp 0x1005bbec
add eax, 1
mov word [eax*2 + 0x100be8f0], bp
mov eax, 0x100be8f0
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x1005bbf4
mov ecx, dword [str.Helper.dll]
mov edx, dword [0x100a2fa8]
mov dword [eax], ecx
mov ecx, dword [0x100a2fac]
mov dword [eax + 4], edx
mov edx, dword [0x100a2fb0]
mov dword [eax + 8], ecx
mov ecx, dword [0x100a2fb4]
mov dword [eax + 0xc], edx
mov dx, word [0x100a2fb8]
push 0x100be8f0
mov dword [eax + 0x10], ecx
push 0xa9
mov word [eax + 0x14], dx
call fcn.10040bf0
add esp, 8
test eax, eax
jne 0x1005bc5d
push ebp
push 0x10098fb8
push str._e_vz
jmp 0x1005bb5e
push 0x100be8f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebp
jne 0x1005bca7
push ebp
push 0x10098fb8
push 0x100a2f5c
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x20], ebp
mov dword [esp + 0x47ec], 0xffffffff
je 0x1005bb81
mov ecx, dword [esp + 0x1c]
push ecx
push ebp
call fcn.100683d2
xor eax, eax
jmp 0x1005c3cd
push 2
push ebp
call dword [sym.imp.ole32.dll_CoInitializeEx]
call fcn.100378b0
push ecx
mov edx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.10046c00
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x100a2f4c
mov byte [esp + 0x47f8], 1
call fcn.10009490
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x10099afc
mov byte [esp + 0x47fc], 2
call fcn.10009490
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x47fc], 0
call fcn.10046ab0
add esp, 0x10
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], ebp
mov byte [esp + 0x47ec], 3
jle 0x1005bd27
push eax
call fcn.10073ecc
add esp, 4
mov dword [0x100be8e8], eax
call fcn.10066e2e
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x1005bd41
push 0x80004005
call fcn.10001020
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push ebp
lea ecx, [esp + 0x48]
mov byte [esp + 0x47f0], 4
call fcn.10009620
lea ecx, [esp + 0x44]
mov byte [esp + 0x47ec], 5
call fcn.100678cf
cmp eax, 1
je 0x1005bdad
call fcn.1003b270
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x44]
mov byte [esp + 0x47ec], 4
call fcn.10009720
lea ecx, [esp + 0x14]
call fcn.10001380
lea ecx, [esp + 0x24]
call fcn.10001380
jmp 0x1005bc80
lea edx, [esp + 0x280]
push edx
lea ecx, [esp + 0x18]
call fcn.100085c0
lea ecx, [esp + 0x44]
mov byte [esp + 0x47ec], 4
call fcn.10009720
mov esi, dword [esp + 0x14]
mov edx, 0x100bf8f0
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
cmp cx, bp
jne 0x1005bde0
mov dword [esp + 0x28], ebp
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov byte [esp + 0x47f4], 6
call fcn.10001440
call fcn.10042dc0
add esp, 4
cmp eax, ebp
je 0x1005bfc9
push ebp
push esi
call fcn.1003b280
call fcn.10037b50
push eax
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.10001440
call fcn.10056790
add esp, 8
cmp eax, ebp
jne 0x1005be81
call fcn.1003b270
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x28]
cmp eax, ebp
mov byte [esp + 0x47ec], 4
je 0x1005be6a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x14]
call fcn.10001380
lea ecx, [esp + 0x24]
call fcn.10001380
jmp 0x1005bb65
xor eax, eax
mov word [esp + 0x47c8], bp
mov dword [esp + 0x47ca], eax
mov dword [esp + 0x47ce], eax
mov dword [esp + 0x47d2], eax
mov dword [esp + 0x47d6], eax
mov dword [esp + 0x47da], eax
call fcn.10037b50
test eax, eax
je 0x1005bed9
call fcn.10037b50
lea edx, [esp + 0x47c8]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
cmp cx, bp
jne 0x1005bec3
jmp 0x1005bf58
mov eax, 0x6d
mov ecx, 0x64
mov word [esp + 0x47b6], ax
mov word [esp + 0x47bc], ax
mov word [esp + 0x47b4], cx
mov word [esp + 0x47b8], 0x2e
mov word [esp + 0x47ba], cx
mov word [esp + 0x47be], 0x73
mov word [esp + 0x47c0], 0x6f
mov word [esp + 0x47c2], 0x66
mov word [esp + 0x47c4], 0x74
mov word [esp + 0x47c6], bp
xor eax, eax
nop
movzx ecx, word [esp + eax + 0x47b4]
mov word [esp + eax + 0x47c8], cx
add eax, 2
cmp cx, bp
jne 0x1005bf40
lea ecx, [esp + 0x47a4]
push ecx
lea edx, [esp + 0x47cc]
push edx
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
cmp eax, ebp
jge 0x1005bf8e
call fcn.1003b270
push ebp
push 0x10098fb8
push 0x100a2f10
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x1005be4b
lea ecx, [esp + 0x28]
push ecx
push 0x100a9044
push 0x17
push ebp
lea edx, [esp + 0x47b4]
push edx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebp
jge 0x1005c016
call fcn.1003b270
push ebp
push 0x10098fb8
push 0x100a2ec8
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x1005be4b
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
mov dword [0x100be8ec], 1
call fcn.10001440
call fcn.10056d70
add esp, 4
cmp eax, ebp
je 0x1005be46
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.10001440
call fcn.10042d00
add esp, 4
cmp eax, ebp
mov dword [0x100c08f4], eax
je 0x1005bfad
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x3c]
call fcn.10040d40
cmp dword [0x100be8ec], ebp
mov byte [esp + 0x47ec], 7
jne 0x1005c03e
mov edx, dword [esp + 0x38]
mov dword [0x100be8e0], edx
lea eax, [esp + 0x2c]
push eax
call fcn.10047d30
add esp, 4
mov ecx, dword [esp + 0x2c]
cmp dword [ecx - 0xc], ebp
mov byte [esp + 0x47ec], 8
jne 0x1005c0a9
call fcn.1003b270
push ebp
push 0x10098fb8
push 0x100a2eb4
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.10040880
lea ecx, [esp + 0x2c]
call fcn.10001380
mov eax, dword [esp + 0x38]
cmp eax, ebp
mov byte [esp + 0x47ec], 6
je 0x1005be52
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x1005be52
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.10001440
call fcn.10043bc0
add esp, 4
cmp eax, ebp
jne 0x1005c149
call fcn.1003b270
lea ecx, [esp + 0x18]
call fcn.10001350
lea eax, [esp + 0x30]
mov bl, 9
push eax
mov byte [esp + 0x47f0], bl
call fcn.10047ec0
mov ecx, dword [eax]
mov edx, dword [esp + 0x30]
push ecx
push edx
lea eax, [esp + 0x24]
push 0x100a2e70
push eax
mov byte [esp + 0x4800], 0xa
call fcn.10002fd0
add esp, 0x14
lea ecx, [esp + 0x30]
mov byte [esp + 0x47ec], bl
call fcn.10001380
mov ecx, dword [esp + 0x18]
push ebp
push 0x10098fb8
push ecx
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.10040880
lea ecx, [esp + 0x18]
call fcn.10001380
jmp 0x1005c07f
push 1
call fcn.100486d0
add esp, 4
lea ecx, [esp + 0x18]
call fcn.10001350
lea ecx, [esp + 0x34]
call fcn.10001350
mov bl, 0xc
push ebp
lea ecx, [esp + 0x48]
mov byte [esp + 0x47f0], bl
call fcn.10024de0
lea ecx, [esp + 0x44]
mov byte [esp + 0x47ec], 0xd
call fcn.100678cf
cmp eax, 1
je 0x1005c1eb
call fcn.1003b270
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.10040880
lea ecx, [esp + 0x44]
mov byte [esp + 0x47ec], bl
call fcn.10024f70
lea ecx, [esp + 0x34]
call fcn.10001380
lea ecx, [esp + 0x18]
call fcn.10001380
lea ecx, [esp + 0x2c]
call fcn.10001380
mov eax, dword [esp + 0x38]
cmp eax, ebp
mov byte [esp + 0x47ec], 6
je 0x1005be52
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x1005be52
lea ecx, [esp + 0x2e0]
push ecx
lea ecx, [esp + 0x1c]
call fcn.100085c0
lea edx, [esp + 0x2e8]
push edx
lea ecx, [esp + 0x38]
call fcn.100085c0
cmp dword [esp + 0x2ec], ebp
je 0x1005c228
lea eax, [esp + 0x2f0]
push eax
mov ecx, 0x100c0a80
call fcn.100085c0
lea ecx, [esp + 0x44]
mov byte [esp + 0x47ec], bl
call fcn.10024f70
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.10001440
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
mov byte [esp + 0x47f8], 0xe
call fcn.10001440
mov byte [esp + 0x47f4], bl
call fcn.10059710
mov esi, eax
add esp, 8
cmp esi, 1
je 0x1005c2cd
call fcn.1003b270
lea ecx, [esp + 0x30]
call fcn.10001350
push esi
lea ecx, [esp + 0x34]
push 0x100a2e34
push ecx
mov byte [esp + 0x47f8], 0xf
call fcn.10002fd0
mov edx, dword [esp + 0x3c]
add esp, 0xc
push ebp
push 0x10098fb8
push edx
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.10040880
lea ecx, [esp + 0x30]
call fcn.10001380
jmp 0x1005c1af
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x100c0a7c
call fcn.100085c0
lea edx, [esp + 0x34]
push edx
mov ecx, 0x100c0a78
call fcn.100085c0
push ebp
lea ecx, [esp + 0x2f8]
call fcn.1005ed60
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x2f4]
mov dword [ecx + 0x20], eax
mov edx, eax
mov ecx, eax
mov byte [esp + 0x47ec], 0x10
mov dword [0x100be8e4], edx
call fcn.100678cf
call fcn.1003b270
lea ecx, [esp + 0x2f4]
mov byte [esp + 0x47ec], bl
call fcn.1005b9a0
lea ecx, [esp + 0x34]
call fcn.10001380
lea ecx, [esp + 0x18]
call fcn.10001380
lea ecx, [esp + 0x2c]
call fcn.10001380
mov eax, dword [esp + 0x38]
cmp eax, ebp
mov byte [esp + 0x47ec], 6
je 0x1005c368
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x28]
cmp eax, ebp
mov byte [esp + 0x47ec], 4
je 0x1005c380
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x14]
call fcn.10001380
lea ecx, [esp + 0x24]
mov byte [esp + 0x47ec], 0
call fcn.10001380
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.10040880
cmp dword [esp + 0x20], ebp
mov dword [esp + 0x47ec], 0xffffffff
je 0x1005c3c8
mov eax, dword [esp + 0x1c]
push eax
push ebp
call fcn.100683d2
mov eax, 1
mov ecx, dword [esp + 0x47e4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x47cc]
xor ecx, esp
call fcn.1007368d
add esp, 0x47dc
ret
mov ecx, 0x100c0ac8
jmp 0x1005bae0