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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f93b
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x45b070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x120], eax
call fcn.0040b6ff
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x114], eax
mov ecx, edi
mov dword [ebp - 0x10c], edi
mov ebx, edi
mov dword [ebp - 0x108], edi
mov dword [ebp - 0xfc], edi
mov dword [ebp - 0x104], ecx
mov dword [ebp - 0x100], edi
mov dword [ebp - 0x118], 0xc8
test eax, eax
je 0x409bc4
lea ecx, [ebp - 0x10c]
mov edx, eax
push ecx
push 0x20019
push ecx
mov ecx, Ordinal_1
call fcn.0040c046
test eax, eax
jne 0x409ba2
lea eax, [ebp - 0x108]
mov edx, str.CurVer
push eax
push 0x20019
push ecx
mov ecx, dword [ebp - 0x10c]
call fcn.0040c046
test eax, eax
jne 0x409ba2
movzx eax, byte [ebp - 0xe0]
xor ecx, ecx
cmp dword [ebp - 0x11c], 1
cmove eax, ecx
mov byte [ebp - 0xe0], al
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x11c]
push eax
push edi
push edi
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409ba2
lea eax, [ebp - 0xfc]
push eax
push 0x20019
push ecx
lea edx, [ebp - 0xe0]
mov ecx, Ordinal_1
call fcn.0040c046
test eax, eax
jne 0x409ba2
lea eax, [ebp - 0x104]
mov edx, str.shellopen
push eax
push 0x20019
push ecx
mov ecx, dword [ebp - 0xfc]
call fcn.0040c046
test eax, eax
jne 0x409ba2
lea eax, [ebp - 0x100]
mov edx, str.shell_new
push eax
push 0x20019
push ecx
mov ecx, dword [ebp - 0xfc]
call fcn.0040c046
test eax, eax
setne bl
and dword [ebp - 0xf4], 0
and dword [ebp - 0xec], 0
and dword [ebp - 0xe4], 0
and dword [ebp - 0xe8], 0
and dword [ebp - 0xf0], 0
test edi, edi
je 0x409962
cmp dword [ebp - 0x120], 4
je 0x409b24
push 1
push edi
lea edx, [ebp - 0xf4]
mov ecx, reloc.AppVIsvSubsystems32.dll_Ordinal_1
call fcn.0040638e
test eax, eax
je 0x409b35
mov ecx, dword [ebp - 0xf4]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xec]
mov edx, str.Default_Editor
push eax
sub esp, 0x14
call fcn.0040c0a2
test eax, eax
jne 0x409b35
mov ecx, dword [ebp - 0x114]
call fcn.0040b82d
add eax, eax
push eax
push dword [ebp - 0x114]
push 1
push 0
push 0x433858
push dword [ebp - 0xec]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0xec]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xe4]
mov edx, 0x433aec
push eax
sub esp, 0x14
call fcn.0040c0a2
test eax, eax
jne 0x409b35
mov ecx, dword [ebp - 0xe4]
mov edx, 0x4333f8
call fcn.0040957f
mov ecx, dword [ebp - 0xe4]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xe8]
mov edx, 0x4333f8
push eax
sub esp, 0x14
call fcn.0040c0a2
test eax, eax
jne 0x409b35
test bl, bl
je 0x409a70
mov edx, dword [0x433e5c]
mov ecx, dword [ebp - 0xe4]
call fcn.0040957f
mov edx, dword [0x433e5c]
lea eax, [ebp - 0x110]
mov ecx, dword [ebp - 0xe4]
push eax
lea eax, [ebp - 0xf0]
push eax
sub esp, 0x14
call fcn.0040c0a2
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
mov edx, dword [ebp - 0xe8]
mov ecx, dword [ebp - 0x104]
push 0
call fcn.004091c6
test bl, bl
je 0x409a9a
mov edx, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0x100]
push 0
call fcn.004091c6
mov edx, dword [ebp - 0xe8]
mov ecx, reloc.AppVIsvSubsystems32.dll_Ordinal_1
push edi
call fcn.0040792a
test eax, eax
je 0x409b35
cmp dword [ebp - 0xf0], 0
je 0x409ac4
push dword [ebp - 0xf0]
call esi
and dword [ebp - 0xf0], 0
cmp dword [ebp - 0xe8], 0
je 0x409adc
push dword [ebp - 0xe8]
call esi
and dword [ebp - 0xe8], 0
cmp dword [ebp - 0xe4], 0
je 0x409af4
push dword [ebp - 0xe4]
call esi
and dword [ebp - 0xe4], 0
cmp dword [ebp - 0xec], 0
je 0x409b0c
push dword [ebp - 0xec]
call esi
and dword [ebp - 0xec], 0
cmp dword [ebp - 0xf4], 0
je 0x409b24
push dword [ebp - 0xf4]
call esi
inc edi
cmp edi, 1
jle 0x40992e
xor ebx, ebx
inc ebx
xor edi, edi
jmp 0x409ba2
cmp dword [ebp - 0xf0], 0
je 0x409b46
push dword [ebp - 0xf0]
call esi
xor edi, edi
mov dword [ebp - 0xf0], edi
cmp dword [ebp - 0xe8], edi
je 0x409b5e
push dword [ebp - 0xe8]
call esi
mov dword [ebp - 0xe8], edi
cmp dword [ebp - 0xe4], edi
je 0x409b74
push dword [ebp - 0xe4]
call esi
mov dword [ebp - 0xe4], edi
cmp dword [ebp - 0xec], edi
je 0x409b8a
push dword [ebp - 0xec]
call esi
mov dword [ebp - 0xec], edi
cmp dword [ebp - 0xf4], edi
je 0x409ba0
push dword [ebp - 0xf4]
call esi
mov ebx, edi
mov ecx, dword [ebp - 0x114]
call fcn.00402061
cmp dword [ebp - 0x100], 0
je 0x409bbe
push dword [ebp - 0x100]
call esi
mov ecx, dword [ebp - 0x104]
mov dword [ebp - 0x100], edi
test ecx, ecx
je 0x409bd1
push ecx
call esi
cmp dword [ebp - 0xfc], 0
mov dword [ebp - 0x104], edi
je 0x409be8
push dword [ebp - 0xfc]
call esi
cmp dword [ebp - 0x108], 0
mov dword [ebp - 0xfc], edi
je 0x409bff
push dword [ebp - 0x108]
call esi
cmp dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], edi
je 0x409c16
push dword [ebp - 0x10c]
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042d667
leave
ret