Function at 0x419810
Capabilities:
Set registry value

Disassembly:
mov eax, 0x211c
call fcn.00421840
mov eax, dword [0x445030]
xor eax, esp
mov dword [esp + 0x2118], eax
mov eax, dword [esp + 0x2124]
push ebp
mov ebp, dword [esp + 0x2124]
push esi
push edi
mov esi, ecx
mov edi, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x124]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], edi
mov dword [esp + 0x18], 0
call fcn.00419d80
test eax, eax
jl 0x419ae2
push ebx
lea ecx, [esp + 0x1c]
push ecx
lea ebx, [esp + 0x12c]
call fcn.00419610
add esp, 4
test eax, eax
jne 0x41988c
mov eax, 0x80020009
jmp 0x419ae1
call fcn.0041a5a0
lea eax, [esp + 0x128]
mov ecx, esi
call fcn.00419d80
xor esi, esi
cmp eax, esi
jl 0x419ae1
movzx eax, word [esp + 0x1c]
cmp eax, 0x13
jg 0x419a0b
je 0x4199d4
cmp eax, 8
je 0x4199bf
cmp eax, 0x11
jne 0x419aca
lea edx, [esp + 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test bl, 1
jne 0x419931
cdq
sub eax, edx
mov ebp, eax
xor eax, eax
sar ebp, 1
mov dword [esp + 0x24], esi
cmp eax, esi
ja 0x4198fa
cmp ebp, 0xffffffff
jbe 0x419904
push 0x80070057
call fcn.004021d0
cmp ebp, 0x100
jbe 0x41993b
lea eax, [esp + 0x24]
push eax
mov eax, ebp
call fcn.004196f0
mov eax, dword [esp + 0x24]
cmp eax, esi
jne 0x419943
lea ecx, [esp + 0x28]
test ecx, ecx
je 0x419931
lea eax, [esp + 0x24]
call fcn.00407cf0
mov eax, 0x80004005
jmp 0x419ae1
lea eax, [esp + 0x28]
mov dword [esp + 0x24], eax
push ebp
push esi
push eax
call fcn.0041c990
add esp, 0xc
cmp ebx, esi
jle 0x419985
mov eax, dword [esp + 0x24]
mov cx, word [esp + esi*2 + 0x128]
mov edx, esi
shr edx, 1
lea edi, [edx + eax]
call fcn.004197a0
mov ecx, esi
and ecx, 1
add ecx, ecx
add ecx, ecx
mov edx, ecx
mov ecx, 4
sub ecx, edx
shl al, cl
inc esi
or byte [edi], al
cmp esi, ebx
jl 0x419952
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
push ebp
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
lea eax, [esp + 0x28]
cmp dword [esp + 0x24], eax
je 0x419abd
lea eax, [esp + 0x24]
call fcn.00407cf0
jmp 0x419abd
push edi
push ebp
lea esi, [esp + 0x130]
call fcn.004196c0
mov ebx, eax
jmp 0x419abd
lea ecx, [esp + 0x14]
push ecx
push esi
push esi
lea edx, [esp + 0x134]
push edx
mov dword [esp + 0x20], esi
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [esp + 0x14]
push eax
mov ecx, edi
mov edx, ebp
call fcn.00401f20
lea esi, [esp + 0x10]
mov ebx, eax
call fcn.0040cb80
jmp 0x419abd
cmp eax, 0x4008
jne 0x419aca
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x24], esi
add eax, 2
lea esi, [esp + 0x24]
call fcn.00419710
mov edi, dword [esp + 0x24]
test edi, edi
je 0x419aa7
cmp word [esp + 0x128], 0
lea esi, [esp + 0x128]
je 0x419a84
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push esi
call ebx
movzx ecx, word [esi]
cmp cx, 0x5c
jne 0x419a75
cmp word [eax], 0x30
jne 0x419a75
xor edx, edx
mov word [edi], dx
push eax
add edi, 2
call ebx
mov esi, eax
jmp 0x419a7e
mov word [edi], cx
add edi, 2
add esi, 2
cmp word [esi], 0
jne 0x419a54
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [edi + 2], cx
mov edx, dword [esp + 0x24]
push edx
push eax
push ebp
call fcn.00419750
mov edi, dword [esp + 0x24]
mov ebx, eax
jmp 0x419aac
mov ebx, 0xe
lea ecx, [esp + 0x28]
cmp edi, ecx
je 0x419abd
lea eax, [esp + 0x24]
call fcn.00407cf0
test ebx, ebx
je 0x419aca
mov eax, ebx
call fcn.00419d40
jmp 0x419ae1
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
call fcn.00419d80
xor edx, edx
test eax, eax
setge dl
dec edx
and eax, edx
pop ebx
mov ecx, dword [esp + 0x2124]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0041b3f1
add esp, 0x211c
ret 8