Function at 0x460450
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x12c8
call fcn.004405d0
mov eax, dword [0x485f50]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x12c4], ecx
mov eax, dword [ebp - 0x12c4]
mov dword [eax], vtable.CNTService.0
mov ecx, dword [ebp - 0x12c4]
mov edx, dword [ebp + 8]
mov dword [ecx + 4], edx
cmp dword [ebp + 0xc], 0
je 0x460496
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x12c8], eax
jmp 0x46049f
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x12c8], ecx
mov edx, dword [ebp - 0x12c4]
mov eax, dword [ebp - 0x12c8]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x12c4]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x12c4]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x12c4]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 0x12c4]
mov dword [edx + 0x18], 0
mov eax, dword [ebp - 0x12c4]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp - 0x12c4]
mov dword [ecx + 0x3c], 0
mov edx, dword [ebp - 0x12c4]
mov dword [edx + 0x40], 1
mov eax, dword [ebp - 0x12c4]
mov dword [eax + 0x44], 0
mov ecx, dword [ebp - 0x12c4]
mov dword [ecx + 0x4c], 0
mov edx, dword [ebp - 0x12c4]
mov dword [edx + 0x50], 0xf01ff
mov eax, dword [ebp - 0x12c4]
mov dword [eax + 0x54], 0x110
mov ecx, dword [ebp - 0x12c4]
mov dword [ecx + 0x58], 2
mov edx, dword [ebp - 0x12c4]
mov dword [edx + 0x5c], 1
mov eax, dword [ebp - 0x12c4]
mov dword [eax + 0x60], 0
mov ecx, dword [ebp - 0x12c4]
mov dword [ecx + 0x64], 0
mov edx, dword [ebp - 0x12c4]
mov dword [edx + 0x68], 0
mov eax, dword [ebp - 0x12c4]
mov dword [eax + 0x6c], 0
mov ecx, dword [ebp - 0x12c4]
mov dword [ecx + 0x70], 0
mov dword [ebp - 0xa0], 0x94
lea edx, [ebp - 0xa0]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
cmp dword [ebp - 0x90], 2
sete al
mov ecx, dword [ebp - 0x12c4]
mov dword [ecx + 0x48], eax
mov dword [0x48a658], 1
mov edx, dword [ebp - 0x12c4]
mov dword [0x48a65c], edx
mov eax, dword [ebp - 0x12c4]
mov dword [eax + 0x20], 0x10
mov ecx, dword [ebp - 0x12c4]
mov dword [ecx + 0x30], 0
mov edx, dword [ebp - 0x12c4]
cmp dword [edx + 0x48], 0
je 0x46071f
mov dword [ebp - 0x2a4], 0x1000
mov dword [ebp - 0x12b4], 0
mov dword [ebp - 0x2ac], 0xff
mov dword [ebp - 0x2a8], 0xff
push pe_nt_image_headers32
push 0
lea eax, [ebp - 0x2a0]
push eax
call fcn.0043cea0
add esp, 0xc
push pe_nt_image_headers32
push 0
lea ecx, [ebp - 0x1a0]
push ecx
call fcn.0043cea0
add esp, 0xc
mov edx, dword [ebp - 0x2a4]
push edx
push 0
lea eax, [ebp - 0x12b0]
push eax
call fcn.0043cea0
add esp, 0xc
lea ecx, [ebp - 0x2ac]
push ecx
lea edx, [ebp - 0x2a0]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x12b8]
push eax
lea ecx, [ebp - 0x2a8]
push ecx
lea edx, [ebp - 0x1a0]
push edx
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x12b0]
push ecx
lea edx, [ebp - 0x2a0]
push edx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x46071f
lea eax, [ebp - 0x12b0]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x46071f
lea ecx, [ebp - 0x12b0]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov dword [ebp - 0x12bc], eax
mov edx, dword [ebp - 0x12bc]
push edx
call fcn.0041f6ad
add esp, 4
mov dword [ebp - 0x12c0], eax
mov eax, dword [ebp - 0x12c4]
mov ecx, dword [ebp - 0x12c0]
mov dword [eax + 0x44], ecx
lea edx, [ebp - 0x12b0]
push edx
mov eax, dword [ebp - 0x12c4]
mov ecx, dword [eax + 0x44]
push ecx
mov edx, dword [ebp - 0x12bc]
push edx
call dword [sym.imp.ADVAPI32.dll_CopySid]
mov eax, dword [ebp - 0x12c4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043c3a4
mov esp, ebp
pop ebp
ret 0xc