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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4339c9
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x462074]
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.0040bc6c
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 edx, edi
mov dword [ebp - 0x104], edi
mov ebx, edi
mov dword [ebp - 0xfc], edi
mov dword [ebp - 0x100], ecx
mov dword [ebp - 0x108], edx
mov dword [ebp - 0x118], 0xc8
test eax, eax
je 0x409dba
lea ecx, [ebp - 0x10c]
mov edx, eax
push ecx
push 0x20019
push ecx
mov ecx, Ordinal_1
call fcn.0040c5c8
test eax, eax
jne 0x409da3
lea eax, [ebp - 0x104]
mov edx, str.CurVer
push eax
push 0x20019
push ecx
mov ecx, dword [ebp - 0x10c]
call fcn.0040c5c8
test eax, eax
jne 0x409da3
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 - 0x104]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409da3
lea eax, [ebp - 0xfc]
push eax
push 0x20019
push ecx
lea edx, [ebp - 0xe0]
mov ecx, Ordinal_1
call fcn.0040c5c8
test eax, eax
jne 0x409da3
lea eax, [ebp - 0x100]
mov edx, str.shellopen
push eax
push 0x20019
push ecx
mov ecx, dword [ebp - 0xfc]
call fcn.0040c5c8
test eax, eax
jne 0x409da3
lea eax, [ebp - 0x108]
mov edx, str.shell_new
push eax
push 0x20019
push ecx
mov ecx, dword [ebp - 0xfc]
call fcn.0040c5c8
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 0x409b63
cmp dword [ebp - 0x120], 4
je 0x409d25
push 1
push edi
lea edx, [ebp - 0xf4]
mov ecx, reloc.AppVIsvSubsystems32.dll_Ordinal_1
call fcn.00406277
test eax, eax
je 0x409d36
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.0040c622
test eax, eax
jne 0x409d36
mov ecx, dword [ebp - 0x114]
call fcn.0040bd8c
add eax, eax
push eax
push dword [ebp - 0x114]
push 1
push 0
push 0x43782c
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, 0x437ac4
push eax
sub esp, 0x14
call fcn.0040c622
test eax, eax
jne 0x409d36
mov ecx, dword [ebp - 0xe4]
mov edx, 0x437398
call fcn.0040976b
mov ecx, dword [ebp - 0xe4]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xe8]
mov edx, 0x437398
push eax
sub esp, 0x14
call fcn.0040c622
test eax, eax
jne 0x409d36
test bl, bl
je 0x409c71
mov edx, dword [0x437e2c]
mov ecx, dword [ebp - 0xe4]
call fcn.0040976b
mov edx, dword [0x437e2c]
lea eax, [ebp - 0x110]
mov ecx, dword [ebp - 0xe4]
push eax
lea eax, [ebp - 0xf0]
push eax
sub esp, 0x14
call fcn.0040c622
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
mov edx, dword [ebp - 0xe8]
mov ecx, dword [ebp - 0x100]
push 0
call fcn.004093b6
test bl, bl
je 0x409c9b
mov edx, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0x108]
push 0
call fcn.004093b6
mov edx, dword [ebp - 0xe8]
mov ecx, reloc.AppVIsvSubsystems32.dll_Ordinal_1
push edi
call fcn.00407a55
test eax, eax
je 0x409d36
cmp dword [ebp - 0xf0], 0
je 0x409cc5
push dword [ebp - 0xf0]
call esi
and dword [ebp - 0xf0], 0
cmp dword [ebp - 0xe8], 0
je 0x409cdd
push dword [ebp - 0xe8]
call esi
and dword [ebp - 0xe8], 0
cmp dword [ebp - 0xe4], 0
je 0x409cf5
push dword [ebp - 0xe4]
call esi
and dword [ebp - 0xe4], 0
cmp dword [ebp - 0xec], 0
je 0x409d0d
push dword [ebp - 0xec]
call esi
and dword [ebp - 0xec], 0
cmp dword [ebp - 0xf4], 0
je 0x409d25
push dword [ebp - 0xf4]
call esi
inc edi
cmp edi, 1
jle 0x409b2f
xor ebx, ebx
inc ebx
xor edi, edi
jmp 0x409da3
cmp dword [ebp - 0xf0], 0
je 0x409d47
push dword [ebp - 0xf0]
call esi
xor edi, edi
mov dword [ebp - 0xf0], edi
cmp dword [ebp - 0xe8], edi
je 0x409d5f
push dword [ebp - 0xe8]
call esi
mov dword [ebp - 0xe8], edi
cmp dword [ebp - 0xe4], edi
je 0x409d75
push dword [ebp - 0xe4]
call esi
mov dword [ebp - 0xe4], edi
cmp dword [ebp - 0xec], edi
je 0x409d8b
push dword [ebp - 0xec]
call esi
mov dword [ebp - 0xec], edi
cmp dword [ebp - 0xf4], edi
je 0x409da1
push dword [ebp - 0xf4]
call esi
mov ebx, edi
mov ecx, dword [ebp - 0x114]
call fcn.00401cf4
mov ecx, dword [ebp - 0x100]
mov edx, dword [ebp - 0x108]
test edx, edx
je 0x409dc7
push edx
call esi
mov ecx, dword [ebp - 0x100]
mov dword [ebp - 0x108], edi
test ecx, ecx
je 0x409dd4
push ecx
call esi
cmp dword [ebp - 0xfc], 0
mov dword [ebp - 0x100], edi
je 0x409deb
push dword [ebp - 0xfc]
call esi
cmp dword [ebp - 0x104], 0
mov dword [ebp - 0xfc], edi
je 0x409e02
push dword [ebp - 0x104]
call esi
cmp dword [ebp - 0x10c], 0
mov dword [ebp - 0x104], edi
je 0x409e19
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.0043182e
leave
ret