Function at 0x409960
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x10], 0x2d23be03
mov edx, 0x2d6c7837
mov eax, dword [ebp - 0x10]
sub edx, eax
push 0x20019
push str.SOFTWAREUnchecky
mov dword [ebp - 0xc], ecx
mov edi, dword [edx]
mov dword [ecx + 0x3c], 0
add edi, 0x11d5649c
push SysReAllocString
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
call fcn.00409cd0
push 0x20019
test eax, eax
mov dword [ebp - 0x58], 0
push str.SOFTWAREUnchecky
sete bl
mov dword [ebp - 0x54], 0
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x58]
mov byte [ebp - 2], bl
mov dword [ebp - 0x50], 0
call fcn.00409cd0
mov esi, dword [ebp - 0x4c]
test eax, eax
mov edx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, 0x46cc2d66
sete byte [ebp - 1]
test bl, bl
mov ebx, dword [ebp - 0x58]
je 0x409a3a
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [edi + edi]
push 0
sub ecx, eax
push ecx
push esi
call edx
test eax, eax
jne 0x409a2f
cmp dword [ebp - 0x18], 4
je 0x409a68
mov edx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, 0x46cc2d66
cmp byte [ebp - 1], 0
je 0x409a75
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [edi + edi]
push 0
sub ecx, eax
push ecx
push ebx
call edx
test eax, eax
jne 0x409a75
cmp dword [ebp - 0x20], 4
jne 0x409a75
cmp dword [ebp - 8], 0
mov ecx, dword [ebp - 0xc]
sete al
mov byte [ecx + 0x3c], al
cmp byte [ebp - 2], 0
mov ecx, 0x46cc2d82
je 0x409ab5
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + edi]
push 0
sub ecx, eax
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
test eax, eax
jne 0x409aae
cmp dword [ebp - 0x28], 4
je 0x409ae9
mov ecx, 0x46cc2d82
jmp 0x409abb
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp byte [ebp - 1], 0
je 0x409af6
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + edi]
push 0
sub ecx, eax
push ecx
push ebx
call esi
test eax, eax
jne 0x409af6
cmp dword [ebp - 0x30], 4
jne 0x409af6
cmp dword [ebp - 8], 0
mov ecx, dword [ebp - 0xc]
setne al
mov byte [ecx + 0x3d], al
cmp byte [ebp - 2], 0
mov esi, 0x46cc2db2
je 0x409b31
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 4
push eax
lea eax, [ebp - 8]
mov ecx, esi
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [edi + edi]
push 0
sub ecx, eax
push ecx
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409b31
cmp dword [ebp - 0x38], 4
je 0x409b63
cmp byte [ebp - 1], 0
je 0x409b71
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [edi + edi]
push 0
sub esi, eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409b71
cmp dword [ebp - 0x40], 4
jne 0x409b71
mov eax, dword [ebp - 8]
test eax, eax
je 0x409b71
mov ecx, dword [ebp - 0xc]
mov word [ecx + 0x3e], ax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x409b7e
push ebx
call esi
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x409b88
push eax
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret