Function at 0x492430
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x425c
call fcn.0051d7f0
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx + 4]
push edx
mov ecx, edi
mov dword [ebp - 0x4250], eax
mov dword [ebp - 0x4254], edi
call fcn.0046a9e0
mov eax, dword [edi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], 0
mov dword [eax], eax
mov eax, dword [edi + 0x18]
push str.userprofile
lea ecx, [ebp - 0x4214]
mov dword [eax + 8], eax
call fcn.00464b60
lea eax, [ebp - 0x4214]
push eax
mov ecx, edi
call fcn.0047fe10
push esi
mov ecx, eax
call fcn.0044f5c0
mov eax, dword [ebp - 0x4214]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4924d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x599458]
mov eax, dword [edx + 0xc]
mov ecx, 0x599458
call eax
mov ecx, dword [ebx]
push ecx
lea edx, [ebp - 0x4214]
add eax, 0x10
push str._sEnvironment
push edx
mov dword [ebp - 0x4214], eax
call fcn.0044ff30
mov esi, dword [ebp - 0x4214]
add esp, 0xc
lea eax, [ebp - 0x421c]
push eax
push 0x20019
xor ebx, ebx
push ebx
push esi
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x49252d
lea eax, [esi - 0x10]
jmp 0x492911
push 4
call fcn.0051d4d3
add esp, 4
cmp eax, ebx
je 0x49254b
lea ecx, [ebp - 0x424c]
mov dword [eax], ecx
mov dword [ebp - 0x424c], eax
jmp 0x492551
mov dword [ebp - 0x424c], ebx
lea ecx, [ebp - 0x424c]
call fcn.004431a0
mov dword [ebp - 0x4234], eax
mov byte [eax + 0x15], 1
mov eax, dword [ebp - 0x4234]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x4234]
mov dword [eax], eax
mov eax, dword [ebp - 0x4234]
mov dword [eax + 8], eax
lea edx, [ebp - 0x4218]
push edx
lea eax, [ebp - 0x420c]
push eax
lea ecx, [ebp - 0x422c]
push ecx
mov ecx, dword [ebp - 0x421c]
push 0
lea edx, [ebp - 0x4228]
push edx
lea eax, [ebp - 0x20c]
push eax
push 0
push ecx
mov dword [ebp - 0x4230], ebx
mov dword [ebp - 0x4228], 0x104
mov dword [ebp - 0x4218], 0x3ffe
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x492755
jmp 0x4925e0
mov eax, dword [ebp - 0x422c]
cmp eax, 1
jne 0x492669
mov edx, dword [ebp - 0x4218]
lea ecx, [ebp - 0x20c]
shr edx, 1
xor eax, eax
push 0x104
push ecx
mov word [ebp + edx*2 - 0x420c], ax
call fcn.0051e26d
add esp, 8
lea edx, [ebp - 0x20c]
push edx
lea ecx, [ebp - 0x4220]
call fcn.00464b60
lea eax, [ebp - 0x4220]
push eax
mov ecx, edi
call fcn.0047fe10
lea edx, [ebp - 0x420c]
lea ecx, [edx + 2]
lea ebx, [ebx]
mov si, word [edx]
add edx, 2
test si, si
jne 0x492640
sub edx, ecx
sar edx, 1
push edx
lea ecx, [ebp - 0x420c]
push ecx
mov ecx, eax
call fcn.00449eb0
mov eax, dword [ebp - 0x4220]
jmp 0x4926e9
cmp eax, 2
jne 0x492705
mov ecx, dword [ebp - 0x4218]
lea eax, [ebp - 0x20c]
shr ecx, 1
xor edx, edx
push 0x104
push eax
mov word [ebp + ecx*2 - 0x420c], dx
call fcn.0051e26d
add esp, 8
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x4210]
call fcn.00464b60
lea edx, [ebp - 0x4210]
push edx
lea ecx, [ebp - 0x424c]
call fcn.0047fe10
lea edx, [ebp - 0x420c]
lea ecx, [edx + 2]
mov si, word [edx]
add edx, 2
test si, si
jne 0x4926c5
sub edx, ecx
sar edx, 1
push edx
lea ecx, [ebp - 0x420c]
push ecx
mov ecx, eax
call fcn.00449eb0
mov eax, dword [ebp - 0x4210]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x492705
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x4218]
push ecx
lea edx, [ebp - 0x420c]
push edx
lea eax, [ebp - 0x422c]
push eax
mov eax, dword [ebp - 0x421c]
push 0
lea ecx, [ebp - 0x4228]
push ecx
lea edx, [ebp - 0x20c]
push edx
inc ebx
push ebx
push eax
mov dword [ebp - 0x4228], 0x104
mov dword [ebp - 0x4218], 0x3ffe
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x4925e0
mov ecx, dword [ebp - 0x421c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x4234]
mov ebx, dword [edx]
mov esi, dword [ebp - 0x424c]
mov dword [ebp - 0x4224], esi
mov dword [ebp - 0x4220], ebx
lea esp, [esp]
mov eax, dword [ebp - 0x4234]
mov dword [ebp - 0x4258], eax
test esi, esi
je 0x492798
cmp esi, dword [ebp - 0x424c]
je 0x49279d
call fcn.0051f89a
cmp ebx, dword [ebp - 0x4258]
je 0x4928bb
mov edx, dword [0x599458]
mov eax, dword [edx + 0xc]
mov ecx, 0x599458
call eax
add eax, 0x10
mov dword [ebp - 0x4210], eax
test esi, esi
jne 0x492869
call fcn.0051f89a
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x4927db
call fcn.0051f89a
mov ecx, dword [ebp - 0x4250]
push edi
push ecx
lea edx, [ebp - 0x4210]
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.00461a80
add esp, 0x10
test esi, esi
jne 0x492870
call fcn.0051f89a
cmp ebx, dword [esi + 0x18]
jne 0x492809
call fcn.0051f89a
add ebx, 0xc
push ebx
mov ecx, edi
call fcn.0047fe10
mov ebx, eax
mov eax, dword [ebp - 0x4210]
mov esi, dword [ebx]
lea edi, [eax - 0x10]
sub esi, 0x10
cmp edi, esi
je 0x492880
cmp dword [esi + 0xc], 0
jl 0x492874
mov ecx, dword [edi]
cmp ecx, dword [esi]
jne 0x492874
push edi
call fcn.0041eae0
mov dword [ebp - 0x4210], eax
add esp, 4
lea eax, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x49285c
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [ebp - 0x4210]
add eax, 0x10
mov dword [ebx], eax
jmp 0x492880
mov eax, dword [esi]
jmp 0x4927d1
mov esi, dword [esi]
jmp 0x4927ff
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.00449eb0
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x492899
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea ecx, [ebp - 0x4224]
call fcn.00426340
mov ebx, dword [ebp - 0x4220]
mov esi, dword [ebp - 0x4224]
mov edi, dword [ebp - 0x4254]
jmp 0x492780
mov ecx, dword [ebp - 0x4234]
mov eax, dword [ecx]
push ecx
mov ecx, dword [ebp - 0x424c]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x425c]
push ecx
lea ecx, [ebp - 0x424c]
call fcn.0047fbd0
mov edx, dword [ebp - 0x4234]
push edx
call fcn.0051d230
xor eax, eax
mov dword [ebp - 0x4234], eax
mov dword [ebp - 0x4230], eax
mov eax, dword [ebp - 0x424c]
push eax
call fcn.0051d230
mov eax, dword [ebp - 0x4214]
add esp, 8
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49292a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0051d23b
mov esp, ebp
pop ebp
ret 0x10