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

Disassembly:
push 0xffffffffffffffff
push 0x690803
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov edx, dword [esp + 0x3c]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
lea ecx, [esp + 0x34]
mov dword [esp + 0x20], esi
call fcn.006400db
push 0
push 0x7cfc88
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c], 0
call fcn.0061ab71
mov esi, dword [esi + 0xc]
mov ecx, eax
xor ebp, ebp
mov dword [esp + 0x10], ecx
test esi, esi
je 0x640c5c
mov eax, esi
mov esi, dword [esi + 4]
mov edi, dword [eax]
mov eax, dword [edi]
push eax
push ecx
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x34]
call fcn.0061ac61
mov ecx, eax
call fcn.0061a96e
test al, al
jne 0x640c56
mov ecx, dword [esp + 0x10]
test esi, esi
jne 0x640c28
jmp 0x640c5c
mov ecx, dword [esp + 0x10]
mov ebp, edi
mov ebx, dword [esp + 0x50]
test ebp, ebp
jne 0x640d8d
mov esi, dword [esp + 0x4c]
cmp ecx, 0xffffffff
je 0x640c75
mov byte [ecx + esi], 0
cmp dword [ebx + 4], 0x64
jl 0x640cd7
push 8
call fcn.006749d4
mov edx, dword [ebx]
add esp, 4
mov edi, eax
push 0xfa4
mov dword [edi], edx
call fcn.006749d4
add esp, 4
mov dword [esp + 0x50], eax
test eax, eax
mov byte [esp + 0x44], 1
je 0x640cc4
push fcn.00640acd
push 0x640413
lea ebp, [eax + 4]
push 0x64
push 0x28
push ebp
mov dword [eax], 0x64
call fcn.006759d6
jmp 0x640cc6
xor ebp, ebp
mov dword [edi + 4], ebp
mov byte [esp + 0x44], 0
mov dword [ebx], edi
mov dword [ebx + 4], 0
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov ecx, dword [ecx + 4]
lea edx, [eax + eax*4]
inc eax
mov dword [ebx + 4], eax
mov al, byte [esp + 0x54]
test al, al
lea ebp, [ecx + edx*8]
je 0x640cfa
mov byte [ebp + 4], 0
mov dword [ebp], esi
jmp 0x640d3a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp + 4], 1
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.006749d4
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebp], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x4c]
push 0xc
call fcn.006749d4
xor edi, edi
add esp, 4
cmp eax, edi
je 0x640d54
mov dword [eax], ebp
mov dword [eax + 4], edi
mov dword [eax + 8], edi
jmp 0x640d56
xor eax, eax
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0xc]
mov dword [eax + 4], edx
mov edx, dword [ecx + 0xc]
cmp edx, edi
jne 0x640d7a
mov dword [ecx + 0x10], eax
mov dword [ecx + 0xc], eax
mov eax, dword [ecx + 0x14]
inc eax
mov dword [ecx + 0x14], eax
mov ecx, dword [esp + 0x10]
jmp 0x640d91
mov dword [edx + 8], eax
mov dword [ecx + 0xc], eax
mov eax, dword [ecx + 0x14]
inc eax
mov dword [ecx + 0x14], eax
mov ecx, dword [esp + 0x10]
jmp 0x640d91
mov esi, dword [esp + 0x4c]
cmp ecx, 0xffffffff
je 0x640dbf
mov eax, dword [esp + 0x54]
lea ecx, [ecx + esi + 1]
push eax
push ebx
push ecx
mov ecx, ebp
call fcn.00640bc3
lea ecx, [esp + 0x28]
mov esi, eax
mov dword [esp + 0x44], 0xffffffff
call fcn.00640184
mov eax, esi
jmp 0x640dd2
lea ecx, [esp + 0x28]
mov dword [esp + 0x44], 0xffffffff
call fcn.00640184
mov eax, ebp
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret 0xc