Function at 0x415ab0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512bc8
mov eax, dword fs:[0]
push eax
mov eax, 0x9fc4
call fcn.004f2220
mov eax, dword [0x577680]
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 ebx, dword [ebp + 8]
lea eax, [ebp - 0x9fa4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x9fbc], ebx
mov dword [ebp - 0x9fa4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x415b40
mov ecx, dword [0x578ad4]
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
mov esi, 0x12
idiv esi
cmp edx, 0xf
jne 0x415b39
dec ecx
mov dword [0x578ad4], ecx
xor al, al
jmp 0x415f61
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x9fc0], 0
call fcn.004f2250
add esp, 0xc
lea eax, [ebp - 0x9fb4]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push dword [ebp - 0x9fa4]
mov dword [ebp - 0x9fb4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x415ecd
mov edi, str.Volatile_Environment
shr edi, 0x10
lea ebx, [ebp - 0x218]
mov dword [ebp - 0x9fd0], edi
shr ebx, 0x10
mov esi, str.Volatile_Environment
lea ebx, [ebx]
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x9fac], eax
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x415c59
lea eax, [ebp - 0x218]
movzx esi, ax
push ebx
push esi
call fcn.00403070
add esp, 8
test eax, eax
je 0x415c05
push esi
push eax
lea ecx, [ebp - 0x9fac]
call fcn.00408b00
mov esi, str.Volatile_Environment
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
mov dword [ebp - 4], 1
mov dword [ebp - 0x9fb8], 0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x9fb0], eax
mov byte [ebp - 4], 2
test edi, edi
jne 0x415c86
movzx esi, si
push edi
push esi
call fcn.00403070
add esp, 8
test eax, eax
je 0x415c98
push esi
push eax
lea ecx, [ebp - 0x9fb0]
call fcn.00408b00
jmp 0x415c98
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415c62
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x9fac]
call fcn.0040c730
jmp 0x415c0a
push 0x15
push str.Volatile_Environment
lea ecx, [ebp - 0x9fb0]
call fcn.0040c730
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
mov byte [ebp - 4], 3
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x9fc4], eax
lea eax, [ebp - 0x9fac]
push eax
lea eax, [ebp - 0x9fc4]
push eax
lea eax, [ebp - 0x9fc8]
push eax
mov byte [ebp - 4], 4
call fcn.0046cc80
lea ecx, [ebp - 0x9fb0]
push ecx
push eax
lea eax, [ebp - 0x9fcc]
push eax
mov byte [ebp - 4], 5
call fcn.0046cc80
add esp, 0x18
lea ecx, [ebp - 0x9fb8]
push ecx
push 0x20019
push 0
push dword [eax]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp - 0x9fcc]
add esi, 0xfffffff0
mov edi, eax
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415d28
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x9fc8]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415d4c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x9fc4]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415d70
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x9fb0]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415d94
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x415e51
push dword [ebp - 0x9fb8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x9fa8], eax
mov byte [ebp - 4], 6
test ebx, ebx
jne 0x415dec
lea eax, [ebp - 0x218]
movzx esi, ax
push ebx
push esi
call fcn.00403070
add esp, 8
test eax, eax
je 0x415e17
push esi
push eax
lea ecx, [ebp - 0x9fa8]
call fcn.00408b00
jmp 0x415e17
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415df5
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x9fa8]
call fcn.0040c730
mov ecx, dword [ebp - 0x9fbc]
lea eax, [ebp - 0x9fa8]
push eax
mov byte [ebp - 4], 7
call fcn.00416fa0
mov edx, dword [ebp - 0x9fa8]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415e51
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x9fc0]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x9fb4]
push ecx
lea ecx, [ebp - 0x218]
inc eax
push ecx
push eax
push dword [ebp - 0x9fa4]
mov dword [ebp - 0x9fc0], eax
mov dword [ebp - 0x9fb4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, dword [ebp - 0x9fac]
add esi, 0xfffffff0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415eb4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
mov edi, dword [ebp - 0x9fd0]
mov esi, str.Volatile_Environment
je 0x415bc0
mov ebx, dword [ebp - 0x9fbc]
push dword [ebp - 0x9fa4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00416f20
test al, al
jne 0x415f51
xor eax, eax
push 0x9d86
push eax
mov word [ebp - 0x9fa0], ax
lea eax, [ebp - 0x9f9e]
push eax
call fcn.004f2250
add esp, 0xc
xor edi, edi
xor esi, esi
xor eax, eax
test edi, edi
je 0x415f2e
test eax, eax
je 0x415f2e
lea ecx, [esi + eax]
lea edx, [ebp - 0x9fa0]
lea edx, [edx + ecx*2]
lea ecx, [esi + eax]
mov cx, word [ebp + ecx*2 - 0xa0bc]
inc cx
add cx, word [edx - 2]
mov word [edx], cx
inc eax
cmp eax, 0x8e
jl 0x415f06
add esi, 0x8e
inc edi
cmp esi, 0x4ec4
jl 0x415f04
movsx eax, word [ebp - 0x21a]
mov dword [0x578ad4], eax
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
xor ecx, ecx
sar eax, 2
cmp ecx, eax
sbb eax, eax
neg eax
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.004f0cd4
mov esp, ebp
pop ebp
ret