Function at 0x491db0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4250
call fcn.0051d7f0
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x18]
mov ecx, dword [eax + 4]
push ecx
mov ecx, edi
mov dword [ebp - 0x424c], edi
call fcn.0046a9e0
mov eax, dword [edi + 0x18]
lea edx, [ebp - 0x4218]
push edx
mov dword [eax + 4], eax
mov eax, dword [edi + 0x18]
push 0x20019
xor ebx, ebx
push ebx
mov dword [edi + 0x1c], ebx
mov dword [eax], eax
mov eax, dword [edi + 0x18]
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [eax + 8], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x491e2b
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret 4
push 4
call fcn.0051d4d3
add esp, 4
cmp eax, ebx
je 0x491e49
lea ecx, [ebp - 0x4248]
mov dword [eax], ecx
mov dword [ebp - 0x4248], eax
jmp 0x491e4f
mov dword [ebp - 0x4248], ebx
push esi
lea ecx, [ebp - 0x4248]
call fcn.004431a0
mov dword [ebp - 0x4230], eax
mov byte [eax + 0x15], 1
mov eax, dword [ebp - 0x4230]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x4230]
mov dword [eax], eax
mov eax, dword [ebp - 0x4230]
mov dword [eax + 8], eax
lea edx, [ebp - 0x4214]
push edx
lea eax, [ebp - 0x420c]
push eax
lea ecx, [ebp - 0x4228]
push ecx
mov ecx, dword [ebp - 0x4218]
push ebx
lea edx, [ebp - 0x421c]
push edx
lea eax, [ebp - 0x20c]
push eax
push ebx
push ecx
mov dword [ebp - 0x422c], ebx
mov dword [ebp - 0x421c], 0x104
mov dword [ebp - 0x4214], 0x3ffe
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x492045
mov eax, dword [ebp - 0x4228]
cmp eax, 1
jne 0x491f59
mov edx, dword [ebp - 0x4214]
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 ecx, [ecx]
mov si, word [edx]
add edx, 2
test si, si
jne 0x491f30
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 0x491fd9
cmp eax, 2
jne 0x491ff5
mov ecx, dword [ebp - 0x4214]
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 - 0x4248]
call fcn.0047fe10
lea edx, [ebp - 0x420c]
lea ecx, [edx + 2]
mov si, word [edx]
add edx, 2
test si, si
jne 0x491fb5
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 0x491ff5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x4214]
push ecx
lea edx, [ebp - 0x420c]
push edx
lea eax, [ebp - 0x4228]
push eax
mov eax, dword [ebp - 0x4218]
push 0
lea ecx, [ebp - 0x421c]
push ecx
lea edx, [ebp - 0x20c]
push edx
inc ebx
push ebx
push eax
mov dword [ebp - 0x421c], 0x104
mov dword [ebp - 0x4214], 0x3ffe
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x491ed3
mov ecx, dword [ebp - 0x4218]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x4230]
mov edi, dword [edx]
mov esi, dword [ebp - 0x4248]
mov dword [ebp - 0x4224], esi
mov dword [ebp - 0x4220], edi
lea esp, [esp]
mov ebx, dword [ebp - 0x4230]
test esi, esi
je 0x492082
cmp esi, dword [ebp - 0x4248]
je 0x492087
call fcn.0051f89a
cmp edi, ebx
je 0x492199
mov eax, dword [0x599458]
mov edx, dword [eax + 0xc]
mov ecx, 0x599458
call edx
add eax, 0x10
mov dword [ebp - 0x4210], eax
test esi, esi
jne 0x49214d
call fcn.0051f89a
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x4920c0
call fcn.0051f89a
mov ebx, dword [ebp - 0x424c]
push ebx
lea eax, [ebp - 0x4210]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00461670
add esp, 0xc
test esi, esi
jne 0x492154
call fcn.0051f89a
cmp edi, dword [esi + 0x18]
jne 0x4920ed
call fcn.0051f89a
add edi, 0xc
push edi
mov ecx, ebx
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 0x492164
cmp dword [esi + 0xc], 0
jl 0x492158
mov edx, dword [edi]
cmp edx, dword [esi]
jne 0x492158
push edi
call fcn.0041eae0
mov dword [ebp - 0x4210], eax
add esp, 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x492140
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x4210]
add ecx, 0x10
mov dword [ebx], ecx
jmp 0x492164
mov eax, dword [esi]
jmp 0x4920b6
mov esi, dword [esi]
jmp 0x4920e3
mov edx, dword [eax - 0xc]
push edx
push eax
mov ecx, ebx
call fcn.00449eb0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49217d
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 edi, dword [ebp - 0x4220]
mov esi, dword [ebp - 0x4224]
jmp 0x492070
mov ecx, dword [ebp - 0x4230]
mov eax, dword [ecx]
push ecx
mov ecx, dword [ebp - 0x4248]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x4250]
push ecx
lea ecx, [ebp - 0x4248]
call fcn.0047fbd0
mov edx, dword [ebp - 0x4230]
push edx
call fcn.0051d230
xor eax, eax
mov dword [ebp - 0x4230], eax
mov dword [ebp - 0x422c], eax
mov eax, dword [ebp - 0x4248]
push eax
call fcn.0051d230
mov ecx, dword [ebp - 4]
add esp, 8
pop esi
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0051d23b
mov esp, ebp
pop ebp
ret 4