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

Disassembly:
push 0xffffffffffffffff
push 0x474ebc
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49ef38]
xor eax, esp
push eax
lea eax, [esp + 0x1bc]
mov dword fs:[0], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
xor ebx, ebx
mov ecx, 0x49f4e4
mov dword [esp + 0x1c4], ebx
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
push 0x64
push ecx
mov byte [esp + 0x1d0], 1
call fcn.0040c7b0
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x40d3e5
lea eax, [ebp - 0x10]
mov byte [esp + 0x1c4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d3b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x1c4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d3de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x40d5c9
cmp dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
jle 0x40d57a
mov ecx, dword [esp + 0x18]
mov eax, dword [str.Model_Name]
mov edi, dword [esp + ecx*4 + 0x2c]
lea edx, [esp + 0x1c]
push edx
push eax
push edi
call fcn.0040ce80
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x40d5e7
mov edx, dword [str.DEVICEKEY]
lea ecx, [esp + 0x14]
push ecx
push edx
push edi
call fcn.0040ce80
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x40d5e3
mov eax, dword [esp + 0x1d0]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.0040d080
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x1d4], 2
call fcn.0040d080
add esp, 0x10
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1c8], 3
call fcn.00404480
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x1c4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d49e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1cc]
xor eax, eax
cmp ecx, ebx
setne al
cmp eax, ebx
je 0x40d616
mov edi, dword [esp + 0x1c]
mov eax, edi
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d4e6
cmp dx, bx
je 0x40d4e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d4e6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40d4c0
xor eax, eax
jmp 0x40d4eb
sbb eax, eax
sbb eax, 0xffffffff
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
cmp eax, ebx
jne 0x40d543
xor eax, eax
cmp esi, ebx
setne al
cmp eax, ebx
je 0x40d616
mov ecx, esi
mov eax, ebp
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d536
cmp dx, bx
je 0x40d532
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d536
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40d510
xor eax, eax
jmp 0x40d53b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40d620
lea eax, [esi - 0x10]
mov byte [esp + 0x1c4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d567
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
inc eax
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
jl 0x40d3f3
lea eax, [ebp - 0x10]
mov byte [esp + 0x1c4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d59d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x1c4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d5c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 2
mov ecx, dword [esp + 0x1bc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b4
ret
mov ebp, dword [esp + 0x14]
lea eax, [ebp - 0x10]
mov byte [esp + 0x1c4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d60a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
jmp 0x40d3ba
push 0x80004005
call fcn.00401120
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + ecx*4 + 0x2c]
mov eax, dword [esp + 0x1d4]
mov dword [eax], edx
lea eax, [esi - 0x10]
mov byte [esp + 0x1c4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d655
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x1c4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d678
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x1c4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d69f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40d5c9