Function at 0x418a80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2120
call fcn.00447f00
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.00419110
test eax, eax
js 0x418d62
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x211c]
call fcn.00418810
test eax, eax
jne 0x418ad0
mov eax, 0x80020009
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, esi
call fcn.00419890
lea eax, [ebp - 0x211c]
push eax
mov ecx, esi
call fcn.00419110
test eax, eax
js 0x418d62
movzx eax, word [ebp - 0xc]
cmp eax, 0x13
jg 0x418c72
je 0x418c29
cmp eax, 8
je 0x418c0f
cmp eax, 0x11
jne 0x418d4f
lea ebx, [ebp - 0x211c]
lea ecx, [ebx + 2]
jmp 0x418b20
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x418b20
sub ebx, ecx
sar ebx, 1
test bl, 1
jne 0x418b75
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.004189d0
mov eax, dword [ebp - 0x11c]
test eax, eax
jne 0x418b83
lea eax, [ebp - 0x118]
test eax, eax
je 0x418b75
lea ecx, [ebp - 0x11c]
call fcn.00418200
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
push 0
push eax
call fcn.0043f760
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x418bd2
jmp 0x418ba0
mov cx, word [ebp + edi*2 - 0x211c]
mov esi, edi
shr esi, 1
add esi, dword [ebp - 0x11c]
call fcn.00418a10
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 0x418ba0
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 0x418d38
lea ecx, [ebp - 0x11c]
call fcn.00418200
jmp 0x418d38
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x211c]
push eax
push dword [ebp + 0xc]
call fcn.004188d0
mov edi, eax
jmp 0x418d3b
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.00404700
jmp 0x418d3b
cmp eax, 0x4008
jne 0x418d4f
lea ecx, [ebp - 0x211c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418c86
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x11c], 0
lea eax, [ecx + 2]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00418920
mov esi, dword [ebp - 0x11c]
test esi, esi
je 0x418d1e
cmp word [ebp - 0x211c], 0
lea edi, [ebp - 0x211c]
je 0x418cff
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
mov edi, edi
push edi
call ebx
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x418cf0
cmp word [eax], 0x30
jne 0x418cf0
xor ecx, ecx
mov word [esi], cx
push eax
add esi, 2
call ebx
mov edi, eax
jmp 0x418cf9
mov word [esi], cx
add esi, 2
add edi, 2
cmp word [edi], 0
jne 0x418cd0
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [esi], eax
push dword [ebp - 0x11c]
push dword [ebp + 0xc]
call fcn.00418970
mov esi, dword [ebp - 0x11c]
mov edi, eax
jmp 0x418d23
mov edi, 0xe
lea eax, [ebp - 0x118]
cmp esi, eax
je 0x418d38
lea ecx, [ebp - 0x11c]
call fcn.00418200
mov esi, dword [ebp - 8]
test edi, edi
je 0x418d4f
mov ecx, edi
call fcn.00419100
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00419110
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