Function at 0x1004f7d0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1007e7d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push ebp
push esi
push edi
push 0
call fcn.10069cca
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x30], edx
call fcn.10069a64
add esp, 8
test eax, eax
je 0x1004f814
mov ebx, dword [eax + 0xc]
jmp 0x1004f816
xor ebx, ebx
lea ecx, [esp + 0x24]
push ecx
call fcn.10069a64
add esp, 4
test eax, eax
je 0x1004f82d
mov esi, dword [eax + 0x10]
inc esi
jmp 0x1004f82f
xor esi, esi
or edi, 0xffffffff
push str.UserLg
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], edi
call fcn.10005e50
push str.Download
lea ecx, [esp + 0x18]
mov dword [esp + 0x140], 0
call fcn.10005e50
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
push SysReAllocStringLen
mov byte [esp + 0x14c], 1
call fcn.1004a4a0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x13c], 0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1004f8a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x13c], edi
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004f8ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
imul esi, esi, 0x64
add esi, ebx
cmp eax, esi
jne 0x1004f8e1
mov eax, 1
jmp 0x1004faba
push str.UserLg
lea ecx, [esp + 0x20]
call fcn.10005e50
mov ebx, 2
push str.Download
lea ecx, [esp + 0x1c]
mov dword [esp + 0x140], ebx
call fcn.10005e50
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
push SysReAllocStringLen
mov byte [esp + 0x14c], 3
call fcn.1004acf0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x13c], bl
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1004f94d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x13c], edi
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004f971
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x104
lea eax, [esp + 0x34]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x1004f9b1
mov cl, 0x5c
cmp byte [esp + eax + 0x30], cl
je 0x1004f9a1
dec eax
test eax, eax
jg 0x1004f994
jmp 0x1004f9b1
lea edx, [esp + eax + 0x31]
push edx
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [0x10098a04]
mov ecx, 0x10098a04
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x14c]
mov edx, dword [esp + 0x148]
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x148]
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push str.open_dw_dt_dModuleName_s
push ecx
mov dword [esp + 0x154], 4
call fcn.10004e20
call fcn.1004f570
mov ebp, dword [esp + 0x28]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
add ebp, 0xfffffff0
add esp, 0x14
mov dword [esp + 0x18], esp
mov ebx, esp
call dword [edx + 0x10]
mov edx, dword [ebp + 0xc]
test edx, edx
lea ecx, [ebp + 0xc]
jl 0x1004fa36
cmp eax, dword [ebp]
jne 0x1004fa36
mov eax, ebp
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x1004fa6c
mov ecx, dword [ebp + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
jne 0x1004fa4b
jmp fcn.10001f00
mov edx, dword [ebp + 4]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 4]
inc ecx
mov edx, ecx
shr ecx, 2
lea esi, [ebp + 0x10]
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or edi, 0xffffffff
add eax, 0x10
mov dword [ebx], eax
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.ui.gif
mov byte [esp + 0x148], 5
call fcn.10005e50
mov byte [esp + 0x144], 4
call fcn.1004efe0
mov esi, eax
add esp, 8
mov dword [esp + 0x13c], edi
lea eax, [ebp + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x1004fab8
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov eax, esi
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x130
ret