Function at 0x401c70
Capabilities:
Access peb ldr_data
Get number of processors
Get session user name
Get user security identifier

Disassembly:
push 0xffffffffffffffff
push 0x4024c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4d0
push ebx
lea eax, [esp + 0x14]
push esi
lea ecx, [esp + 0xd8]
push eax
push ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0x400
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [esp + 0x20]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x8c]
push eax
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0xe8]
push eax
push ecx
push 0
mov dword [esp + 0x38], 0x64
mov dword [esp + 0x30], 0x50
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
mov ebx, 1
lea ecx, [esp + 8]
mov dword [esp + 0x4e0], ebx
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x24]
mov byte [esp + 0x4e0], 2
push edx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x401d60
mov esi, dword [esp + 0x4e8]
push 0x40430c
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x10], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x4e0], bl
call fcn.0040209e
lea ecx, [esp + 0xc]
mov byte [esp + 0x4e0], 0
call fcn.0040209e
mov eax, esi
jmp 0x401e94
lea eax, [esp + 0x24]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
lea ecx, [esp + 0x28]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
xor edx, edx
push ebx
mov dl, byte [eax]
lea eax, [esp + 0x14]
push str.S__lu_
push eax
mov edi, edx
call sub.MFC42.DLL_CString::Format
mov al, byte [esi]
add esp, 0xc
test al, al
jne 0x401dd7
mov cl, byte [esi + 1]
test cl, cl
jne 0x401dd7
xor eax, eax
xor ecx, ecx
mov al, byte [esi + 2]
mov cl, byte [esi + 3]
shl eax, 8
add eax, ecx
xor edx, edx
mov dl, byte [esi + 4]
xor ecx, ecx
mov cl, byte [esi + 5]
shl eax, 8
add eax, edx
lea edx, [esp + 0xc]
shl eax, 8
add eax, ecx
push eax
push 0x404234
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x401e0d
xor ecx, ecx
xor edx, edx
mov cl, byte [esi + 5]
mov dl, byte [esi + 4]
push ecx
xor ecx, ecx
mov cl, byte [esi + 3]
push edx
push ecx
xor edx, edx
mov dl, byte [esi + 2]
xor ecx, ecx
mov cl, byte [esi + 1]
push edx
and eax, 0xff
push ecx
push eax
lea edx, [esp + 0x24]
push str._02h_02h_02h_02h_02h_02h
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x20
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_1
xor esi, esi
test edi, edi
jbe 0x401e59
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
lea ecx, [esp + 0x2c]
push esi
push ecx
call ebp
mov eax, dword [eax]
lea edx, [esp + 0x10]
push eax
push str.__lu
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::operator_1
inc esi
cmp esi, edi
jb 0x401e28
pop ebp
mov esi, dword [esp + 0x4ec]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x4e4], bl
call fcn.0040209e
lea ecx, [esp + 0x10]
mov byte [esp + 0x4e4], 0
call fcn.0040209e
mov eax, esi
pop edi
mov ecx, dword [esp + 0x4d8]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x4dc
ret 4