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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5106c2
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x572bb0]
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 dword [ebp - 0x264], edx
mov dword [ebp - 0x25c], ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x254], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x24c], 0
call fcn.00460220
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x494d74
push 0x80004005
call fcn.004712d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x234], esi
mov dword [ebp - 4], 0
call fcn.00460220
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x494da7
push 0x80004005
call fcn.004712d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x240], eax
mov byte [ebp - 4], 1
call fcn.00460220
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x494dd7
push 0x80004005
call fcn.004712d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x22c], edi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x248], 0x104
push eax
push 0
push VariantInit
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x495675
test eax, eax
jne 0x495617
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494e34
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x240]
call fcn.004725a0
push str.Volatile_Environment
lea edx, [ebp - 0x240]
lea ecx, [ebp - 0x260]
call fcn.00476000
add esp, 4
lea ecx, [ebp - 0x220]
push ecx
push 0x20019
push 0
push dword [eax]
push VariantInit
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x260]
test eax, eax
sete byte [ebp - 0x235]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x494eb3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x235], 0
je 0x495617
mov dword [ebp - 0x21c], 0x104
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x82
or eax, ecx
jge 0x494ef4
push 0x82
lea ecx, [ebp - 0x22c]
call fcn.00471f40
mov edi, dword [ebp - 0x22c]
lea eax, [ebp - 0x21c]
push eax
push edi
lea eax, [ebp - 0x224]
push eax
push 0
push str.USERDOMAIN
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x494f45
push dword [edi - 8]
push edi
call fcn.004e9865
add esp, 8
test eax, eax
js 0x49565d
cmp eax, dword [edi - 8]
jg 0x49565d
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
jmp 0x49500f
mov dword [ebp - 0x21c], 0x104
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x82
or eax, ecx
jge 0x494f79
push 0x82
lea ecx, [ebp - 0x22c]
call fcn.00471f40
mov edi, dword [ebp - 0x22c]
lea eax, [ebp - 0x21c]
push eax
push edi
lea eax, [ebp - 0x224]
push eax
push 0
push str.LOGONSERVER
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [edi - 8]
push edi
call fcn.004e9865
add esp, 8
test eax, eax
js 0x49565d
cmp eax, dword [edi - 8]
jg 0x49565d
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
lea eax, [ebp - 0x26c]
push 2
push eax
lea ecx, [ebp - 0x22c]
call fcn.00495700
push eax
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 3
call fcn.00473a30
mov byte [ebp - 4], 2
or ecx, 0xffffffff
mov edx, dword [ebp - 0x26c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x495009
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x22c]
mov dword [ebp - 0x21c], 0x104
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x82
or eax, ecx
jge 0x495043
push 0x82
lea ecx, [ebp - 0x234]
call fcn.00471f40
mov esi, dword [ebp - 0x234]
lea eax, [ebp - 0x21c]
push eax
push esi
lea eax, [ebp - 0x224]
push eax
push 0
push str.USERNAME
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x495094
push dword [esi - 8]
push esi
call fcn.004e9865
add esp, 8
test eax, eax
js 0x49565d
cmp eax, dword [esi - 8]
jg 0x49565d
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
jmp 0x49517e
mov dword [ebp - 0x21c], 0x104
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x82
or eax, ecx
jge 0x4950c8
push 0x82
lea ecx, [ebp - 0x234]
call fcn.00471f40
mov esi, dword [ebp - 0x234]
lea eax, [ebp - 0x21c]
push eax
push esi
lea eax, [ebp - 0x224]
push eax
push 0
push str.HOMEPATH
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49517e
push dword [esi - 8]
push esi
call fcn.004e9865
add esp, 8
test eax, eax
js 0x49565d
cmp eax, dword [esi - 8]
jg 0x49565d
xor ecx, ecx
mov dword [esi - 0xc], eax
push 0x5c
push esi
mov word [esi + eax*2], cx
call fcn.004ed9f1
add esp, 8
test eax, eax
jne 0x49512c
or eax, 0xffffffff
jmp 0x495130
sub eax, esi
sar eax, 1
inc eax
lea ecx, [ebp - 0x234]
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.00495700
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 4
call fcn.00473a30
mov byte [ebp - 4], 2
or ecx, 0xffffffff
mov edx, dword [ebp - 0x258]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x495178
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x234]
mov edx, dword [ebp - 0x23c]
mov ecx, 1
mov dword [ebp - 0x21c], 0x104
mov eax, dword [edx]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x82
or eax, ecx
jge 0x4951b6
push 0x82
mov ecx, edx
call fcn.00471f40
mov edx, dword [ebp - 0x23c]
lea eax, [ebp - 0x21c]
push eax
push dword [edx]
lea eax, [ebp - 0x224]
push eax
push 0
push str.APPDATA
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x495221
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx]
test eax, eax
jne 0x4951ed
xor ecx, ecx
jmp 0x495209
push dword [eax - 8]
push eax
call fcn.004e9865
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x49565d
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx]
cmp ecx, dword [eax - 8]
jg 0x49565d
mov dword [eax - 0xc], ecx
mov eax, dword [edx]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x49522c
mov ecx, dword [ebp - 0x23c]
call fcn.00471aa0
mov edx, dword [ebp - 0x230]
mov ecx, 1
mov dword [ebp - 0x21c], 0x104
mov eax, dword [edx]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x82
or eax, ecx
jge 0x495264
push 0x82
mov ecx, edx
call fcn.00471f40
mov edx, dword [ebp - 0x230]
lea eax, [ebp - 0x21c]
push eax
push dword [edx]
lea eax, [ebp - 0x224]
push eax
push 0
push str.LOCALAPPDATA
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4952cf
mov edx, dword [ebp - 0x230]
mov eax, dword [edx]
test eax, eax
jne 0x49529b
xor ecx, ecx
jmp 0x4952b7
push dword [eax - 8]
push eax
call fcn.004e9865
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x49565d
mov edx, dword [ebp - 0x230]
mov eax, dword [edx]
cmp ecx, dword [eax - 8]
jg 0x49565d
mov dword [eax - 0xc], ecx
mov eax, dword [edx]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x4952f5
push dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x230]
call fcn.00473a30
mov ecx, dword [ebp - 0x230]
push str.Local_SettingsApplication_Data
push str.Application_Data
call fcn.00473670
mov eax, dword [ebx]
mov ecx, 1
mov dword [ebp - 0x21c], 0x104
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x82
or eax, ecx
jge 0x495321
push 0x82
mov ecx, ebx
call fcn.00471f40
lea eax, [ebp - 0x21c]
push eax
push dword [ebx]
lea eax, [ebp - 0x224]
push eax
push 0
push str.USERPROFILE
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov eax, dword [ebx]
jne 0x495383
test eax, eax
jne 0x495352
xor ecx, ecx
jmp 0x495368
push dword [eax - 8]
push eax
call fcn.004e9865
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x49565d
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x49565d
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebx]
mov word [eax + ecx*2], dx
jmp 0x49548f
mov dword [ebp - 0x21c], 0x104
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x82
or eax, ecx
jge 0x4953ad
push 0x82
mov ecx, ebx
call fcn.00471f40
lea eax, [ebp - 0x21c]
push eax
push dword [ebx]
lea eax, [ebp - 0x224]
push eax
push 0
push str.HOMEDRIVE
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49548f
call fcn.00460220
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x494d6a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x244], ebx
mov byte [ebp - 4], 5
mov ecx, 1
mov dword [ebp - 0x21c], 0x104
mov eax, dword [ebx - 8]
sub ecx, dword [ebx - 4]
sub eax, 0x82
or eax, ecx
jge 0x495434
push 0x82
lea ecx, [ebp - 0x244]
call fcn.00471f40
mov ebx, dword [ebp - 0x244]
lea eax, [ebp - 0x21c]
push eax
push ebx
lea eax, [ebp - 0x224]
push eax
push 0
push str.HOMEPATH
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x495471
mov eax, dword [ebp - 0x228]
push ebx
push dword [eax]
push 0x54c620
push eax
call fcn.00472d30
add esp, 0x10
add ebx, 0xfffffff0
mov byte [ebp - 4], 2
or ecx, 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49548f
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea edx, [ebp - 0x240]
lea ecx, [ebp - 0x268]
call fcn.00476000
add esp, 4
lea ecx, [ebp - 0x250]
push ecx
push 0x20019
push 0
push dword [eax]
push VariantInit
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x268]
test eax, eax
sete bl
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4954f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x4955b4
mov ebx, dword [ebp - 0x254]
mov ecx, 1
mov dword [ebp - 0x21c], 0x104
mov eax, dword [ebx]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x82
or eax, ecx
jge 0x49552e
push 0x82
mov ecx, ebx
call fcn.00471f40
lea eax, [ebp - 0x21c]
push eax
push dword [ebx]
lea eax, [ebp - 0x224]
push eax
push 0
push str.A520A1A4_1780_4FF6_BD18_167343C5AF16
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x495599
mov eax, dword [ebx]
test eax, eax
jne 0x49555f
xor ecx, ecx
jmp 0x495575
push dword [eax - 8]
push eax
call fcn.004e9865
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x49565d
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x49565d
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebx]
mov word [eax + ecx*2], dx
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4955c5
push dword [ebp - 0x230]
mov ecx, ebx
call fcn.00473a30
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4955c5
push dword [ebp - 0x230]
mov ecx, dword [ebp - 0x254]
call fcn.00473a30
mov eax, dword [ebp - 0x25c]
mov eax, dword [eax]
test eax, eax
je 0x495611
cmp dword [esi - 0xc], 0
jl 0x495611
push eax
push esi
call fcn.004eaf4e
add esp, 8
test eax, eax
je 0x495611
sub eax, esi
sar eax, 1
jne 0x495611
mov ebx, dword [ebp - 0x264]
mov eax, dword [ebx]
test eax, eax
je 0x495611
cmp dword [edi - 0xc], 0
jl 0x495611
push eax
push edi
call fcn.004eaf4e
add esp, 8
test eax, eax
je 0x495611
sub eax, edi
sar eax, 1
je 0x495667
mov ebx, dword [ebp - 0x228]
mov eax, dword [ebp - 0x24c]
lea ecx, [ebp - 0x248]
push 0
push 0
push 0
push 0
push ecx
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x248], 0x104
inc eax
push ecx
push eax
push VariantInit
mov dword [ebp - 0x24c], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x494e23
jmp 0x495675
push 0x80070057
call fcn.004712d0
lea eax, [ebp - 0x240]
mov ecx, ebx
push eax
call fcn.00473a30
add edi, 0xfffffff0
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x495695
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, ebx
mov edx, dword [ebp - 0x240]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4956b8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4956d6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.004e94b7
mov esp, ebp
pop ebp
ret