Function at 0x406f30
Capabilities:
Set registry value

Disassembly:
mov eax, 0x2118
call fcn.0040ced0
mov eax, dword [0x423190]
push ebp
mov dword [esp + 0x2118], eax
push esi
lea eax, [esp + 0x11c]
mov ebp, ecx
xor esi, esi
push eax
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], esi
call fcn.00406170
cmp eax, esi
jl 0x407288
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x120]
push edx
call fcn.004072f0
add esp, 8
test eax, eax
jne 0x406f9e
pop esi
mov eax, 0x80020009
pop ebp
mov ecx, dword [esp + 0x2114]
call fcn.0040c26e
add esp, 0x2118
ret 0xc
mov eax, dword [ebp]
xor ecx, ecx
mov cx, word [eax]
push ebx
push ecx
mov ecx, ebp
call fcn.00406120
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
je 0x406fda
lea esp, [esp]
mov edx, dword [ebp]
push edx
call ebx
xor ecx, ecx
mov dword [ebp], eax
mov cx, word [eax]
push ecx
mov ecx, ebp
call fcn.00406120
test eax, eax
jne 0x406fc0
lea edx, [esp + 0x120]
push edx
mov ecx, ebp
call fcn.00406170
cmp eax, esi
jl 0x407287
movzx eax, word [esp + 0x10]
cmp eax, 0x13
push edi
jg 0x4071b2
je 0x407159
cmp eax, 8
je 0x40711f
cmp eax, 0x11
jne 0x40726d
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test bl, 1
jne 0x407067
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
cmp ebp, 0x100
mov dword [esp + 0x20], 0
jbe 0x407071
push ebp
lea ecx, [esp + 0x24]
call fcn.00407430
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x407079
lea ecx, [esp + 0x24]
test ecx, ecx
je 0x407067
lea ecx, [esp + 0x20]
call fcn.00407420
mov eax, 0x80004005
jmp 0x407286
lea edi, [esp + 0x24]
mov dword [esp + 0x20], edi
mov ecx, ebp
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
test ebx, ebx
jle 0x4070cc
mov eax, dword [esp + 0x20]
mov esi, edi
shr esi, 1
add esi, eax
xor eax, eax
mov ax, word [esp + edi*2 + 0x124]
push eax
call fcn.004073a0
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
mov ecx, 4
sub ecx, edx
mov dl, byte [esi]
shl al, cl
add esp, 4
or dl, al
inc edi
cmp edi, ebx
mov byte [esi], dl
jl 0x407091
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2130]
mov eax, dword [esp + 0x212c]
mov eax, dword [eax]
push ebp
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x20]
mov esi, eax
lea eax, [esp + 0x24]
cmp ecx, eax
je 0x407105
lea ecx, [esp + 0x20]
call fcn.00407420
mov ebp, dword [esp + 0x10]
test esi, esi
je 0x40726b
push esi
call fcn.00406ce0
add esp, 4
jmp 0x407286
lea ecx, [esp + 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x2130]
lea edx, [eax + eax + 2]
push edx
mov edx, dword [esp + 0x2130]
lea eax, [esp + 0x128]
push eax
mov eax, dword [edx]
push 1
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x407109
call dword [0x423070]
lea ecx, [esp + 0x10]
push ecx
push esi
push esi
lea edx, [esp + 0x130]
push edx
mov dword [esp + 0x2c], esi
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x2130]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2138]
mov ecx, dword [eax]
push esi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00405a10
jmp 0x407109
cmp eax, 0x4008
jne 0x40726d
lea edx, [esp + 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], esi
call fcn.00407460
mov edi, dword [esp + 0x20]
cmp edi, esi
je 0x40724c
cmp word [esp + 0x124], 0
lea esi, [esp + 0x124]
je 0x407226
push esi
call ebx
mov cx, word [esi]
cmp cx, 0x5c
jne 0x407217
cmp word [eax], 0x30
jne 0x407217
mov word [edi], 0
push eax
add edi, 2
call ebx
mov esi, eax
jmp 0x407220
mov word [edi], cx
add edi, 2
add esi, 2
cmp word [esi], 0
jne 0x4071f6
mov edx, dword [esp + 0x2130]
mov word [edi], 0
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x2130]
push edx
call fcn.004072a0
mov edi, dword [esp + 0x20]
mov esi, eax
jmp 0x407251
mov esi, 0xe
lea eax, [esp + 0x24]
cmp edi, eax
je 0x407109
lea ecx, [esp + 0x20]
call fcn.00407410
jmp 0x407109
xor esi, esi
mov ecx, dword [esp + 0x2134]
push ecx
mov ecx, ebp
call fcn.00406170
xor edx, edx
cmp eax, esi
setge dl
dec edx
and eax, edx
pop edi
pop ebx
mov ecx, dword [esp + 0x211c]
pop esi
pop ebp
call fcn.0040c26e
add esp, 0x2118
ret 0xc