Function at 0x477014
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 0x52f103
mov eax, dword fs:[0]
push eax
sub esp, 0x8b8
mov eax, dword [0x585698]
xor eax, esp
mov dword [esp + 0x8b0], eax
push ebx
push esi
push edi
mov eax, dword [0x585698]
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.004f18b0
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 0x4770b9
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.004f189b
mov esp, ebp
pop ebp
ret
mov eax, dword [0x590e04]
mov ecx, 0x590e04
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 0x477113
push dword [esp + 0x30]
lea eax, [esp + 0x38]
push eax
call fcn.004056c8
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, 0x590da0
lea ecx, [esp + 0xf0]
call fcn.0047757f
test al, al
jne 0x477141
lea eax, [esi - 0x10]
call fcn.00405521
mov eax, edi
jmp 0x477095
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.0044498b
add esp, 0xc
test al, al
je 0x4771ef
mov eax, dword [0x590da0]
cmp eax, dword [esp + 0x20]
jne 0x4771ef
mov eax, dword [0x590da4]
cmp eax, dword [esp + 0x18]
jne 0x4771ef
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
jmp 0x4773a5
call fcn.0040ccef
test al, al
jne 0x4771fd
call fcn.004afae7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], esi
call fcn.00447f78
cmp eax, 1
jne 0x47729b
and dword [esp + 0x18], 0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebx
call fcn.0040fbc3
mov dword [esp + 0x10], eax
call fcn.004101ff
cmp dword [esp + 0x10], 0
je 0x47729b
test eax, eax
jne 0x47729b
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 0x4772a3
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 0x590da0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
jne 0x4772d9
and dword [esp + 0x18], eax
and dword [esp + 0x1c], eax
jmp 0x4772e7
lea eax, [esp + 0x4c]
push eax
lea esi, [esp + 0x1c]
call fcn.004749a9
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [esp + 0x58]
lea edi, [esp + 0x44]
call fcn.0043b0e7
lea eax, [esp + 0x18]
push eax
mov esi, str._Y__m__d__H:_M:_S
lea edi, [esp + 0x28]
call fcn.00404636
lea eax, [esp + 0x44]
push eax
lea edi, [esp + 0x30]
mov byte [esp + 0x8d4], 1
call fcn.00404636
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.00405521
mov byte [esp + 0x8d0], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.00405521
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
cmp esi, eax
jae 0x47737b
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x18]
jae 0x477389
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x18]
jae 0x477397
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 0x4773b4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
lea esi, [esp + 0x4c]
mov dword [0x590da8], eax
call fcn.00477781
cmp dword [esp + 0x10], 1
jne 0x477572
cmp eax, 1
jne 0x477572
push ebx
push 0x590da4
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 0x590da0
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 0x47745b
cmp dword [esp + 0x10], ebx
jne 0x47745b
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 0x590da8
push ebx
push str.boottime
push str.Software360360Speedld
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0
call fcn.004f5c9c
pop ecx
mov dword [esp + 0x24], eax
mov eax, dword [0x590e04]
mov ecx, 0x590e04
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.0044573e
test eax, eax
je 0x4774b9
mov edi, dword [eax]
jmp 0x4774bc
or edi, 0xffffffff
lea eax, [esp + 0xc8]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0044573e
test eax, eax
je 0x4774d7
mov esi, dword [eax + 4]
jmp 0x4774da
or esi, 0xffffffff
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0044573e
test eax, eax
je 0x4774f2
mov eax, dword [eax + 8]
jmp 0x4774f5
or eax, 0xffffffff
push edi
push esi
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004456c6
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004456a4
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0044567e
push eax
lea eax, [esp + 0x38]
push str._d_02d_02d_02d_02d_02d
push eax
call fcn.0040450f
mov esi, dword [esp + 0x44]
add esp, 0x20
lea eax, [esp + 0x68]
push eax
call fcn.00444c0e
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x8d4], 3
push dword [0x590da8]
mov edi, eax
push esi
call fcn.00444ced
lea eax, [esp + 0x68]
push eax
mov byte [esp + 0x8d4], 2
call fcn.00444c83
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.00405521
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x34]
jmp 0x477132