Function at 0x4944b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a076d
mov eax, dword fs:[0]
push eax
mov eax, 0x4264
call fcn.0055f2e0
mov eax, dword [0x5e6468]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [edi + 0x18]
mov esi, edx
mov edx, dword [ecx + 4]
push edx
mov ecx, edi
mov dword [ebp - 0x4248], eax
call fcn.00496bf0
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 - 0x4220]
mov dword [eax + 8], eax
call fcn.00426f30
lea eax, [ebp - 0x4220]
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00495700
push esi
mov ecx, eax
call fcn.004275f0
or esi, 0xffffffff
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x4220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x494568
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x5f22b0]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f22b0
call eax
add eax, 0x10
mov dword [ebp - 0x4220], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebx]
push ecx
lea edx, [ebp - 0x4220]
push str._sEnvironment
push edx
call fcn.0042fa10
mov ebx, dword [ebp - 0x4220]
add esp, 0xc
lea eax, [ebp - 0x4234]
push eax
push 0x20019
push 0
push ebx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4945d8
lea eax, [ebx - 0x10]
mov dword [ebp - 4], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jmp 0x494996
lea ecx, [ebp - 0x4219]
push ecx
lea edx, [ebp - 0x4219]
push edx
lea ecx, [ebp - 0x4268]
call fcn.004968e0
lea eax, [ebp - 0x4228]
push eax
lea ecx, [ebp - 0x4218]
push ecx
lea edx, [ebp - 0x4238]
push edx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x4230]
push eax
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x4234]
push ecx
push ebx
push edx
mov dword [ebp - 0x4230], 0x104
mov dword [ebp - 0x4228], 0x3ffe
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4947e4
jmp 0x494650
mov eax, dword [ebp - 0x4238]
cmp eax, 1
jne 0x4946ef
mov eax, dword [ebp - 0x4228]
lea edx, [ebp - 0x218]
shr eax, 1
xor ecx, ecx
push 0x104
push edx
mov word [ebp + eax*2 - 0x4218], cx
call fcn.00564615
add esp, 8
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x422c]
call fcn.00426f30
lea ecx, [ebp - 0x422c]
push ecx
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00495700
lea edx, [ebp - 0x4218]
lea ecx, [edx + 2]
mov si, word [edx]
add edx, 2
test si, si
jne 0x4946b2
sub edx, ecx
sar edx, 1
push edx
lea edx, [ebp - 0x4218]
push edx
mov ecx, eax
call fcn.00427a50
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x422c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x494788
cmp eax, 2
jne 0x494794
mov ecx, dword [ebp - 0x4228]
lea eax, [ebp - 0x218]
shr ecx, 1
xor edx, edx
push 0x104
push eax
mov word [ebp + ecx*2 - 0x4218], dx
call fcn.00564615
add esp, 8
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x4224]
call fcn.00426f30
lea edx, [ebp - 0x4224]
push edx
lea ecx, [ebp - 0x4268]
mov byte [ebp - 4], 4
call fcn.00495700
lea edx, [ebp - 0x4218]
lea ecx, [edx + 2]
nop
mov si, word [edx]
add edx, 2
test si, si
jne 0x494750
sub edx, ecx
sar edx, 1
push edx
lea ecx, [ebp - 0x4218]
push ecx
mov ecx, eax
call fcn.00427a50
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x4224]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x494794
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x4228]
push ecx
lea edx, [ebp - 0x4218]
push edx
lea eax, [ebp - 0x4238]
push eax
mov eax, dword [ebp - 0x4234]
push 0
lea ecx, [ebp - 0x4230]
push ecx
lea edx, [ebp - 0x218]
push edx
inc ebx
push ebx
push eax
mov dword [ebp - 0x4230], 0x104
mov dword [ebp - 0x4228], 0x3ffe
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x494650
mov ecx, dword [ebp - 0x4234]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x4250]
mov ebx, dword [edx]
mov esi, dword [ebp - 0x4268]
mov dword [ebp - 0x4240], esi
mov dword [ebp - 0x423c], ebx
jmp 0x494810
mov eax, dword [ebp - 0x4250]
mov dword [ebp - 0x426c], eax
test esi, esi
je 0x494828
cmp esi, dword [ebp - 0x4268]
je 0x49482d
call fcn.0055e4b6
cmp ebx, dword [ebp - 0x426c]
je 0x49495b
mov edx, dword [0x5f22b0]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f22b0
call eax
add eax, 0x10
mov dword [ebp - 0x4224], eax
mov byte [ebp - 4], 5
test esi, esi
jne 0x49490b
call fcn.0055e4b6
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x49486f
call fcn.0055e4b6
mov ecx, dword [ebp - 0x4248]
push ecx
lea edx, [ebp - 0x4224]
push edx
lea edx, [ebx + 0x10]
mov ecx, edi
call fcn.004912a0
add esp, 8
test esi, esi
jne 0x494912
call fcn.0055e4b6
cmp ebx, dword [esi + 0x18]
jne 0x4948a1
call fcn.0055e4b6
lea eax, [ebx + 0xc]
push eax
mov ecx, edi
call fcn.00495700
mov ecx, dword [ebp - 0x4224]
mov esi, dword [eax]
lea ebx, [ecx - 0x10]
sub esi, 0x10
mov dword [ebp - 0x4244], eax
cmp ebx, esi
je 0x494922
cmp dword [esi + 0xc], 0
jl 0x494916
mov edx, dword [ebx]
cmp edx, dword [esi]
jne 0x494916
push ebx
call fcn.00427bb0
mov dword [ebp - 0x422c], eax
add esp, 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4948f8
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x422c]
mov edx, dword [ebp - 0x4244]
add ecx, 0x10
mov dword [edx], ecx
jmp 0x494922
mov eax, dword [esi]
jmp 0x494865
mov esi, dword [esi]
jmp 0x494897
mov edx, dword [ecx - 0xc]
push edx
push ecx
mov ecx, eax
call fcn.00427a50
mov byte [ebp - 4], 2
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49493f
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
lea ecx, [ebp - 0x4240]
call fcn.00497820
mov ebx, dword [ebp - 0x423c]
mov esi, dword [ebp - 0x4240]
jmp 0x494810
lea ecx, [ebp - 0x4268]
mov byte [ebp - 4], 6
call fcn.00496ca0
mov ecx, dword [ebp - 0x4268]
push ecx
call fcn.0055dfce
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4220]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4949a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055e289
mov esp, ebp
pop ebp
ret 4