Function at 0x488340
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5058e8
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x559680]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x220], 0
call fcn.00489360
test al, al
jne 0x4883cb
mov esi, dword [0x55aac0]
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0x64
sub esi, ecx
xor ecx, ecx
lea eax, [esi + 0x2f4]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ddf94
push eax
call fcn.004e00c3
add esp, 8
lea eax, [ebp - 0x220]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4883f4
xor al, al
jmp 0x48886e
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
xor ebx, ebx
call fcn.004e0ad0
add esp, 0xc
lea eax, [ebp - 0x230]
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push dword [ebp - 0x220]
mov dword [ebp - 0x230], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4887dc
mov edi, str.Volatile_Environment
shr edi, 0x10
lea esi, [ebp - 0x218]
shr esi, 0x10
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x21c], esi
mov eax, dword [0x5591b8]
mov ecx, 0x5591b8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], 0
test esi, esi
jne 0x4884aa
lea eax, [ebp - 0x218]
movzx esi, ax
push 0
push esi
call fcn.00402e50
add esp, 8
test eax, eax
je 0x4884d5
push esi
push eax
lea ecx, [ebp - 0x22c]
call fcn.00406a90
jmp 0x4884d5
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4884b3
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x22c]
call fcn.00409230
mov eax, dword [0x5591b8]
mov ecx, 0x5591b8
mov dword [ebp - 4], 1
mov dword [ebp - 0x238], 0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 2
test edi, edi
jne 0x488529
mov eax, str.Volatile_Environment
movzx esi, ax
push edi
push esi
call fcn.00402e50
add esp, 8
test eax, eax
je 0x48853b
push esi
push eax
lea ecx, [ebp - 0x224]
call fcn.00406a90
jmp 0x48853b
push 0x15
push str.Volatile_Environment
lea ecx, [ebp - 0x224]
call fcn.00409230
mov eax, dword [0x5591b8]
mov ecx, 0x5591b8
mov byte [ebp - 4], 3
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x244]
push eax
mov byte [ebp - 4], 4
call fcn.00462200
lea ecx, [ebp - 0x224]
push ecx
push eax
lea eax, [ebp - 0x248]
push eax
mov byte [ebp - 4], 5
call fcn.00462200
add esp, 0x18
lea ecx, [ebp - 0x238]
push ecx
push 0x20019
push 0
push dword [eax]
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp - 0x248]
add esi, 0xfffffff0
mov edi, eax
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4885cb
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x244]
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 0x4885ef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x240]
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 0x488613
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x224]
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 0x488637
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x4886fc
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x5591b8]
mov ecx, 0x5591b8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x21c], edi
jne 0x488693
lea eax, [ebp - 0x218]
movzx esi, ax
push edi
push esi
call fcn.00402e50
add esp, 8
test eax, eax
je 0x4886c2
push esi
push eax
lea ecx, [ebp - 0x228]
call fcn.00406a90
jmp 0x4886c2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4886a0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x228]
call fcn.00409230
mov ecx, dword [ebp - 0x23c]
lea eax, [ebp - 0x228]
push eax
mov byte [ebp - 4], 7
call fcn.0041e570
mov edx, dword [ebp - 0x228]
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 0x4886fc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [0x55aac0]
mov eax, esi
imul eax, esi
cdq
mov ecx, 0x18
idiv ecx
inc ebx
mov dword [ebp - 0x230], 0x104
cmp edx, 2
jne 0x48877c
mov eax, 0x24168e19
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0xe3
mov eax, esi
sub eax, ecx
xor edi, edi
cmp eax, 0xb5
je 0x488776
mov eax, esi
or eax, 0xffffff99
add esi, eax
mov eax, esi
imul eax, esi
inc edi
cmp edi, eax
jg 0x488776
mov eax, 0x24168e19
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0xe3
mov eax, esi
sub eax, ecx
cmp eax, 0xb5
jne 0x488743
mov dword [0x55aac0], edi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, dword [ebp - 0x22c]
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 0x4887c8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x21c]
test edi, edi
mov edi, dword [ebp - 0x234]
je 0x488462
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004893c0
test al, al
jne 0x488858
mov edi, dword [0x55aac0]
mov eax, edi
cdq
sub eax, edx
xor ecx, ecx
mov ebx, eax
sar ebx, 1
mov esi, 0xfe
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x234], ebx
test ebx, ebx
jle 0x48884d
mov eax, edi
cdq
and edx, 3
lea edi, [edx + eax]
sar edi, 2
xor edx, edx
test edi, edi
jle 0x48883c
mov eax, edx
mov ecx, edi
lea ecx, [ecx]
add esi, eax
dec eax
dec ecx
jne 0x488830
mov ecx, dword [ebp - 0x21c]
add edx, ecx
dec ebx
jne 0x488825
mov ebx, dword [ebp - 0x234]
mov edi, dword [0x55aac0]
inc ecx
mov dword [ebp - 0x21c], ecx
cmp ecx, esi
jl 0x488813
mov ecx, dword [ebp - 0x23c]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
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.004df4f4
mov esp, ebp
pop ebp
ret