Function at 0x46fe91
Capabilities:
Get session information
Get session user name
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x523b07
mov eax, dword fs:[0]
push eax
sub esp, 0x8b8
mov eax, dword [0x577698]
xor eax, esp
mov dword [esp + 0x8b0], eax
push ebx
push esi
push edi
mov eax, dword [0x577698]
xor eax, esp
push eax
lea eax, [esp + 0x8c8]
mov dword fs:[0], eax
xor eax, eax
push 0x7ce
mov word [esp + 0xf0], ax
xor edi, edi
lea eax, [esp + 0xf2]
push edi
push eax
call fcn.004e7380
add esp, 0xc
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0xf0]
push eax
mov dword [esp + 0x40], 0x3e8
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x46ff36
mov ecx, dword [esp + 0x8c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8b0]
xor ecx, esp
call fcn.004e736b
mov esp, ebp
pop ebp
ret
mov eax, dword [0x582d44]
mov ecx, 0x582d44
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x34], esi
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x34]
push eax
push 7
push 0xffffffffffffffff
mov dword [esp + 0x8e0], edi
push edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], edi
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x46ff90
push dword [esp + 0x30]
lea eax, [esp + 0x38]
push eax
call fcn.00405721
push dword [esp + 0x30]
call sub.WTSAPI32.dll_WTSFreeMemory
mov esi, dword [esp + 0x34]
mov dword [esp + 0x30], edi
mov eax, dword [esi - 0xc]
neg eax
sbb eax, eax
and eax, esi
push eax
mov edx, 0x582cd8
lea ecx, [esp + 0xf0]
call fcn.004703fc
test al, al
jne 0x46ffbe
lea eax, [esi - 0x10]
call fcn.0040557a
mov eax, edi
jmp 0x46ff12
push 4
pop ebx
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x1c]
push eax
mov esi, str.boottick2
push esi
push str.Software360softmgr_softmgrs
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
call edi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
push str.Software360TotalSecurity_bootspeed
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
call edi
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0043f83e
add esp, 0xc
test al, al
je 0x47006c
mov eax, dword [0x582cd8]
cmp eax, dword [esp + 0x20]
jne 0x47006c
mov eax, dword [0x582cdc]
cmp eax, dword [esp + 0x18]
jne 0x47006c
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
jmp 0x470222
call fcn.0040a4e1
test al, al
jne 0x47007a
call fcn.004a6de1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], esi
call fcn.004411f7
cmp eax, 1
jne 0x470118
and dword [esp + 0x18], 0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebx
call fcn.0040d3de
mov dword [esp + 0x10], eax
call fcn.0040da1a
cmp dword [esp + 0x10], 0
je 0x470118
test eax, eax
jne 0x470118
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
push str.logontickcount
push str.Software360softmgr_softmgrs
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov eax, esi
sub eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
push str.logontickcount
push str.Software360TotalSecurity_bootspeed
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov ecx, dword [esp + 0x10]
mov eax, esi
sub eax, dword [esp + 0x18]
add ecx, esi
add eax, esi
jmp 0x470120
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x40]
sub ecx, dword [esp + 0x3c]
sub esi, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x4c]
push eax
push 0x582cd8
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
jne 0x470156
and dword [esp + 0x18], eax
and dword [esp + 0x1c], eax
jmp 0x470164
lea eax, [esp + 0x4c]
push eax
lea esi, [esp + 0x1c]
call fcn.0046d8d9
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [esp + 0x58]
lea edi, [esp + 0x44]
call fcn.0043597f
lea eax, [esp + 0x18]
push eax
mov esi, str._Y__m__d__H:_M:_S
lea edi, [esp + 0x28]
call fcn.0040468f
lea eax, [esp + 0x44]
push eax
lea edi, [esp + 0x30]
mov byte [esp + 0x8d4], 1
call fcn.0040468f
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
sbb ecx, dword [esp + 0x1c]
imul eax, eax, 0x3e8
mov dword [esp + 0x50], ecx
movzx ecx, word [esp + 0x66]
add eax, ecx
mov esi, eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
call fcn.0040557a
mov byte [esp + 0x8d0], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.0040557a
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
cmp esi, eax
jae 0x4701f8
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x18]
jae 0x470206
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x18]
jae 0x470214
mov dword [esp + 0x18], eax
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [esp + 0x10], 1
mov eax, 0x493e0
cmp dword [esp + 0x18], eax
jb 0x470231
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
lea esi, [esp + 0x4c]
mov dword [0x582ce0], eax
call fcn.004705fe
cmp dword [esp + 0x10], 1
jne 0x4703ef
cmp eax, 1
jne 0x4703ef
push ebx
push 0x582cdc
push ebx
push str.logon_time_hi
push str.Software360360Speedld
mov esi, SysReAllocString
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push ebx
push 0x582cd8
push ebx
push str.logon_time_lo
push str.Software360360Speedld
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
and dword [esp + 0x10], 0
and dword [esp + 0x14], 0
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
push str.boottime
push str.Software360360Speedld
push esi
mov dword [esp + 0x44], ebx
call edi
test eax, eax
jne 0x4702d8
cmp dword [esp + 0x10], ebx
jne 0x4702d8
push ebx
lea eax, [esp + 0x18]
push eax
push ebx
push str.last_boottime
push str.Software360360Speedld
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push ebx
push 0x582ce0
push ebx
push str.boottime
push str.Software360360Speedld
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0
call fcn.004eb76c
pop ecx
mov dword [esp + 0x24], eax
mov eax, dword [0x582d44]
mov ecx, 0x582d44
mov dword [esp + 0x28], edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
lea eax, [esp + 0xa4]
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x8d8], 2
call fcn.004407da
test eax, eax
je 0x470336
mov edi, dword [eax]
jmp 0x470339
or edi, 0xffffffff
lea eax, [esp + 0xc8]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004407da
test eax, eax
je 0x470354
mov esi, dword [eax + 4]
jmp 0x470357
or esi, 0xffffffff
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004407da
test eax, eax
je 0x47036f
mov eax, dword [eax + 8]
jmp 0x470372
or eax, 0xffffffff
push edi
push esi
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00440762
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00440740
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0044071a
push eax
lea eax, [esp + 0x38]
push str._d_02d_02d_02d_02d_02d
push eax
call fcn.00404568
mov esi, dword [esp + 0x44]
add esp, 0x20
lea eax, [esp + 0x68]
push eax
call fcn.0043fa9e
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x8d4], 3
push dword [0x582ce0]
mov edi, eax
push esi
call fcn.0043fb7d
lea eax, [esp + 0x68]
push eax
mov byte [esp + 0x8d4], 2
call fcn.0043fb13
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.0040557a
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x34]
jmp 0x46ffaf