Function at 0x418ca0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2120
call fcn.00445360
push ebx
push esi
push edi
lea eax, [ebp - 0x211c]
mov esi, ecx
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 0
call fcn.00419260
test eax, eax
js 0x418f82
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x211c]
call fcn.00418a30
test eax, eax
jne 0x418cf0
mov eax, 0x80020009
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, esi
call fcn.004199e0
lea eax, [ebp - 0x211c]
push eax
mov ecx, esi
call fcn.00419260
test eax, eax
js 0x418f82
movzx eax, word [ebp - 0xc]
cmp eax, 0x13
jg 0x418e92
je 0x418e49
cmp eax, 8
je 0x418e2f
cmp eax, 0x11
jne 0x418f6f
lea ebx, [ebp - 0x211c]
lea ecx, [ebx + 2]
jmp 0x418d40
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x418d40
sub ebx, ecx
sar ebx, 1
test bl, 1
jne 0x418d95
mov eax, ebx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
push esi
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x11c], 0
call fcn.00418bf0
mov eax, dword [ebp - 0x11c]
test eax, eax
jne 0x418da3
lea eax, [ebp - 0x118]
test eax, eax
je 0x418d95
lea ecx, [ebp - 0x11c]
call fcn.004183f0
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
push 0
push eax
call fcn.0043da70
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x418df2
jmp 0x418dc0
mov cx, word [ebp + edi*2 - 0x211c]
mov esi, edi
shr esi, 1
add esi, dword [ebp - 0x11c]
call fcn.00418c30
mov edx, edi
and edx, 1
shl edx, 2
mov ecx, 4
sub ecx, edx
shl al, cl
inc edi
or byte [esi], al
cmp edi, ebx
jl 0x418dc0
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
push esi
push dword [ebp - 0x11c]
push 3
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp - 0x118]
cmp dword [ebp - 0x11c], eax
je 0x418f58
lea ecx, [ebp - 0x11c]
call fcn.004183f0
jmp 0x418f58
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x211c]
push eax
push dword [ebp + 0xc]
call fcn.00418af0
mov edi, eax
jmp 0x418f5b
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 0x211c]
push eax
mov dword [ebp - 0x10], 0
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0xc]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push 4
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.00412cd0
jmp 0x418f5b
cmp eax, 0x4008
jne 0x418f6f
lea ecx, [ebp - 0x211c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418ea6
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x11c], 0
lea eax, [ecx + 2]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00418b40
mov esi, dword [ebp - 0x11c]
test esi, esi
je 0x418f3e
cmp word [ebp - 0x211c], 0
lea edi, [ebp - 0x211c]
je 0x418f1f
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
mov edi, edi
push edi
call ebx
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x418f10
cmp word [eax], 0x30
jne 0x418f10
xor ecx, ecx
mov word [esi], cx
push eax
add esi, 2
call ebx
mov edi, eax
jmp 0x418f19
mov word [esi], cx
add esi, 2
add edi, 2
cmp word [edi], 0
jne 0x418ef0
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [esi], eax
push dword [ebp - 0x11c]
push dword [ebp + 0xc]
call fcn.00418b90
mov esi, dword [ebp - 0x11c]
mov edi, eax
jmp 0x418f43
mov edi, 0xe
lea eax, [ebp - 0x118]
cmp esi, eax
je 0x418f58
lea ecx, [ebp - 0x11c]
call fcn.004183f0
mov esi, dword [ebp - 8]
test edi, edi
je 0x418f6f
mov ecx, edi
call fcn.00419250
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00419260
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc