Function at 0x490730
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4e8f38
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x47c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x48c]
xor eax, eax
mov ebx, dword [esp + 0x490]
mov edi, dword [esp + 0x494]
mov dword [esp + 0x18], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
mov dword [esp + 0x484], 1
lea ecx, [esp + 0x24]
push 9
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
push str.Software_
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], eax
mov word [esp + 0x2c], ax
call fcn.00403120
mov byte [esp + 0x484], 2
lea ecx, [esp + 0x24]
push 0xffffffffffffffff
push 0
push ebx
call fcn.004033c0
cmp dword [esp + 0x38], 8
lea ecx, [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
je 0x490875
push 0x15
push str.SoftwareWow6432Node_
lea ecx, [esp + 0x2c]
call fcn.00403120
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [esp + 0x30]
call fcn.004033c0
cmp dword [esp + 0x38], 8
lea ecx, [esp + 0x20]
push ecx
push 0x20019
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
jne 0x490977
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x490977
xor eax, eax
mov dword [esp + 0x58], 1
push 0x410
push eax
mov word [esp + 0x64], ax
xor bl, bl
lea eax, [esp + 0x66]
mov dword [esp + 0x5c], 0
push eax
call fcn.004cb9a0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x4908b7
mov eax, dword [edi]
jmp 0x4908b9
mov eax, edi
lea ecx, [esp + 0x54]
push ecx
push 0
lea ecx, [esp + 0x60]
push ecx
push 0
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call ebp
test eax, eax
jne 0x49090c
cmp dword [esp + 0x54], 0x208
jae 0x49090c
cmp dword [edi + 0x14], 8
jb 0x4908e7
mov edi, dword [edi]
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x60]
push eax
push 0
push edi
push dword [esp + 0x34]
call ebp
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x49093b
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [esp + 0x3c]
push eax
call fcn.00402d00
jmp 0x490996
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x40]
call fcn.00402ac0
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x49091a
cmp dword [esp + 0x50], 8
lea eax, [esp + 0x3c]
cmovae eax, dword [esp + 0x3c]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x49091a
push 0x4fdfe8
lea ecx, [esp + 0x40]
call fcn.00479c00
jmp 0x49091a
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [esp + 0x3c]
push eax
call fcn.00402d00
mov dword [esp + 0x18], 1
mov byte [esp + 0x484], 1
cmp dword [esp + 0x38], 8
jb 0x4909b9
push dword [esp + 0x24]
call fcn.004c515a
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], eax
mov word [esp + 0x24], ax
mov byte [esp + 0x484], al
cmp dword [esp + 0x50], 8
jb 0x4909e6
push dword [esp + 0x3c]
call fcn.004c515a
add esp, 4
xor eax, eax
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], eax
mov word [esp + 0x3c], ax
mov eax, esi
mov ecx, dword [esp + 0x47c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x460]
xor ecx, esp
call fcn.004c515f
add esp, 0x474
ret 0xc