Function at 0x419a90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2120
call fcn.004cd140
mov eax, dword [0x5402b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, edx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2114], eax
mov dword [ebp - 0x2120], ecx
lea eax, [ebp - 0x2004]
mov ecx, esi
mov dword [ebp - 0x2118], esi
mov dword [ebp - 0x2110], edi
mov dword [ebp - 0x210c], 0
call fcn.00419f50
test eax, eax
jl 0x419e0b
push ebx
lea edx, [ebp - 0x210c]
push edx
lea ebx, [ebp - 0x2004]
call fcn.00419870
add esp, 4
test eax, eax
jne 0x419b1a
pop ebx
pop edi
mov eax, 0x80020009
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c0985
mov esp, ebp
pop ebp
ret 8
call fcn.0041a840
lea eax, [ebp - 0x2004]
mov ecx, esi
call fcn.00419f50
xor ebx, ebx
cmp eax, ebx
jl 0x419e0a
movzx eax, word [ebp - 0x210c]
cmp eax, 0x13
jg 0x419d0a
je 0x419cb4
cmp eax, 8
je 0x419c81
cmp eax, 0x11
jne 0x419def
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov dword [ebp - 0x210c], ebx
test bl, 1
jne 0x419bd1
cdq
sub eax, edx
mov edi, eax
xor esi, esi
xor eax, eax
sar edi, 1
mov dword [ebp - 0x2108], esi
cmp eax, esi
ja 0x419b92
cmp edi, 0xffffffff
jbe 0x419b9c
push 0x80070057
call fcn.004057b0
cmp edi, 0x100
jbe 0x419be9
lea ecx, [ebp - 0x2108]
push ecx
mov eax, edi
call fcn.004199c0
mov eax, dword [ebp - 0x2108]
cmp eax, esi
jne 0x419bf5
lea edx, [ebp - 0x2104]
test edx, edx
je 0x419bd1
lea eax, [ebp - 0x2108]
call fcn.004199b0
pop ebx
pop edi
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c0985
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x2104]
mov dword [ebp - 0x2108], eax
push edi
push esi
push eax
call fcn.004c5470
add esp, 0xc
cmp ebx, esi
jle 0x419c3b
mov ecx, dword [ebp - 0x2108]
mov eax, esi
shr eax, 1
lea ebx, [eax + ecx]
mov cx, word [ebp + esi*2 - 0x2004]
call fcn.00419a20
mov edx, esi
and edx, 1
add edx, edx
add edx, edx
mov ecx, 4
sub ecx, edx
shl al, cl
inc esi
or byte [ebx], al
cmp esi, dword [ebp - 0x210c]
jl 0x419c04
mov ecx, dword [ebp - 0x2108]
mov edx, dword [ebp - 0x2114]
mov eax, dword [ebp - 0x2110]
mov eax, dword [eax]
push edi
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
lea eax, [ebp - 0x2104]
cmp dword [ebp - 0x2108], eax
je 0x419dd1
lea eax, [ebp - 0x2108]
call fcn.004199b0
jmp 0x419dd1
lea ecx, [ebp - 0x2004]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x2114]
lea edx, [eax + eax + 2]
push edx
mov edx, dword [edi]
lea eax, [ebp - 0x2004]
push eax
push 1
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
jmp 0x419dd1
lea eax, [ebp - 0x2110]
push eax
push ebx
push ebx
lea ecx, [ebp - 0x2004]
push ecx
mov dword [ebp - 0x211c], ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edx, dword [ebp - 0x2110]
mov ecx, dword [ebp - 0x2114]
push 4
lea eax, [ebp - 0x210c]
push eax
push 4
push ebx
mov dword [ebp - 0x210c], edx
mov edx, dword [edi]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea esi, [ebp - 0x211c]
mov ebx, eax
call fcn.00410870
jmp 0x419dd1
cmp eax, 0x4008
jne 0x419def
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 2
lea esi, [ebp - 0x2108]
mov dword [ebp - 0x2108], ebx
call fcn.00419920
mov eax, dword [ebp - 0x2108]
cmp eax, ebx
je 0x419db7
cmp word [ebp - 0x2004], 0
mov ebx, eax
lea esi, [ebp - 0x2004]
je 0x419d8e
mov edi, dword [sym.imp.USER32.dll_CharNextW]
push esi
call edi
movzx ecx, word [esi]
cmp cx, 0x5c
jne 0x419d79
cmp word [eax], 0x30
jne 0x419d79
xor ecx, ecx
mov word [ebx], cx
push eax
add ebx, 2
call edi
mov esi, eax
jmp 0x419d82
mov word [ebx], cx
add ebx, 2
add esi, 2
cmp word [esi], 0
jne 0x419d58
mov edi, dword [ebp - 0x2110]
xor edx, edx
mov word [ebx], dx
mov edx, dword [ebp - 0x2114]
xor eax, eax
mov word [ebx + 2], ax
mov ecx, dword [ebp - 0x2108]
push ecx
push edx
push edi
call fcn.00419960
mov ebx, eax
mov eax, dword [ebp - 0x2108]
jmp 0x419dbc
mov ebx, 0xe
lea ecx, [ebp - 0x2104]
cmp eax, ecx
je 0x419dd1
lea eax, [ebp - 0x2108]
call fcn.004199b0
test ebx, ebx
je 0x419def
mov eax, ebx
call fcn.00419f10
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c0985
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x2120]
mov ecx, dword [ebp - 0x2118]
call fcn.00419f50
xor edx, edx
test eax, eax
setge dl
dec edx
and eax, edx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004c0985
mov esp, ebp
pop ebp
ret 8