Function at 0x41aee0
Capabilities:
Get session user name
Get user security identifier
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xc50
mov eax, dword [0x4b0650]
xor eax, esp
mov dword [esp + 0xc4c], eax
push ebx
mov ebx, dword [esp + 0xc58]
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 0xf003f
xor edi, edi
push edi
push str.SOFTWARECyberLinkCBE
push SysReAllocString
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41afaf
push 0x204
lea ecx, [esp + 0x440]
push edi
push ecx
mov dword [esp + 0x444], edi
call fcn.00477c40
add esp, 0xc
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x43c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edi
push str.UUID
push edx
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41af9f
lea eax, [esp + 0x438]
mov edx, ebx
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x41af90
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41b229
push 0x206
lea ecx, [esp + 0x646]
xor eax, eax
push edi
push ecx
mov word [esp + 0x64c], ax
call fcn.00477c40
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x644]
push eax
mov esi, 0x104
push 2
mov dword [esp + 0x20], esi
call sub.Secur32.dll_GetUserNameExW
push 0x40c
lea ecx, [esp + 0x30]
push edi
push ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x34], edi
call fcn.00477c40
push 0x206
lea eax, [esp + 0x85a]
xor edx, edx
push edi
push eax
mov word [esp + 0x860], dx
call fcn.00477c40
push 0x206
lea edx, [esp + 0x456]
xor ecx, ecx
push edi
push edx
mov word [esp + 0x45c], cx
call fcn.00477c40
add esp, 0x24
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x850]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x654]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x41b229
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x41b22b
push ebp
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
lea edx, [esp + 0x2c]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
movzx ebp, byte [eax]
push 1
lea eax, [esp + 0x440]
push str.S__lu_
push eax
call fcn.00477b46
mov edi, eax
mov al, byte [esi]
add esp, 0xc
test al, al
jne 0x41b110
cmp byte [esi + 1], al
jne 0x41b110
movzx ecx, byte [esi + 2]
movzx edx, byte [esi + 3]
movzx eax, byte [esi + 4]
shl ecx, 8
add ecx, edx
movzx edx, byte [esi + 5]
shl ecx, 8
add ecx, eax
shl ecx, 8
add ecx, edx
push ecx
push 0x49a154
lea eax, [esp + 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + eax*2 + 0x444]
push ecx
call fcn.00477b46
add esp, 0xc
jmp 0x41b150
movzx edx, byte [esi + 5]
movzx ecx, byte [esi + 4]
push edx
movzx edx, byte [esi + 3]
push ecx
movzx ecx, byte [esi + 2]
push edx
movzx edx, byte [esi + 1]
push ecx
push edx
movzx eax, al
push eax
push str.0x_02hx_02hx_02hx_02hx_02hx_02hx
lea ecx, [esp + 0x458]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + eax*2 + 0x458]
push edx
call fcn.00477b46
add esp, 0x20
add edi, eax
xor esi, esi
test ebp, ebp
jbe 0x41b18b
mov ebx, dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov edi, edi
push esi
lea eax, [esp + 0x30]
push eax
call ebx
mov ecx, dword [eax]
push ecx
lea edx, [esp + edi*2 + 0x440]
push str.__lu
push edx
call fcn.00477b46
inc esi
add esp, 0xc
add edi, eax
cmp esi, ebp
jb 0x41b160
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0xa54]
push eax
call fcn.0041a350
lea ecx, [esp + 0xa54]
push ecx
lea edx, [esp + 0x440]
push edx
push str._s__s
push ebx
call fcn.00401570
push ebx
call fcn.0047ae36
add esp, 0x14
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWARECyberLinkCBE
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop ebp
test eax, eax
jne 0x41b224
mov eax, ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41b1f0
sub eax, edx
mov edx, dword [esp + 0xc]
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push ebx
push 1
push 0
push str.UUID
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 1
mov eax, edi
mov ecx, dword [esp + 0xc58]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00477bf8
add esp, 0xc50
ret 4