Function at 0x407510
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4250c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x340
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 0x94]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
mov edi, 0x4321d4
xor edx, edx
lea ebx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x15c], edx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
lea ebx, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0xf8], edx
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.jjmclient.ini
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x431c28
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea ebx, [esp + 0x160]
and ecx, 3
mov dword [esp + 0x1c], ebp
rep movsb byte es:[edi], byte [esi]
mov edi, str.RULETOTOALNUM
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x24], edx
mov eax, ecx
mov esi, edi
mov edi, ebx
lea ebx, [esp + 0xfc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov edi, str.SoftProcessNum
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x100]
lea edx, [esp + 0x164]
push ecx
push edx
call fcn.00406570
mov ebx, eax
lea eax, [esp + 0x40]
push eax
push ebx
push str.num0_is__d____path_is__s_n
push ebp
call fcn.00407180
mov eax, dword [0x42d740]
add esp, 0x20
mov dword [esp + 0x14], eax
mov dword [esp + 0x358], 1
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x358], 2
call fcn.0041e9d8
lea ecx, [esp + 0x10]
call fcn.0041e9d8
push str.RULETOTOAL
lea ecx, [esp + 0x18]
call fcn.0041eb8a
push fcn.0041ea4d
push 0x407b00
push 0x64
lea ecx, [esp + 0x1cc]
push 4
push ecx
call fcn.0041383a
push str.SoftProcess
lea ecx, [esp + 0x14]
mov byte [esp + 0x35c], 3
xor ebp, ebp
call fcn.0041eb8a
test ebx, ebx
jle 0x40775a
lea edx, [esp + 0x1c0]
mov dword [esp + 0x1c], edx
push ebp
push str.SoftProcess
lea eax, [esp + 0x18]
push str._s_d
push eax
call fcn.0041e13f
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push 0x431c28
lea ecx, [esp + 0xa8]
push 0x64
push ecx
push 0
push edx
push eax
call fcn.00406450
add esp, 0x28
lea ecx, [esp + 0x94]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.0041eb8a
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x94]
push edx
push str.name_is__s
push eax
call fcn.00407180
mov edi, str.SoftProcess
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x24]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
add ecx, 4
cmp ebp, ebx
mov dword [esp + 0x1c], ecx
jl 0x4076bd
mov ebp, dword [esp + 0x18]
push ebx
push str.num2_is__d
push ebp
call fcn.00407180
add esp, 0xc
test ebx, ebx
jle 0x4077b2
lea edi, [ebp + 0xc]
lea esi, [esp + 0x1c0]
push 0x42bfe8
lea ecx, [esp + 0x1c]
push esi
push ecx
call fcn.0041ec30
push eax
mov ecx, edi
mov byte [esp + 0x35c], 4
call fcn.0041edb3
lea ecx, [esp + 0x18]
mov byte [esp + 0x358], 3
call fcn.0041ea4d
add esi, 4
dec ebx
jne 0x40777b
mov edx, dword [ebp + 0xc]
lea esi, [ebp + 0xc]
push edx
push str.str5_is__s
push ebp
call fcn.00407180
add esp, 0xc
push esi
mov esi, dword [esp + 0x364]
mov ecx, esi
call fcn.0041e7c2
mov dword [esp + 0x20], 1
push fcn.0041ea4d
push 0x64
lea eax, [esp + 0x1c8]
push 4
push eax
mov byte [esp + 0x368], 2
call fcn.0041375c
lea ecx, [esp + 0x10]
mov byte [esp + 0x358], 1
call fcn.0041ea4d
lea ecx, [esp + 0x14]
mov byte [esp + 0x358], 0
call fcn.0041ea4d
mov ecx, dword [esp + 0x350]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34c
ret 4