Function at 0x4042a6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x210c
call fcn.00415cc0
mov eax, dword [0x41b070]
xor eax, dword [ebp + 4]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
xor edi, edi
lea eax, [ebp - 0x210c]
mov ecx, esi
mov dword [ebp - 8], edi
call fcn.00403cf3
cmp eax, edi
jl 0x404523
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210c]
push eax
call fcn.00404534
test eax, eax
pop ecx
pop ecx
jne 0x4042fd
mov eax, 0x80020009
jmp 0x404523
call fcn.00404882
lea eax, [ebp - 0x210c]
mov ecx, esi
call fcn.00403cf3
cmp eax, edi
jl 0x404523
movzx eax, word [ebp - 8]
sub eax, 8
push ebx
je 0x4044ec
sub eax, 9
je 0x404413
dec eax
dec eax
je 0x4043ed
sub eax, 0x3ff5
jne 0x404511
lea eax, [ebp - 0x210c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
push eax
lea esi, [ebp - 0x10c]
mov dword [ebp - 0x10c], edi
call fcn.00404667
mov esi, dword [ebp - 0x10c]
cmp esi, edi
je 0x4043c8
cmp word [ebp - 0x210c], 0
lea edi, [ebp - 0x210c]
je 0x4043af
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push edi
call ebx
mov cx, word [edi]
cmp cx, 0x5c
jne 0x4043a2
cmp word [eax], 0x30
jne 0x4043a2
and word [esi], 0
inc esi
push eax
inc esi
call ebx
mov edi, eax
jmp 0x4043a9
mov word [esi], cx
inc esi
inc esi
inc edi
inc edi
cmp word [edi], 0
jne 0x404383
and word [esi], 0
push dword [ebp - 0x10c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00404605
mov esi, eax
jmp 0x4043cb
push 0xe
pop esi
lea eax, [ebp - 0x108]
cmp dword [ebp - 0x10c], eax
je 0x404502
lea eax, [ebp - 0x10c]
call fcn.0040465d
jmp 0x404502
lea eax, [ebp - 8]
push eax
push edi
push edi
lea eax, [ebp - 0x210c]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040463f
jmp 0x404500
lea eax, [ebp - 0x210c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 8], eax
je 0x404431
mov eax, 0x80004005
jmp 0x404522
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
push ebx
lea esi, [ebp - 0x10c]
mov dword [ebp - 0x10c], edi
call fcn.00404667
cmp dword [ebp - 0x10c], edi
jne 0x404469
lea eax, [ebp - 0x108]
test eax, eax
je 0x404427
lea eax, [ebp - 0x10c]
call fcn.0040465d
jmp 0x404427
push ebx
push edi
push dword [ebp - 0x10c]
call sub.MSVCR70.dll_memset
add esp, 0xc
cmp dword [ebp - 8], 0
jle 0x4044b5
mov ecx, dword [ebp - 0x10c]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov ax, word [ebp + edi*2 - 0x210c]
call fcn.00404687
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x40447f
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
push dword [ebp - 0x10c]
push 3
push 0
push dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [ebp - 0x108]
cmp dword [ebp - 0x10c], eax
je 0x404502
lea eax, [ebp - 0x10c]
call fcn.0040465d
jmp 0x404502
push 1
lea eax, [ebp - 0x210c]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004045c6
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x404511
mov eax, esi
call fcn.00404873
jmp 0x404522
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
call fcn.00403cf3
cmp eax, edi
jl 0x404522
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
call fcn.00415ab2
leave
ret 0x10