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

Disassembly:
push 0xffffffffffffffff
push 0x4792d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a5eb0]
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.004106e0
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.00406300
lea eax, [esp + 0x44]
push eax
call fcn.00418e80
add esp, 8
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 3
call fcn.00404450
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 0x41f576
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.00406300
lea ecx, [esp + 0x44]
push ecx
call fcn.00418fb0
add esp, 8
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 4
call fcn.00404450
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 0x41f5c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x41f5cb
xor eax, eax
jmp 0x41f5de
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x41f5d0
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 0x41f673
mov eax, dword [esp + 0x48]
test eax, eax
je 0x41f64f
cmp dword [esi - 0xc], 0
jl 0x41f64f
push eax
push esi
call ebx
add esp, 8
test eax, eax
je 0x41f64f
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x41f64f
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x41f64f
cmp dword [edi - 0xc], 0
jl 0x41f64f
push eax
push edi
call ebx
add esp, 8
test eax, eax
je 0x41f64f
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x41f673
lea ecx, [esp + 0x1c]
call fcn.00410740
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 0x41f6d3
cmp dword [esi - 0xc], 0
jl 0x41f64f
push str.04E8
push esi
call ebx
add esp, 8
test eax, eax
je 0x41f64f
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x41f64f
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.0041ea80
lea ecx, [esp + 0x1c]
call fcn.00410740
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 0x41f6df
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 0x41f707
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