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

Disassembly:
push 0xffffffffffffffff
push 0x4e7a88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
call fcn.004cc87a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x38], eax
xor ebp, ebp
mov dword [esp + 0x128], ebp
call fcn.004cc87a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x128], 1
call fcn.004cc87a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x44], eax
mov byte [esp + 0x128], 2
call fcn.004cc87a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x34], eax
mov byte [esp + 0x128], 3
call fcn.004cc87a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x128], 4
call fcn.004cc87a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x48], eax
mov esi, dword [esp + 0x134]
mov edx, dword [esi]
lea eax, [esp + 0x80]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x24]
push eax
mov ecx, esi
mov byte [esp + 0x12c], 5
mov word [esp + 0x84], bp
call dword [edx + 0x10]
mov edx, dword [esi]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
mov byte [esp + 0x12c], 6
call dword [edx + 0xc]
mov ecx, esi
mov byte [esp + 0x128], 7
call fcn.004b22aa
mov ebx, eax
lea eax, [esp + 0x18]
mov edi, edx
mov edx, dword [esi]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
push eax
mov ecx, esi
call dword [edx + 0x20]
mov edx, dword [esi]
push 0x10
mov ecx, esi
call dword [edx + 0x38]
mov esi, dword [esp + 0x14]
mov ebp, eax
mov eax, dword [esp + 0x24]
push 0
push ebp
push eax
mov ecx, esi
mov dword [esp + 0x1c], ebp
call fcn.00405eb0
test ebp, ebp
mov dword [esp + 0x30], eax
jne 0x406e5a
test edi, edi
ja 0x406d8f
jb 0x406d73
cmp ebx, 0x3e7
ja 0x406d8f
push ebx
lea ecx, [esp + 0x84]
push 0x4f03d0
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x406e5a
lea esi, [esp + 0x114]
push 0x4f03c8
mov edx, esi
push edx
mov word [esp + 0x11c], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
add ebx, 0x3ff
adc edi, 0
mov eax, edi
mov ecx, ebx
shrd ecx, eax, 0xa
shr eax, 0xa
test eax, eax
ja 0x406dd0
cmp ecx, 0x3e8
jb 0x406e16
mov edi, edi
mov di, word [esi]
push 0
push 0x3e8
push eax
push ecx
call fcn.004b44c0
push ecx
sub esi, 8
push str.__03u
mov dword [esp + 0x48], ebx
push esi
mov ebx, eax
mov ebp, edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, ebp
add esp, 0xc
test eax, eax
mov word [esi + 8], di
mov ecx, ebx
ja 0x406dd0
jb 0x406e12
cmp ecx, 0x3e8
jae 0x406dd0
mov ebp, dword [esp + 0x10]
test eax, eax
mov di, word [esi]
mov ebx, esi
ja 0x406e24
cmp ecx, 0x64
jb 0x406e29
sub esi, 6
jmp 0x406e3a
test eax, eax
ja 0x406e32
cmp ecx, 0xa
jb 0x406e37
sub esi, 4
jmp 0x406e3a
sub esi, 2
push 0x4f03c8
push ecx
push 0x4f03d0
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
mov dword [esp + 0x4c], esi
mov esi, dword [esp + 0x24]
add esp, 0x10
mov word [ebx], di
lea eax, [esp + 0x18]
push eax
call fcn.004b4093
add esp, 4
test eax, eax
je 0x406e74
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], ecx
jmp 0x406e7c
mov dword [esp + 0x14], 0xffffffff
lea edx, [esp + 0x18]
push edx
call fcn.004b4093
add esp, 4
test eax, eax
je 0x406e96
mov eax, dword [eax + 8]
mov dword [esp + 0x10], eax
jmp 0x406e9e
mov dword [esp + 0x10], 0xffffffff
lea ecx, [esp + 0x18]
push ecx
call fcn.004b4093
add esp, 4
test eax, eax
je 0x406eb4
mov ebx, dword [eax + 0xc]
jmp 0x406eb6
xor ebx, ebx
lea edx, [esp + 0x18]
push edx
call fcn.004b4093
add esp, 4
test eax, eax
je 0x406ecd
mov edi, dword [eax + 0x10]
inc edi
jmp 0x406ecf
xor edi, edi
lea eax, [esp + 0x18]
push eax
call fcn.004b4093
add esp, 4
test eax, eax
je 0x406eea
mov eax, dword [eax + 0x14]
add eax, 0x76c
jmp 0x406eec
xor eax, eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push ebx
push edi
push eax
lea eax, [esp + 0x3c]
push str._04d__02d__02d__02d:_02d
push eax
call fcn.00402400
add esp, 0x1c
mov ecx, ebp
neg ecx
sbb ecx, ecx
and ecx, 0xffffffb2
add ecx, 0x84
lea edx, [ecx*8 + 0x51be84]
push edx
lea ecx, [esp + 0x30]
call fcn.004024d0
mov ebx, dword [esp + 0x130]
mov ecx, dword [esp + 0x138]
xor eax, eax
cmp ecx, ebx
setg al
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
jne 0x406f64
mov edx, dword [esp + 0x30]
mov ecx, dword [esi + 0x54]
push eax
push edx
push eax
push eax
mov eax, dword [esp + 0x30]
push eax
push ebx
push 3
call fcn.004c6dac
jmp 0x406faa
mov edx, dword [esp + 0x20]
xor eax, eax
mov ecx, 0xc
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [esi + 0x54]
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x4c]
push ecx
push 0
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], 3
mov dword [esp + 0x68], edx
mov edx, dword [eax + 0x1c]
push 0x104c
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [esp + 0x10]
test ebp, ebp
je 0x406fb2
test edi, edi
je 0x406fc2
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0x54]
push eax
push 1
push ebx
call fcn.004c6b39
mov edi, dword [esp + 0x2c]
mov ecx, dword [esi + 0x54]
push edi
push 2
push ebx
call fcn.004c6b39
mov ebp, dword [esp + 0x28]
mov ecx, dword [esi + 0x54]
push ebp
push 3
push ebx
call fcn.004c6b39
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x128], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407008
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x128], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40702e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x128], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407054
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x128], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407076
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x128], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40709c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x128], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4070c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x128], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebp
pop ebx
jg 0x4070e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x118], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407111
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
add esp, 0x11c
ret 0xc