Function at 0x4099a3
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x209c]
mov eax, 0x211c
call fcn.00430920
mov eax, dword [0x44465c]
xor eax, ebp
mov dword [ebp + 0x2098], eax
mov eax, dword [ebp + 0x20a4]
push ebx
push esi
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x20a8]
push edi
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x80], eax
xor ebx, ebx
lea eax, [ebp + 0x98]
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], ebx
call fcn.0040987d
cmp eax, ebx
jl 0x409cc3
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x98]
push eax
call fcn.0040979d
pop ecx
pop ecx
test eax, eax
jne 0x409a19
mov eax, 0x80020009
jmp 0x409cc3
call fcn.00409858
lea eax, [ebp + 0x98]
mov ecx, esi
call fcn.0040987d
cmp eax, ebx
jl 0x409cc3
movzx eax, word [ebp - 0x70]
sub eax, 8
je 0x409c7c
sub eax, 9
je 0x409b7b
dec eax
dec eax
je 0x409b55
sub eax, 0x3ff5
jne 0x409cb2
lea eax, [ebp + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 2
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov dword [ebp - 0x6c], ebx
cmp ecx, ebx
ja 0x409a80
cmp eax, 0xffffffff
jbe 0x409a8a
push 0x80070216
call fcn.00401000
cmp eax, 0x100
jbe 0x409a9d
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.0040b1df
jmp 0x409aa3
lea eax, [ebp - 0x68]
mov dword [ebp - 0x6c], eax
mov edi, dword [ebp - 0x6c]
cmp edi, ebx
je 0x409b39
lea esi, [ebp + 0x98]
cmp word [ebp + 0x98], bx
je 0x409af4
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push esi
call ebx
movzx ecx, word [esi]
cmp ecx, 0x5c
jne 0x409ae3
cmp word [eax], 0x30
jne 0x409ae3
xor ecx, ecx
mov word [edi], cx
push eax
add edi, 2
call ebx
mov esi, eax
jmp 0x409aec
mov word [edi], cx
add edi, 2
add esi, 2
cmp word [esi], 0
jne 0x409ac3
xor ebx, ebx
xor eax, eax
mov word [edi], ax
mov word [edi + 2], ax
mov edi, dword [ebp - 0x6c]
mov dword [ebp - 0x70], edi
cmp edi, ebx
jne 0x409b0b
push 0xd
jmp 0x409b3b
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea edi, [edi + eax*2]
lea esi, [esi + eax*2]
cmp eax, 1
jne 0x409b0d
mov eax, dword [ebp - 0x74]
push esi
push dword [ebp - 0x70]
push 7
push ebx
push dword [ebp - 0x78]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x409b3c
push 0xe
pop esi
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x6c], eax
je 0x409ca5
lea eax, [ebp - 0x6c]
call fcn.0040b117
jmp 0x409ca5
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
lea eax, [ebp + 0x98]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x70], eax
push 4
lea eax, [ebp - 0x70]
push eax
push 4
jmp 0x409c97
lea eax, [ebp + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x70], eax
test al, 1
je 0x409b99
mov eax, 0x80004005
jmp 0x409cc3
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x6c], ebx
cmp ebx, ebx
ja 0x409a80
cmp edi, 0xffffffff
ja 0x409a80
cmp edi, 0x100
jbe 0x409bc8
push edi
lea eax, [ebp - 0x6c]
push eax
call fcn.0040b1df
jmp 0x409bce
lea eax, [ebp - 0x68]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], ebx
jne 0x409be4
lea eax, [ebp - 0x68]
test eax, eax
je 0x409b8f
lea eax, [ebp - 0x6c]
call fcn.0040b117
jmp 0x409b8f
push edi
push ebx
push dword [ebp - 0x6c]
call fcn.00427d80
add esp, 0xc
xor esi, esi
cmp dword [ebp - 0x70], ebx
jle 0x409c52
movzx ecx, word [ebp + esi*2 + 0x98]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x6c]
mov edx, ecx
cmp edx, 0x30
jl 0x409c37
cmp edx, 0x39
jle 0x409c32
cmp edx, 0x40
jle 0x409c37
cmp edx, 0x46
jle 0x409c2d
add edx, 0xffffff9f
cmp edx, 5
ja 0x409c37
lea edx, [ecx - 0x57]
jmp 0x409c39
lea edx, [ecx - 0x37]
jmp 0x409c39
lea edx, [ecx - 0x30]
jmp 0x409c39
xor dl, dl
mov ebx, esi
and ebx, 1
shl ebx, 2
push 4
pop ecx
sub ecx, ebx
shl dl, cl
or byte [eax], dl
inc esi
cmp esi, dword [ebp - 0x70]
jl 0x409bf8
xor ebx, ebx
mov eax, dword [ebp - 0x74]
mov eax, dword [eax]
push edi
push dword [ebp - 0x6c]
push 3
push ebx
push dword [ebp - 0x78]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x6c], eax
je 0x409ca5
lea eax, [ebp - 0x6c]
call fcn.0040b117
jmp 0x409ca5
lea eax, [ebp + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp + 0x98]
push eax
push 1
push ebx
push dword [ebp - 0x78]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, ebx
je 0x409cb2
mov eax, esi
call fcn.00408aa9
jmp 0x409cc3
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
call fcn.0040987d
cmp eax, ebx
jl 0x409cc3
xor eax, eax
mov ecx, dword [ebp + 0x2098]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042396b
add ebp, 0x209c
leave
ret 8