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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439151
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x468080]
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.0040b88a
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 0x409bbd
lea ecx, [ebp - 0x10c]
mov edx, eax
push ecx
push 0x20019
push ecx
mov ecx, Ordinal_1
call fcn.0040c1f1
test eax, eax
jne 0x409ba4
lea eax, [ebp - 0x104]
mov edx, str.CurVer
push eax
push 0x20019
push ecx
mov ecx, dword [ebp - 0x10c]
call fcn.0040c1f1
test eax, eax
jne 0x409ba4
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 0x409ba4
lea eax, [ebp - 0xfc]
push eax
push 0x20019
push ecx
lea edx, [ebp - 0xe0]
mov ecx, Ordinal_1
call fcn.0040c1f1
test eax, eax
jne 0x409ba4
lea eax, [ebp - 0x100]
mov edx, str.shellopen
push eax
push 0x20019
push ecx
mov ecx, dword [ebp - 0xfc]
call fcn.0040c1f1
test eax, eax
jne 0x409ba4
lea eax, [ebp - 0x108]
mov edx, str.shell_new
push eax
push 0x20019
push ecx
mov ecx, dword [ebp - 0xfc]
call fcn.0040c1f1
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 0x409964
cmp dword [ebp - 0x120], 4
je 0x409b26
push 1
push edi
lea edx, [ebp - 0xf4]
mov ecx, reloc.AppVIsvSubsystems32.dll_Ordinal_1
call fcn.004061ad
test eax, eax
je 0x409b37
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.0040c24b
test eax, eax
jne 0x409b37
mov ecx, dword [ebp - 0x114]
call fcn.0040b9b7
add eax, eax
push eax
push dword [ebp - 0x114]
push 1
push 0
push 0x43c79c
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, 0x43ca34
push eax
sub esp, 0x14
call fcn.0040c24b
test eax, eax
jne 0x409b37
mov ecx, dword [ebp - 0xe4]
mov edx, 0x43c308
call fcn.0040956d
mov ecx, dword [ebp - 0xe4]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xe8]
mov edx, 0x43c308
push eax
sub esp, 0x14
call fcn.0040c24b
test eax, eax
jne 0x409b37
test bl, bl
je 0x409a72
mov edx, dword [0x43cdac]
mov ecx, dword [ebp - 0xe4]
call fcn.0040956d
mov edx, dword [0x43cdac]
lea eax, [ebp - 0x110]
mov ecx, dword [ebp - 0xe4]
push eax
lea eax, [ebp - 0xf0]
push eax
sub esp, 0x14
call fcn.0040c24b
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
mov edx, dword [ebp - 0xe8]
mov ecx, dword [ebp - 0x100]
push 0
call fcn.004091be
test bl, bl
je 0x409a9c
mov edx, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0x108]
push 0
call fcn.004091be
mov edx, dword [ebp - 0xe8]
mov ecx, reloc.AppVIsvSubsystems32.dll_Ordinal_1
push edi
call fcn.004078b9
test eax, eax
je 0x409b37
cmp dword [ebp - 0xf0], 0
je 0x409ac6
push dword [ebp - 0xf0]
call esi
and dword [ebp - 0xf0], 0
cmp dword [ebp - 0xe8], 0
je 0x409ade
push dword [ebp - 0xe8]
call esi
and dword [ebp - 0xe8], 0
cmp dword [ebp - 0xe4], 0
je 0x409af6
push dword [ebp - 0xe4]
call esi
and dword [ebp - 0xe4], 0
cmp dword [ebp - 0xec], 0
je 0x409b0e
push dword [ebp - 0xec]
call esi
and dword [ebp - 0xec], 0
cmp dword [ebp - 0xf4], 0
je 0x409b26
push dword [ebp - 0xf4]
call esi
inc edi
cmp edi, 1
jle 0x409930
xor ebx, ebx
inc ebx
xor edi, edi
jmp 0x409ba4
cmp dword [ebp - 0xf0], 0
je 0x409b48
push dword [ebp - 0xf0]
call esi
xor edi, edi
mov dword [ebp - 0xf0], edi
cmp dword [ebp - 0xe8], edi
je 0x409b60
push dword [ebp - 0xe8]
call esi
mov dword [ebp - 0xe8], edi
cmp dword [ebp - 0xe4], edi
je 0x409b76
push dword [ebp - 0xe4]
call esi
mov dword [ebp - 0xe4], edi
cmp dword [ebp - 0xec], edi
je 0x409b8c
push dword [ebp - 0xec]
call esi
mov dword [ebp - 0xec], edi
cmp dword [ebp - 0xf4], edi
je 0x409ba2
push dword [ebp - 0xf4]
call esi
mov ebx, edi
push dword [ebp - 0x114]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, dword [ebp - 0x108]
pop ecx
mov ecx, dword [ebp - 0x100]
test edx, edx
je 0x409bca
push edx
call esi
mov ecx, dword [ebp - 0x100]
mov dword [ebp - 0x108], edi
test ecx, ecx
je 0x409bd7
push ecx
call esi
cmp dword [ebp - 0xfc], 0
mov dword [ebp - 0x100], edi
je 0x409bee
push dword [ebp - 0xfc]
call esi
cmp dword [ebp - 0x104], 0
mov dword [ebp - 0xfc], edi
je 0x409c05
push dword [ebp - 0x104]
call esi
cmp dword [ebp - 0x10c], 0
mov dword [ebp - 0x104], edi
je 0x409c1c
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.004370bb
leave
ret