Function at 0x41a570
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x476158
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49ef38]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
mov dword [esp + 0x30], 1
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x38]
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
mov ebx, 2
push esi
mov byte [esp + 0x38], bl
call fcn.00406330
lea eax, [esp + 0x3c]
push eax
call fcn.00415d70
add esp, 8
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 3
call fcn.00404480
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x30], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a63d
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 + 0x3c], esp
push esi
call fcn.00406330
lea ecx, [esp + 0x3c]
push ecx
call fcn.00415ea0
add esp, 8
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], 4
call fcn.00404480
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x30], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41a68a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x41a692
xor eax, eax
jmp 0x41a6a5
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x41a697
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.004028e0
mov edi, dword [esp + 0x3c]
mov esi, dword [sym.imp.MSVCR90.dll_wcsstr]
mov dword [esp + 0x24], 0
cmp edi, 0x8000
jne 0x41a738
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x41a730
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
jl 0x41a730
push ecx
push eax
call esi
add esp, 8
test eax, eax
je 0x41a730
sub eax, dword [esp + 0x1c]
or ebx, 0xffffffff
sar eax, 1
cmp eax, ebx
je 0x41a7d3
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x41a7d3
mov eax, dword [esp + 0x20]
cmp dword [eax - 0xc], 0
jl 0x41a7d3
push ecx
push eax
call esi
add esp, 8
test eax, eax
je 0x41a7d3
sub eax, dword [esp + 0x20]
sar eax, 1
cmp eax, ebx
jne 0x41a73b
jmp 0x41a7d3
or ebx, 0xffffffff
jmp 0x41a7d3
or ebx, 0xffffffff
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
jl 0x41a781
push str.04E8
push eax
call esi
add esp, 8
test eax, eax
je 0x41a781
sub eax, dword [esp + 0x1c]
sar eax, 1
cmp eax, ebx
jle 0x41a781
mov eax, dword [esp + 0x20]
cmp dword [eax - 0xc], 0
jl 0x41a781
push str.6721
push eax
call esi
add esp, 8
test eax, eax
je 0x41a781
sub eax, dword [esp + 0x20]
sar eax, 1
cmp eax, ebx
jg 0x41a7d3
lea ecx, [esp + 0x18]
call fcn.00407d50
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jl 0x41a7ad
push str.VID_04E8PID_6777MI_03
push eax
call esi
add esp, 8
test eax, eax
je 0x41a7ad
sub eax, dword [esp + 0x18]
sar eax, 1
cmp eax, ebx
jg 0x41a7d3
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push str.vid___s__pid___s
call fcn.004031a0
add esp, 0xc
push 0x64
push edi
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
call fcn.0041a230
lea ecx, [esp + 0x18]
call fcn.0040e5e0
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov edx, ebx
lea ecx, [eax + 0xc]
mov byte [esp + 0x30], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a800
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov dword [esp + 0x30], ebx
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x41a821
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x10