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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43f540
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00404a40
mov ecx, dword [eax + 0x28]
push 0x248
push 0x30b
push 0x21f
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 0x2c]
push 0x2e1
lea eax, [esp + 0x30]
xor ebx, ebx
push eax
mov dword [esp + 0x30], edx
mov dword [esi + 0xc], ebx
call dword [sym.imp.USER32.dll_SetRect]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00401000
add esp, 8
test eax, eax
je 0x40a7f0
mov dword [esi + 0xc], 1
call fcn.00404a40
cmp dword [eax + 4], ebx
je 0x40a7f0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x11
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x441468
mov byte [ecx + 4], bl
call fcn.00403270
mov dword [esp + 0x58], 0xffffffff
call fcn.00421230
mov ecx, eax
call fcn.00421480
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00404a40
cmp dword [eax + 8], ebx
je 0x40a84b
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x11
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x441468
mov byte [ecx + 4], bl
call fcn.00403270
mov dword [esp + 0x58], 0xffffffff
call fcn.00421230
mov ecx, eax
call fcn.00421480
mov eax, 1
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x20]
xor edi, edi
cmp eax, ebx
mov dword [esi + 0x24], 0xffffffff
jbe 0x40a8c3
lea ebp, [esi + 0x10]
cmp dword [ebp + 0x10], edi
mov ecx, ebp
jbe 0x40a8bb
mov eax, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
add eax, edi
cmp edx, eax
ja 0x40a87a
sub eax, edx
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + eax*4]
mov edx, dword [eax]
mov dword [esp + 0x20], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x28], edx
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x34], eax
call fcn.00401000
add esp, 8
test eax, eax
jne 0x40a8c0
mov eax, dword [esi + 0x20]
inc edi
cmp edi, eax
jb 0x40a865
jmp 0x40a8c3
jmp fcn.0040a4c0
mov dword [esi + 0x24], edi
mov eax, dword [esi + 0x24]
cmp eax, dword [esp + 0x14]
je 0x40a90a
cmp eax, 0xffffffff
jle 0x40a90a
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x11
mov edi, 0xf
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x441454
mov byte [ecx + 4], bl
call fcn.00403270
mov dword [esp + 0x58], 0xffffffff
call fcn.00421230
mov ecx, eax
call fcn.00421480
jmp 0x40a90f
mov edi, 0xf
call fcn.00404a40
cmp dword [eax + 4], ebx
je 0x40afae
push 0x7e
push 0x112
push 0x64
push 0xfd
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_SetRect]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00401000
add esp, 8
test eax, eax
je 0x40a989
mov eax, dword [esi + 8]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
mov dword [eax + 4], 1
push 0x11
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x441468
mov byte [ecx + 4], bl
call fcn.00403270
or ebp, 0xffffffff
mov dword [esp + 0x58], ebp
call fcn.00421230
mov ecx, eax
call fcn.00421480
jmp 0x40a98c
or ebp, 0xffffffff
push 0x7e
push 0x160
push 0x64
push 0x14b
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00401000
add esp, 8
test eax, eax
je 0x40a9f3
mov ecx, dword [esi + 8]
sub esp, 0x1c
mov dword [ecx + 4], 2
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x11
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x441468
mov byte [ecx + 4], bl
call fcn.00403270
mov dword [esp + 0x58], ebp
call fcn.00421230
mov ecx, eax
call fcn.00421480
push 0x7e
push 0x1ad
push 0x64
push 0x198
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401000
add esp, 8
test eax, eax
je 0x40aa5a
mov edx, dword [esi + 8]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
mov dword [edx + 4], 3
push 0x11
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x441468
mov byte [ecx + 4], bl
call fcn.00403270
mov dword [esp + 0x58], ebp
call fcn.00421230
mov ecx, eax
call fcn.00421480
push 0x7e
push 0x1fb
push 0x64
push 0x1e6
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_SetRect]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00401000
add esp, 8
test eax, eax
je 0x40aac1
mov eax, dword [esi + 8]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
mov dword [eax + 4], 4
push 0x11
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x441468
mov byte [ecx + 4], bl
call fcn.00403270
mov dword [esp + 0x58], ebp
call fcn.00421230
mov ecx, eax
call fcn.00421480
push 0xc7
push 0x13b
push 0xaf
push 0x124
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00401000
add esp, 8
test eax, eax
je 0x40ab3a
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x42c]
xor ecx, ecx
cmp edx, ebx
sete cl
sub esp, 0x1c
mov dword [esp + 0x30], esp
mov dword [eax + 0x42c], ecx
mov ecx, esp
push 0x11
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x441468
mov byte [ecx + 4], bl
call fcn.00403270
mov dword [esp + 0x58], ebp
call fcn.00421230
mov ecx, eax
call fcn.00421480
push 0xe0
push 0x13b
push 0xc8
push 0x124
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401000
add esp, 8
test eax, eax
je 0x40abb3
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x428]
xor edx, edx
cmp ecx, ebx
sete dl
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x11
push 0x441468
mov dword [eax + 0x428], edx
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
mov byte [ecx + 4], bl
call fcn.00403270
mov dword [esp + 0x58], ebp
call fcn.00421230
mov ecx, eax
call fcn.00421480
push 0x124
push 0x152
push 0x115
push 0x143
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_SetRect]
xor edi, edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00401000
add esp, 8
test eax, eax
je 0x40ac3d
mov ecx, dword [esi + 8]
lea eax, [edi + 1]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fstp dword [ecx + 0x10]
mov edx, dword [esi + 8]
push edx
call fcn.00421230
mov ecx, eax
call fcn.00421380
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x11
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x441468
mov byte [ecx + 4], bl
call fcn.00403270
mov dword [esp + 0x58], ebp
call fcn.00421230
mov ecx, eax
call fcn.00421480
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov eax, 0x15
add ecx, eax
add edx, eax
inc edi
cmp edi, 0xa
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], edx
jl 0x40abd4
push 0x13c
push 0x152
push 0x12d
push 0x143
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_SetRect]
xor edi, edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00401000
add esp, 8
test eax, eax
je 0x40acea
mov ecx, dword [esi + 8]
lea eax, [edi + 1]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fstp dword [ecx + 0x20]
mov edx, dword [esi + 8]
push edx
call fcn.00421230
mov ecx, eax
call fcn.00421380
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x11
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x441468
mov byte [ecx + 4], bl
call fcn.00403270
mov dword [esp + 0x58], ebp
call fcn.00421230
mov ecx, eax
call fcn.00421480
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov eax, 0x15
add ecx, eax
add edx, eax
inc edi
cmp edi, 0xa
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], edx
jl 0x40ac81
push 0x154
push 0x152
push 0x145
push 0x143
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_SetRect]
xor edi, edi
mov edi, edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00401000
add esp, 8
test eax, eax
je 0x40ad99
mov ecx, dword [esi + 8]
lea eax, [edi + 1]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fstp dword [ecx + 0x18]
mov edx, dword [esi + 8]
push edx
call fcn.00421230
mov ecx, eax
call fcn.00421380
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x11
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x441468
mov byte [ecx + 4], bl
call fcn.00403270
mov dword [esp + 0x58], ebp
call fcn.00421230
mov ecx, eax
call fcn.00421480
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov eax, 0x15
add ecx, eax
add edx, eax
inc edi
cmp edi, 0xa
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], edx
jl 0x40ad30
push 0x1a2
push 0x167
push 0x18a
push 0x150
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_SetRect]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00401000
add esp, 8
test eax, eax
mov edi, 0xf
je 0x40ae34
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x24]
xor ecx, ecx
cmp edx, ebx
sete cl
sub esp, 0x1c
mov dword [esp + 0x30], esp
mov dword [eax + 0x24], ecx
mov ecx, esp
push 0x11
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x441468
mov byte [ecx + 4], bl
call fcn.00403270
mov dword [esp + 0x58], ebp
call fcn.00421230
mov ecx, eax
call fcn.00421480
push 0x1bb
push 0x167
push 0x1a3
push 0x150
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401000
add esp, 8
test eax, eax
je 0x40aea7
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x28]
xor edx, edx
cmp ecx, ebx
sete dl
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x11
push 0x441468
mov dword [eax + 0x28], edx
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
mov byte [ecx + 4], bl
call fcn.00403270
mov dword [esp + 0x58], ebp
call fcn.00421230
mov ecx, eax
call fcn.00421480
push 0x202
push 0x15e
push 0x1ea
push 0x147
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_SetRect]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00401000
add esp, 8
test eax, eax
je 0x40af2c
mov eax, dword [esi + 8]
mov dword [eax + 0x424], 1
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x424]
mov eax, dword [0x461008]
push edx
push eax
call fcn.00414a60
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x11
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x441468
mov byte [ecx + 4], bl
call fcn.00403270
mov dword [esp + 0x58], ebp
call fcn.00421230
mov ecx, eax
call fcn.00421480
push 0x21b
push 0x15e
push 0x203
push 0x147
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00401000
add esp, 8
test eax, eax
je 0x40afae
mov ecx, dword [esi + 8]
mov dword [ecx + 0x424], ebx
mov edx, dword [esi + 8]
mov eax, dword [edx + 0x424]
mov ecx, dword [0x461008]
push eax
push ecx
call fcn.00414a60
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x11
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x441468
mov byte [ecx + 4], bl
call fcn.00403270
mov dword [esp + 0x58], ebp
call fcn.00421230
mov ecx, eax
call fcn.00421480
mov ecx, dword [esp + 0x34]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret