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

Disassembly:
push 0xffffffffffffffff
push 0x4e38a8
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.004c86da
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.004c86da
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.004c86da
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.004c86da
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.004c86da
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.004c86da
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.004ad4da
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.00405b00
test ebp, ebp
mov dword [esp + 0x30], eax
jne 0x406aba
test edi, edi
ja 0x4069ef
jb 0x4069d3
cmp ebx, 0x3e7
ja 0x4069ef
push ebx
lea ecx, [esp + 0x84]
push 0x4ec3b0
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x406aba
lea esi, [esp + 0x114]
push 0x4ec3a8
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 0x406a30
cmp ecx, 0x3e8
jb 0x406a76
mov edi, edi
mov di, word [esi]
push 0
push 0x3e8
push eax
push ecx
call fcn.004af840
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 0x406a30
jb 0x406a72
cmp ecx, 0x3e8
jae 0x406a30
mov ebp, dword [esp + 0x10]
test eax, eax
mov di, word [esi]
mov ebx, esi
ja 0x406a84
cmp ecx, 0x64
jb 0x406a89
sub esi, 6
jmp 0x406a9a
test eax, eax
ja 0x406a92
cmp ecx, 0xa
jb 0x406a97
sub esi, 4
jmp 0x406a9a
sub esi, 2
push 0x4ec3a8
push ecx
push 0x4ec3b0
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.004af413
add esp, 4
test eax, eax
je 0x406ad4
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], ecx
jmp 0x406adc
mov dword [esp + 0x14], 0xffffffff
lea edx, [esp + 0x18]
push edx
call fcn.004af413
add esp, 4
test eax, eax
je 0x406af6
mov eax, dword [eax + 8]
mov dword [esp + 0x10], eax
jmp 0x406afe
mov dword [esp + 0x10], 0xffffffff
lea ecx, [esp + 0x18]
push ecx
call fcn.004af413
add esp, 4
test eax, eax
je 0x406b14
mov ebx, dword [eax + 0xc]
jmp 0x406b16
xor ebx, ebx
lea edx, [esp + 0x18]
push edx
call fcn.004af413
add esp, 4
test eax, eax
je 0x406b2d
mov edi, dword [eax + 0x10]
inc edi
jmp 0x406b2f
xor edi, edi
lea eax, [esp + 0x18]
push eax
call fcn.004af413
add esp, 4
test eax, eax
je 0x406b4a
mov eax, dword [eax + 0x14]
add eax, 0x76c
jmp 0x406b4c
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.004023c0
add esp, 0x1c
mov ecx, ebp
neg ecx
sbb ecx, ecx
and ecx, 0xffffffb2
add ecx, 0x84
lea edx, [ecx*8 + 0x517e84]
push edx
lea ecx, [esp + 0x30]
call fcn.00402490
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 0x406bc4
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.004c2c0c
jmp 0x406c0a
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 0x406c12
test edi, edi
je 0x406c22
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0x54]
push eax
push 1
push ebx
call fcn.004c2999
mov edi, dword [esp + 0x2c]
mov ecx, dword [esi + 0x54]
push edi
push 2
push ebx
call fcn.004c2999
mov ebp, dword [esp + 0x28]
mov ecx, dword [esi + 0x54]
push ebp
push 3
push ebx
call fcn.004c2999
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 0x406c68
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 0x406c8e
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 0x406cb4
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 0x406cd6
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 0x406cfc
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 0x406d22
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 0x406d48
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 0x406d71
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