Function at 0x409251
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x43c064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
push edi
mov dword [ebp - 0x110], eax
call fcn.0040b1a4
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x104], eax
mov ecx, edi
mov dword [ebp - 0xfc], edi
mov ebx, edi
mov dword [ebp - 0xf8], edi
mov dword [ebp - 0xec], edi
mov dword [ebp - 0xf4], ecx
mov dword [ebp - 0xf0], edi
mov dword [ebp - 0x108], 0xc8
test eax, eax
je 0x409642
lea ecx, [ebp - 0xfc]
mov edx, eax
push ecx
push 0x20019
push ecx
mov ecx, Ordinal_1
call fcn.0040bac7
test eax, eax
jne 0x409620
lea eax, [ebp - 0xf8]
mov edx, str.CurVer
push eax
push 0x20019
push ecx
mov ecx, dword [ebp - 0xfc]
call fcn.0040bac7
test eax, eax
jne 0x409620
movzx eax, byte [ebp - 0xd0]
xor ecx, ecx
cmp dword [ebp - 0x10c], 1
cmove eax, ecx
mov byte [ebp - 0xd0], al
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x10c]
push eax
push edi
push edi
push dword [ebp - 0xf8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409620
lea eax, [ebp - 0xec]
push eax
push 0x20019
push ecx
lea edx, [ebp - 0xd0]
mov ecx, Ordinal_1
call fcn.0040bac7
test eax, eax
jne 0x409620
lea eax, [ebp - 0xf4]
mov edx, str.shellopen
push eax
push 0x20019
push ecx
mov ecx, dword [ebp - 0xec]
call fcn.0040bac7
test eax, eax
jne 0x409620
lea eax, [ebp - 0xf0]
mov edx, str.shell_new
push eax
push 0x20019
push ecx
mov ecx, dword [ebp - 0xec]
call fcn.0040bac7
test eax, eax
setne bl
and dword [ebp - 0xe4], 0
and dword [ebp - 0xdc], 0
and dword [ebp - 0xd4], 0
and dword [ebp - 0xd8], 0
and dword [ebp - 0xe0], 0
test edi, edi
je 0x4093e0
cmp dword [ebp - 0x110], 4
je 0x4095a2
push 1
push edi
lea edx, [ebp - 0xe4]
mov ecx, reloc.AppVIsvSubsystems32.dll_Ordinal_1
call fcn.00405e3c
test eax, eax
je 0x4095b3
mov ecx, dword [ebp - 0xe4]
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0xdc]
mov edx, str.Default_Editor
push eax
sub esp, 0x14
call fcn.0040bb2f
test eax, eax
jne 0x4095b3
mov ecx, dword [ebp - 0x104]
call fcn.0040b2d4
add eax, eax
push eax
push dword [ebp - 0x104]
push 1
push 0
push 0x41b6d8
push dword [ebp - 0xdc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0xdc]
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0xd4]
mov edx, 0x41b96c
push eax
sub esp, 0x14
call fcn.0040bb2f
test eax, eax
jne 0x4095b3
mov ecx, dword [ebp - 0xd4]
mov edx, 0x41b290
call fcn.0040902d
mov ecx, dword [ebp - 0xd4]
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0xd8]
mov edx, 0x41b290
push eax
sub esp, 0x14
call fcn.0040bb2f
test eax, eax
jne 0x4095b3
test bl, bl
je 0x4094ee
mov edx, dword [0x41bd5c]
mov ecx, dword [ebp - 0xd4]
call fcn.0040902d
mov edx, dword [0x41bd5c]
lea eax, [ebp - 0x100]
mov ecx, dword [ebp - 0xd4]
push eax
lea eax, [ebp - 0xe0]
push eax
sub esp, 0x14
call fcn.0040bb2f
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
mov edx, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xf4]
push 0
call fcn.00408c7b
test bl, bl
je 0x409518
mov edx, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0xf0]
push 0
call fcn.00408c7b
mov edx, dword [ebp - 0xd8]
mov ecx, reloc.AppVIsvSubsystems32.dll_Ordinal_1
push edi
call fcn.004073e3
test eax, eax
je 0x4095b3
cmp dword [ebp - 0xe0], 0
je 0x409542
push dword [ebp - 0xe0]
call esi
and dword [ebp - 0xe0], 0
cmp dword [ebp - 0xd8], 0
je 0x40955a
push dword [ebp - 0xd8]
call esi
and dword [ebp - 0xd8], 0
cmp dword [ebp - 0xd4], 0
je 0x409572
push dword [ebp - 0xd4]
call esi
and dword [ebp - 0xd4], 0
cmp dword [ebp - 0xdc], 0
je 0x40958a
push dword [ebp - 0xdc]
call esi
and dword [ebp - 0xdc], 0
cmp dword [ebp - 0xe4], 0
je 0x4095a2
push dword [ebp - 0xe4]
call esi
inc edi
cmp edi, 1
jle 0x4093ac
xor ebx, ebx
inc ebx
xor edi, edi
jmp 0x409620
cmp dword [ebp - 0xe0], 0
je 0x4095c4
push dword [ebp - 0xe0]
call esi
xor edi, edi
mov dword [ebp - 0xe0], edi
cmp dword [ebp - 0xd8], edi
je 0x4095dc
push dword [ebp - 0xd8]
call esi
mov dword [ebp - 0xd8], edi
cmp dword [ebp - 0xd4], edi
je 0x4095f2
push dword [ebp - 0xd4]
call esi
mov dword [ebp - 0xd4], edi
cmp dword [ebp - 0xdc], edi
je 0x409608
push dword [ebp - 0xdc]
call esi
mov dword [ebp - 0xdc], edi
cmp dword [ebp - 0xe4], edi
je 0x40961e
push dword [ebp - 0xe4]
call esi
mov ebx, edi
mov ecx, dword [ebp - 0x104]
call fcn.00401e39
cmp dword [ebp - 0xf0], 0
je 0x40963c
push dword [ebp - 0xf0]
call esi
mov ecx, dword [ebp - 0xf4]
mov dword [ebp - 0xf0], edi
test ecx, ecx
je 0x40964f
push ecx
call esi
cmp dword [ebp - 0xec], 0
mov dword [ebp - 0xf4], edi
je 0x409666
push dword [ebp - 0xec]
call esi
cmp dword [ebp - 0xf8], 0
mov dword [ebp - 0xec], edi
je 0x40967d
push dword [ebp - 0xf8]
call esi
cmp dword [ebp - 0xfc], 0
mov dword [ebp - 0xf8], edi
je 0x409694
push dword [ebp - 0xfc]
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416bd0
mov esp, ebp
pop ebp
ret