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

Disassembly:
push 0xffffffffffffffff
push 0x479ac8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a6eb0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x38], 0
lea ecx, [esp + 0x1c]
call fcn.00410d80
mov esi, dword [esp + 0x40]
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
mov ebx, 2
push esi
mov byte [esp + 0x40], bl
call fcn.00406310
lea eax, [esp + 0x44]
push eax
call fcn.004196f0
add esp, 8
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 3
call fcn.00404460
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x38], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4200c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push esi
call fcn.00406310
lea ecx, [esp + 0x44]
push ecx
call fcn.00419820
add esp, 8
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 4
call fcn.00404460
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x38], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x420113
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x42011b
xor eax, eax
jmp 0x42012e
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x420120
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.004028b0
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov ebx, dword [sym.imp.MSVCR90.dll_wcsstr]
mov dword [esp + 0x2c], 0xd
cmp ebp, 0x8000
jne 0x4201c3
mov eax, dword [esp + 0x48]
test eax, eax
je 0x42019f
cmp dword [esi - 0xc], 0
jl 0x42019f
push eax
push esi
call ebx
add esp, 8
test eax, eax
je 0x42019f
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x42019f
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x42019f
cmp dword [edi - 0xc], 0
jl 0x42019f
push eax
push edi
call ebx
add esp, 8
test eax, eax
je 0x42019f
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x4201c3
lea ecx, [esp + 0x1c]
call fcn.00410de0
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x420223
cmp dword [esi - 0xc], 0
jl 0x42019f
push str.04E8
push esi
call ebx
add esp, 8
test eax, eax
je 0x42019f
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x42019f
push edi
push esi
push str.vid___s__pid___s
call fcn.00403170
add esp, 0xc
push 0x64
push ebp
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.0041f5d0
lea ecx, [esp + 0x1c]
call fcn.00410de0
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42022f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420257
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x10