Function at 0x4a80c0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x54ae74
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x838
push ebp
push edi
mov dword [esp + 0x24], ecx
mov eax, dword [0x5ab980]
xor ebp, ebp
mov dword [esp + 0x848], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x850]
mov byte [esp + 0x848], 2
cmp dword [eax - 8], ebp
jne 0x4a8120
push str.HKEY_USERS
lea ecx, [esp + 0x854]
call fcn.00512a6d
lea ecx, [esp + 0x850]
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows_Messaging_SubsystemProfiles
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00512b79
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x84c], 3
call fcn.00512a1d
lea ecx, [esp + 0x10]
mov byte [esp + 0x848], 2
call fcn.005128e4
mov eax, dword [esp + 0xc]
cmp eax, ebp
je 0x4a8369
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4a8369
mov eax, dword [esp + 0xc]
push 0xf003f
push eax
call fcn.0041e3a0
mov edi, eax
add esp, 8
cmp edi, ebp
mov dword [esp + 0x2c], edi
je 0x4a8369
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
mov eax, dword [esp + 0x20]
push 0
push 0
push 0
lea ecx, [esp + 0x30]
push 0
lea edx, [esp + 0x48]
push ecx
push edx
mov esi, 0x200
push eax
push edi
mov dword [esp + 0x44], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x4a8360
test eax, eax
jne 0x4a8360
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x38]
inc ecx
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1c]
push ecx
push 0xf003f
push eax
push edx
push edi
call ebx
test eax, eax
jne 0x4a819d
jmp 0x4a81fe
mov esi, 0x200
mov edx, dword [esp + 0x1c]
push 0
push 0
push 0
lea eax, [esp + 0x30]
push 0
lea ecx, [esp + 0x24c]
push eax
push ecx
push ebp
push edx
mov dword [esp + 0x44], esi
mov dword [esp + 0x50], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x4a834c
test eax, eax
jne 0x4a834c
mov edi, str.001e6700
or ecx, 0xffffffff
inc ebp
lea edx, [esp + 0x440]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x23c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
push ecx
push 0xf003f
push 0
push edx
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x4a8339
lea ecx, [esp + 0x30]
lea edx, [esp + 0x644]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push eax
lea eax, [esp + 0x450]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a8339
lea edx, [esp + 0x14]
push 0x5971e8
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.00512b79
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x854], 4
call fcn.00512a1d
lea ecx, [esp + 0x18]
mov byte [esp + 0x850], 2
call fcn.005128e4
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x14]
call fcn.00512cc0
push 0x5971e8
lea ecx, [esp + 0x14]
call fcn.00512cc0
lea edx, [esp + 0x23c]
lea ecx, [esp + 0x10]
push edx
call fcn.00512cc0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x644]
push eax
push ecx
mov ecx, dword [esp + 0x34]
call fcn.004a7fd0
push 0x5b0738
lea ecx, [esp + 0x14]
call fcn.00512a6d
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4a81f9
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x34]
jmp 0x4a819d
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
lea ecx, [esp + 8]
mov byte [esp + 0x848], 1
call fcn.005128e4
lea ecx, [esp + 0xc]
mov byte [esp + 0x848], 0
call fcn.005128e4
lea ecx, [esp + 0x850]
mov dword [esp + 0x848], 0xffffffff
call fcn.005128e4
mov ecx, dword [esp + 0x840]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x844
ret 4