Function at 0x5a0ff0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x5a0ff9
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [0x6094e4]
xor eax, eax
push ebp
push 0x5a1990
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.005bf204
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
call fcn.005bf0a0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
push dword [ebp - 0x34]
push dword [ebp - 0x38]
xor edx, edx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x18]
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4863c0]
call fcn.00488830
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x2c]
mov eax, esi
call fcn.005a4738
mov dword [ebp - 0xc], eax
push 0
push 0
xor edx, edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dl, 1
mov eax, dword [0x5a045c]
call fcn.00403e38
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.005a0d24
mov eax, dword [ebp - 0xc]
call fcn.0042172c
add eax, dword [ebp - 0x38]
adc edx, dword [ebp - 0x34]
push edx
push eax
xor edx, edx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea eax, [ebp - 0xc]
call fcn.0040f8c0
mov eax, esi
call fcn.0042172c
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.005bf030
sub esi, eax
mov eax, dword [0x609140]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov eax, dword [eax + edx*4]
mov edx, dword [0x609254]
movzx edx, byte [edx + 9]
mov dword [eax + edx*4], esi
mov eax, dword [0x609140]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov eax, dword [eax + edx*4]
mov edx, dword [0x609254]
movzx edx, byte [edx + 9]
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [eax + edx*4]
mov eax, dword [0x609140]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov eax, dword [eax + edx*4]
mov edx, dword [0x609254]
movzx edx, byte [edx + 0xa]
mov dword [eax + edx*4], ecx
inc dword [ebx]
mov eax, dword [ebx + 4]
call fcn.0040621c
cdq
push edx
push eax
mov eax, dword [ebx]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x5a1136
cmp eax, dword [esp]
pop edx
pop eax
jb 0x5a115e
jmp 0x5a113a
pop edx
pop eax
jl 0x5a115e
mov eax, dword [ebx + 4]
call fcn.0040621c
add eax, 0x2710
push eax
lea eax, [ebx + 4]
mov ecx, 1
mov edx, dword [0x5b3634]
call fcn.004063d8
add esp, 4
mov eax, dword [ebx]
mov edx, eax
shl eax, 3
sub eax, edx
mov edx, dword [ebx + 4]
lea eax, [edx + eax*4]
mov edx, dword [0x60950c]
mov edx, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [edx + ecx*4]
call fcn.00404d4c
mov eax, dword [ebx]
mov edx, eax
shl eax, 3
sub eax, edx
mov edx, dword [ebx + 4]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x1c]
mov byte [edx + eax*4 + 0x18], cl
lea eax, [ebp - 0x18]
mov edx, 0x5a19a8
call fcn.00404d90
mov eax, dword [ebp - 0x10]
add eax, 0x20
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x40]
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
xor edx, edx
push edx
push eax
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.005a29f4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x40]
mov esi, dword [eax + 0x14]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 4]
cmp dword [eax + esi*4], 0
je 0x5a14c9
xor edx, edx
push ebp
push 0x5a13fa
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 4]
lea eax, [eax + esi*4]
call fcn.005a262c
push edx
push eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.005a2704
mov edx, dword [ebp - 0x14]
shl edx, 2
lea edx, [edx + edx*2]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x10]
mov edx, dword [ecx + edx*8 + 0x4c]
mov eax, dword [edx + eax*4]
lea ecx, [ebp - 0x20]
xor edx, edx
call fcn.0040a118
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4863c0]
call fcn.00488830
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0x40]
mov edx, dword [edx + 4]
lea eax, [edx + eax*4]
call fcn.005a262c
push edx
push eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.005a2704
mov ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.005a45c0
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [0x5a04dc]
call fcn.00403e38
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x3c]
call fcn.005a0e24
mov eax, dword [0x609544]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
lea eax, [eax + edx*8]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [edx + 0x30]
xor edx, edx
call fcn.00405004
mov eax, dword [0x6090b8]
cmp byte [eax + 0x48], 0
jne 0x5a12d4
push dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x30]
xor edx, edx
call fcn.0040a118
push dword [ebp - 0x44]
push 0x5a19b8
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00405078
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x28], 0
je 0x5a1352
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x30]
xor edx, edx
call fcn.0040a118
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x28]
call fcn.00405104
je 0x5a1352
mov eax, dword [0x6090b8]
cmp byte [eax + 0x48], 0
jne 0x5a1323
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x3c]
push dword [eax + 0x28]
push 0x5a19b8
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00405078
mov eax, dword [0x609544]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
push dword [eax + edx*8]
push 0x5a19c4
mov eax, dword [ebp - 0x3c]
push dword [eax + 0x28]
mov eax, dword [0x609544]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
lea eax, [eax + edx*8]
mov edx, 3
call fcn.00405078
mov eax, dword [0x609140]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov eax, dword [eax + edx*4]
mov edx, dword [0x609254]
movzx edx, byte [edx + 3]
mov eax, dword [eax + edx*4]
lea edx, [ebp - 0x4c]
call fcn.00409938
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebx]
mov ecx, eax
shl eax, 3
sub eax, ecx
mov ecx, dword [ebx + 4]
lea eax, [ecx + eax*4 + 8]
call fcn.00404d4c
mov eax, dword [ebx]
mov edx, eax
shl eax, 3
sub eax, edx
mov edx, dword [ebx + 4]
lea eax, [edx + eax*4 + 0xc]
mov edx, dword [ebp - 0x3c]
mov edx, dword [edx + 0x30]
call fcn.00404d4c
mov eax, dword [ebx]
mov edx, eax
shl eax, 3
sub eax, edx
mov edx, dword [ebx + 4]
lea eax, [edx + eax*4 + 0x10]
mov edx, dword [ebp - 0x3c]
mov edx, dword [edx + 0x20]
call fcn.00404d4c
mov eax, dword [ebx]
mov edx, eax
shl eax, 3
sub eax, edx
mov edx, dword [ebx + 4]
lea eax, [edx + eax*4 + 0x14]
mov edx, dword [ebp - 0x3c]
mov edx, dword [edx + 0x28]
call fcn.00404d4c
lea eax, [ebp - 0x3c]
call fcn.0040f8c0
lea eax, [ebp - 0xc]
call fcn.0040f8c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5a14f2
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
xor edx, edx
call fcn.0040a118
mov eax, dword [0x609544]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
lea eax, [eax + edx*8]
mov edx, 0x5a1a28
call fcn.00404d4c
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x38]
test eax, eax
je 0x5a1505
cmp eax, 0x64
jb 0x5a1590
mov eax, dword [ebp - 0x10]
lea esi, [eax + 4]
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 4]
mov eax, dword [edx + eax*4]
xor edx, edx
push edx
push eax
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.005a29f4
mov dword [ebp - 0x14], eax
mov edi, dword [esi + 0x14]
mov eax, dword [esi + 4]
cmp dword [eax + edi*4], 0
je 0x5a156b
mov eax, dword [esi + 4]
lea eax, [eax + edi*4]
call fcn.005a262c
push edx
push eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.005a2704
mov edx, dword [ebp - 0x14]
shl edx, 2
lea edx, [edx + edx*2]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x10]
mov edx, dword [ecx + edx*8 + 0x4c]
mov eax, dword [edx + eax*4]
lea ecx, [ebp - 0x1c]
xor edx, edx
call fcn.0040a118
jmp 0x5a157d
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
xor edx, edx
call fcn.0040a118
mov eax, dword [ebx]
mov edx, eax
shl eax, 3
sub eax, edx
mov edx, dword [ebx + 4]
mov byte [edx + eax*4 + 0x19], 0
jmp 0x5a15cb
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x3c]
call fcn.00404d90
mov eax, dword [0x609544]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
lea eax, [eax + edx*8]
mov edx, 0x5a1a3c
call fcn.00404fc0
mov eax, dword [0x609544]
mov eax, dword [ebx]
mov edx, eax
shl eax, 3
sub eax, edx
mov edx, dword [ebx + 4]
mov byte [edx + eax*4 + 0x19], 1
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x1c]
call fcn.005bf7b8
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x1c]
call fcn.00404d90
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.00405004
lea eax, [ebp - 0x24]
mov edx, 0x64
call fcn.00405344
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x1c], 0
je 0x5a161f
push dword [ebp - 0x28]
push 0x5a1a50
push dword [ebp - 0x20]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00405078
jmp 0x5a1658
push dword [ebp - 0x28]
push 0x5a1a5c
push 0x5a1a50
push dword [ebp - 0x20]
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00405078
mov eax, dword [0x609544]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
lea eax, [eax + edx*8]
mov edx, 0x5a1a70
call fcn.00404fc0
mov eax, dword [0x609544]
mov eax, dword [0x609140]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov eax, dword [eax + edx*4]
mov edx, dword [0x609254]
movzx edx, byte [edx + 6]
xor ecx, ecx
mov dword [eax + edx*4], ecx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
je 0x5a18a9
mov esi, dword [ebp - 4]
dec esi
mov eax, dword [ebp + 0xc]
mov edi, dword [eax - 8]
sub edi, esi
jg 0x5a18b7
dec edi
mov eax, dword [0x609140]
mov eax, dword [eax]
mov eax, dword [eax + esi*4]
mov edx, dword [0x609254]
movzx edx, byte [edx + 3]
mov eax, dword [eax + edx*4]
mov edx, dword [0x609140]
mov edx, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [edx + ecx*4]
mov ecx, dword [0x609254]
movzx ecx, byte [ecx + 3]
cmp eax, dword [edx + ecx*4]
jne 0x5a189f
mov eax, dword [0x60950c]
mov eax, dword [eax]
mov edx, dword [eax + esi*4]
mov eax, dword [ebp - 0x28]
call fcn.0048aeb4
test al, al
je 0x5a189f
mov edx, dword [0x609140]
mov edx, dword [edx]
mov edx, dword [edx + esi*4]
mov eax, dword [0x609254]
movzx eax, byte [eax + 6]
push dword [edx + eax*4]
mov edx, dword [0x609140]
mov edx, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [edx + ecx*4]
mov ecx, dword [0x609254]
pop ecx
mov dword [edx + eax*4], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x1c], 0
je 0x5a176e
push dword [ebp - 0x28]
push 0x5a1a84
mov eax, dword [0x609140]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov eax, dword [eax + edx*4]
mov edx, dword [0x609254]
movzx edx, byte [edx + 6]
mov eax, dword [eax + edx*4]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x60]
call fcn.00409a24
push dword [ebp - 0x60]
push 0x5a1a98
push dword [ebp - 0x20]
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.00405078
jmp 0x5a17b9
push dword [ebp - 0x28]
push 0x5a1a5c
push 0x5a1aa4
mov eax, dword [0x609140]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov eax, dword [eax + edx*4]
mov edx, dword [0x609254]
movzx edx, byte [edx + 6]
mov eax, dword [eax + edx*4]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x64]
call fcn.00409a24
push dword [ebp - 0x64]
push 0x5a1a50
push dword [ebp - 0x20]
lea eax, [ebp - 0x24]
mov edx, 6
call fcn.00405078
mov eax, dword [ebp - 0x24]
mov edx, dword [0x60950c]
mov edx, dword [edx]
mov edx, dword [edx + esi*4]
call fcn.00405104
jne 0x5a189f
mov edx, dword [0x609140]
mov edx, dword [edx]
mov edx, dword [edx + esi*4]
mov eax, dword [0x609254]
movzx eax, byte [eax + 6]
mov edx, dword [edx + eax*4]
inc edx
mov ecx, dword [0x609140]
mov ecx, dword [ecx]
mov edi, dword [ebp - 4]
mov ecx, dword [ecx + edi*4]
mov edi, dword [0x609254]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x1c], 0
je 0x5a1852
push dword [ebp - 0x28]
push 0x5a1a84
mov eax, dword [0x609140]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov eax, dword [eax + edx*4]
mov edx, dword [0x609254]
movzx edx, byte [edx + 6]
mov eax, dword [eax + edx*4]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x68]
call fcn.00409a24
push dword [ebp - 0x68]
push 0x5a1a98
push dword [ebp - 0x20]
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.00405078
jmp 0x5a18b7
push dword [ebp - 0x28]
push 0x5a1a5c
push 0x5a1aa4
mov eax, dword [0x609140]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov eax, dword [eax + edx*4]
mov edx, dword [0x609254]
movzx edx, byte [edx + 6]
mov eax, dword [eax + edx*4]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x6c]
call fcn.00409a24
push dword [ebp - 0x6c]
push 0x5a1a50
push dword [ebp - 0x20]
lea eax, [ebp - 0x24]
mov edx, 6
call fcn.00405078
jmp 0x5a18b7
dec esi
inc edi
jne 0x5a169c
jmp 0x5a18b7
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x10]
call fcn.0040f8c0
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 0x24]
call fcn.005bfa64
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 0x24]
call fcn.00404d90
mov eax, dword [ebx]
mov edx, eax
shl eax, 3
sub eax, edx
mov edx, dword [ebx + 4]
lea eax, [edx + eax*4 + 4]
mov edx, dword [ebp - 0x24]
call fcn.00404d4c
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x24]
call fcn.00404d4c
mov esi, dword [ebp - 4]
add esi, esi
mov eax, dword [0x609368]
mov eax, dword [eax]
mov byte [eax + esi*8], 1
mov eax, dword [0x609368]
mov eax, dword [eax]
lea eax, [eax + esi*8 + 4]
mov edx, dword [ebx]
mov ecx, edx
shl edx, 3
sub edx, ecx
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edx*4 + 0xc]
call fcn.00404d4c
mov eax, dword [0x609368]
mov eax, dword [eax]
lea eax, [eax + esi*8 + 8]
mov edx, dword [ebx]
mov ecx, edx
shl edx, 3
sub edx, ecx
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edx*4 + 0x14]
call fcn.00404d4c
mov eax, dword [0x609368]
mov eax, dword [eax]
lea eax, [eax + esi*8 + 0xc]
mov edx, dword [ebx]
mov ecx, edx
shl edx, 3
sub edx, ecx
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edx*4 + 0x10]
call fcn.00404d4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a1997
lea eax, [ebp - 0x70]
mov edx, 0xc
call fcn.00404d1c
lea eax, [ebp - 0x28]
mov edx, 5
call fcn.00404d1c
ret