Function at 0x528b40
Capabilities:
Get number of processors
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ed58
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x5e95e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [eax], edi
cmp dword [esi + 0xb4], edi
mov dword [ebp - 0x1c], edi
je 0x528b99
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0x30]
add ecx, 0x20
push ecx
mov dword [ebp - 0x28], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], edi
mov edx, dword [esi + 0x120]
cmp edx, dword [0x58c4f4]
jne 0x52928b
mov eax, dword [ebp + 8]
cmp dword [eax + 0x7c], 0
jne 0x52928b
mov ecx, eax
cmp dword [ecx + 0x78], 0
jne 0x52928b
lea ecx, [ebp - 0x18]
call fcn.004026e0
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x98]
mov byte [ebp - 4], 1
mov edx, dword [edi]
cmp dword [edx - 0xc], 0
mov dword [ebp - 0x24], edi
jne 0x528fbc
mov ecx, dword [ebx + 0x58]
cmp dword [ecx - 0xc], 0
lea eax, [ebx + 0x58]
jne 0x528c95
mov edx, dword [ebx + 0x54]
cmp dword [edx - 0xc], 0
je 0x528c86
mov eax, dword [ebx + 0x60]
cmp dword [eax - 0xc], 0
lea esi, [ebx + 0x60]
je 0x528c79
push 0x2e
mov ecx, esi
call fcn.00401a30
test eax, eax
jle 0x528c79
mov ecx, dword [esi]
mov ecx, dword [ecx - 0xc]
sub ecx, eax
push ecx
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
call fcn.00401a60
push eax
lea eax, [ebx + 0x54]
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 2
call fcn.00401ae0
add esp, 0xc
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004022f0
lea ecx, [ebp - 0x30]
call fcn.004a4690
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004a4690
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 0
jne 0x528c9d
lea eax, [ebx + 0x54]
jmp 0x528c95
mov edx, dword [ebx + 0x60]
cmp dword [edx - 0xc], 0
lea eax, [ebx + 0x60]
jne 0x528c95
lea eax, [ebx + 0x64]
push eax
mov ecx, edi
call fcn.004022f0
mov ecx, dword [ebx + 0x5c]
cmp dword [ecx - 0xc], 0
lea eax, [ebx + 0x5c]
jne 0x528d0e
lea ecx, [ebp - 0x20]
call fcn.004026e0
mov byte [ebp - 4], 4
mov eax, dword [ebx + 0x30]
add eax, 0x84
push eax
lea ecx, [ebp - 0x20]
call fcn.00402310
push 0x5958a8
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00401ba0
add esp, 0xc
push edi
push eax
lea ecx, [ebp - 0x30]
push ecx
mov byte [ebp - 4], 5
call fcn.00401ae0
add esp, 0xc
push eax
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.004022f0
lea ecx, [ebp - 0x30]
call fcn.004a4690
lea ecx, [ebp - 0x2c]
call fcn.004a4690
lea ecx, [ebp - 0x20]
jmp 0x528d49
push 0x5958a8
push eax
lea edx, [ebp - 0x2c]
push edx
call fcn.00401ba0
add esp, 0xc
push edi
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 7
call fcn.00401ae0
add esp, 0xc
push eax
mov ecx, edi
mov byte [ebp - 4], 8
call fcn.004022f0
lea ecx, [ebp - 0x30]
call fcn.004a4690
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004a4690
push str..check
lea ecx, [ebp - 0x30]
push edi
push ecx
call fcn.00401ba0
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call fcn.00402310
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.004a4690
cmp dword [ebx + 0xb8], 0
je 0x528fbc
mov esi, dword [ebp - 0x24]
mov eax, dword [esi]
push eax
call fcn.00528970
add esp, 4
test eax, eax
jne 0x528dc5
push str..down
lea edx, [ebp - 0x34]
push esi
push edx
call fcn.00401ba0
mov eax, dword [eax]
or dword [ebp - 0x1c], 1
add esp, 0xc
push eax
call fcn.00528970
add esp, 4
test eax, eax
jne 0x528dc5
xor bl, bl
jmp 0x528dc7
mov bl, 1
test byte [ebp - 0x1c], 1
je 0x528df0
mov eax, dword [ebp - 0x34]
and dword [ebp - 0x1c], 0xfffffffe
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x528df0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x528fb9
lea ecx, [ebp - 0x30]
call fcn.004026e0
lea ecx, [ebp - 0x14]
call fcn.004026e0
lea ecx, [ebp - 0x2c]
call fcn.004026e0
lea ecx, [ebp - 0x20]
call fcn.004026e0
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 0xd
mov eax, dword [ecx]
push edx
push eax
lea edi, [ebp - 0x14]
lea esi, [ebp - 0x30]
xor ebx, ebx
call fcn.005289e0
mov edi, dword [ebp - 0x14]
mov ecx, dword [edi - 0xc]
lea eax, [ecx - 1]
add esp, 8
test eax, eax
jl 0x528faf
cmp eax, ecx
jg 0x528faf
movzx eax, word [edi + eax*2]
cmp ax, 0x29
jne 0x528ef5
push 0x28
lea ecx, [ebp - 0x14]
call fcn.00401a30
mov esi, eax
test esi, esi
jl 0x528e9f
mov eax, dword [edi - 0xc]
sub eax, esi
sub eax, 2
push eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004269f0
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xe
call fcn.00402310
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xd
call fcn.004a4690
mov ebx, dword [ebp - 0x20]
xor edi, edi
mov eax, dword [ebx - 0xc]
cmp edi, eax
jge 0x528edb
test edi, edi
jl 0x528faf
cmp edi, eax
jg 0x528faf
movzx eax, word [ebx + edi*2]
push eax
call fcn.00552ecf
add esp, 4
test eax, eax
jne 0x528fa7
lea ecx, [ebp - 0x20]
call fcn.00402160
mov ebx, dword [ebp - 0x20]
push ebx
call fcn.00552f5b
mov ebx, eax
add esp, 4
test ebx, ebx
jle 0x528ef2
lea edi, [ebp - 0x14]
call fcn.00401d70
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp + 8]
push esi
add ebx, 1
push ebx
mov ebx, dword [ebp - 0x30]
push edi
push ebx
add eax, 0x98
push str._s_s__d__s
push eax
mov dword [ebp - 0x24], eax
call fcn.00405480
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
add esp, 0x18
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x528f3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x528f5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x528f7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x528d8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x528d8a
add edi, 1
jmp 0x528ea4
push 0x80070057
call fcn.00401f70
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.00528090
mov edi, dword [ebp + 0xc]
mov dword [edi], eax
cmp dword [ebx + 0xac], 0
jle 0x529023
mov ecx, dword [ebx + 0xa0]
cmp ecx, dword [ebx + 0x74]
jne 0x529001
mov edx, dword [ebx + 0x94]
mov eax, dword [ebx + 0x90]
mov ecx, dword [ebx + 0xa8]
push edx
mov edx, dword [ebx + 0xa4]
push eax
push ecx
push edx
call fcn.005223a0
test eax, eax
jne 0x529023
lea esi, [ebx + 0x34]
mov dword [ebx + 0xac], 0
call fcn.0052aa30
mov dword [ebx + 0xa0], 0xffffffff
mov dword [edi], 1
mov eax, dword [ebx + 0x74]
cmp dword [ebx + 0xac], eax
jne 0x529067
cmp dword [ebx + 0xa0], eax
jne 0x529067
mov eax, dword [ebx + 0x94]
mov ecx, dword [ebx + 0x90]
mov edx, dword [ebx + 0xa8]
push eax
mov eax, dword [ebx + 0xa4]
push ecx
push edx
push eax
call fcn.005223a0
test eax, eax
je 0x529067
mov dword [ebp - 0x28], 0
jmp 0x529268
cmp dword [ebp - 0x28], 0
je 0x529268
push 0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x54]
call fcn.0041d580
mov ecx, dword [ebp - 0x24]
push str..down
push ecx
lea edx, [ebp + 0xc]
push edx
mov byte [ebp - 4], 0xf
call fcn.00401ba0
add esp, 0xc
lea ecx, [ebp - 0x54]
push ecx
mov byte [ebp - 4], 0x10
mov eax, dword [eax]
mov edx, dword [ebx + 0x11c]
mov edx, dword [edx + 0x20]
lea esi, [ebx + 0x11c]
push 0x3042
push eax
mov ecx, esi
call edx
lea ecx, [ebp + 0xc]
mov edi, eax
mov byte [ebp - 4], 0xf
call fcn.004a4690
test edi, edi
je 0x529231
mov eax, dword [ebx + 0x74]
test eax, eax
jl 0x529215
mov edi, dword [esi]
cdq
push edx
push eax
mov eax, dword [edi + 0x2c]
mov ecx, esi
call eax
mov eax, dword [ebx + 0x74]
cmp eax, 0xfa00
jl 0x529127
cmp dword [ebx + 0x18], 0
jne 0x529127
mov ecx, dword [ebx + 0x120]
push 0
push eax
push 0
push 4
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
lea edx, [ebp - 0x78]
push edx
mov dword [ebx + 0x12c], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x5c]
mov dword [ebx + 0x158], eax
mov edi, dword [ebp - 0x18]
cmp dword [edi - 0xc], 0
je 0x529215
push edi
call fcn.00528970
add esp, 4
test eax, eax
je 0x529215
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 0x11
mov edx, dword [ebx + 0x15c]
mov edx, dword [edx + 0x20]
lea esi, [ebx + 0x15c]
push 0x40
push edi
mov ecx, esi
call edx
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
mov ecx, esi
call edx
test edi, edi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 4], 0xf
je 0x5291e6
mov ebx, dword [ebp + 8]
cmp eax, dword [ebx + 0x74]
jne 0x5291b8
lea eax, [ebp + 0xc]
push 0x5c6b78
push eax
lea ecx, [ebp - 0x18]
call fcn.00401c80
add esp, 8
push 0
mov byte [ebp - 4], 0x13
mov eax, dword [eax]
push 0
push eax
call fcn.00539414
lea ecx, [ebp + 0xc]
call fcn.004a4690
jmp 0x529215
lea ecx, [ebp + 0xc]
push 0x5c6b90
push ecx
lea ecx, [ebp - 0x18]
call fcn.00401c80
add esp, 8
push 0
mov byte [ebp - 4], 0x14
mov eax, dword [eax]
push 0
push eax
call fcn.00539414
lea ecx, [ebp + 0xc]
call fcn.004a4690
jmp 0x529215
lea edx, [ebp + 0xc]
push str.Sb_rN
push edx
lea ecx, [ebp - 0x18]
call fcn.00401c80
add esp, 8
push 0
mov byte [ebp - 4], 0x15
mov eax, dword [eax]
push 0
push eax
call fcn.00539414
lea ecx, [ebp + 0xc]
call fcn.004a4690
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x98]
push eax
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax + 0x64]
push ebx
push 0x4cd
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x529260
cmp dword [ebx + 0xc0], 0
jne 0x529259
mov edx, dword [ebx + 0x30]
push 1
push ebx
mov dword [ebx + 0xc0], 1
mov eax, dword [edx + 0x64]
push 0x4d3
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x54]
call fcn.0041d510
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52928b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x8c], 0
jne 0x52929d
cmp dword [eax + 0x78], 0
je 0x5292a7
xor esi, esi
jmp 0x5292aa
mov esi, dword [ebp - 0x28]
mov ecx, dword [eax + 0x30]
add ecx, 0x20
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8