Function at 0x4a9dc0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5796ce
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x5f7448]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x158], 0
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x150], edi
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x15c], esi
mov dword [ebp - 0x160], esi
mov dword [ebp - 0x148], ebx
mov dword [ebp - 4], 1
lea eax, [ebp - 0x154]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4a9f2e
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.00425090
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x12c]
push str.CCertManager::GetAllUsers___Failed_to_get_key_with_error:
push eax
call fcn.00407110
mov byte [ebp - 4], 3
push 1
push eax
call fcn.00448660
add esp, 0x1c
mov byte [ebp - 4], 2
cmp dword [ebp - 0x118], 0x10
jb 0x4a9e96
push dword [ebp - 0x12c]
call fcn.004ad196
add esp, 4
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x130], 0x10
jb 0x4a9ecc
push dword [ebp - 0x144]
call fcn.004ad196
add esp, 4
mov dword [ebp - 0x130], 0xf
mov dword [ebp - 0x134], 0
mov byte [ebp - 0x144], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x158], 1
mov byte [ebp - 4], 0
mov eax, esi
jmp 0x4aa0f3
push 0x103
xor esi, esi
lea eax, [ebp - 0x113]
push esi
push eax
mov byte [ebp - 0x114], 0
call fcn.004af380
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x104
push eax
push esi
push dword [ebp - 0x154]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4aa0a5
mov bl, byte [ebp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
inc esi
test bl, bl
jne 0x4a9fcf
lea eax, [ebp - 0x114]
push str.S_1_5_18
push eax
call fcn.0055d916
add esp, 8
test eax, eax
je 0x4aa07c
lea eax, [ebp - 0x114]
push str.S_1_5_19
push eax
call fcn.0055d916
add esp, 8
test eax, eax
je 0x4aa07c
lea eax, [ebp - 0x114]
push str.S_1_5_20
push eax
call fcn.0055d916
add esp, 8
test eax, eax
je 0x4aa07c
cmp byte [ebp - 0x114], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
jne 0x4aa00b
xor ecx, ecx
jmp 0x4aa01d
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4aa014
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x12c]
call fcn.004059b0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x150]
call fcn.00420460
mov byte [ebp - 4], 1
cmp dword [ebp - 0x118], 0x10
jb 0x4aa061
push dword [ebp - 0x12c]
call fcn.004ad196
add esp, 4
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
push 0x104
lea eax, [ebp - 0x114]
push eax
push esi
push dword [ebp - 0x154]
call edi
test eax, eax
je 0x4a9f76
mov ebx, dword [ebp - 0x14c]
mov edi, dword [ebp - 0x150]
push dword [ebp - 0x154]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x15c]
mov eax, dword [ebp - 0x148]
mov dword [ecx], edi
mov dword [ecx + 4], ebx
mov dword [ecx + 8], eax
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x158], 1
mov byte [ebp - 4], 0
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004adbd4
mov esp, ebp
pop ebp
ret 8