Function at 0x4118c2
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2120
call fcn.00469020
mov eax, dword [0x46a010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2120], eax
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x211c], eax
mov dword [ebp - 0x210c], eax
lea eax, [ebp - 0x2004]
push eax
mov dword [ebp - 0x2118], esi
mov dword [ebp - 0x2110], ebx
mov dword [ebp - 0x2114], edi
call fcn.00411fd8
test eax, eax
js 0x411c6f
lea edx, [ebp - 0x210c]
lea ecx, [ebp - 0x2004]
call fcn.00411745
test eax, eax
jne 0x411942
mov eax, 0x80020009
jmp 0x411c6f
mov ecx, esi
call fcn.00412708
lea eax, [ebp - 0x2004]
mov ecx, esi
push eax
call fcn.00411fd8
test eax, eax
js 0x411c6f
movzx eax, word [ebp - 0x210c]
sub eax, 8
je 0x411c1c
sub eax, 9
je 0x411ad2
dec eax
dec eax
je 0x411a82
sub eax, 0x3ff5
jne 0x411c5c
lea ecx, [ebp - 0x2004]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x411996
sub ecx, edx
mov dword [ebp - 0x2108], esi
sar ecx, 1
push 2
lea eax, [ecx + 2]
push eax
call fcn.00411897
cmp eax, 0x100
jbe 0x4119d1
push eax
lea ecx, [ebp - 0x2108]
call fcn.004113fd
mov esi, dword [ebp - 0x2108]
jmp 0x4119dd
lea esi, [ebp - 0x2104]
mov dword [ebp - 0x2108], esi
test esi, esi
je 0x411a50
cmp word [ebp - 0x2004], 0
lea edi, [ebp - 0x2004]
je 0x411a2f
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push edi
call ebx
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x411a19
push 0x30
pop edx
cmp word [eax], dx
jne 0x411a19
xor ecx, ecx
mov word [esi], cx
add esi, 2
push eax
call ebx
mov edi, eax
jmp 0x411a22
mov word [esi], cx
add esi, 2
add edi, 2
xor eax, eax
cmp word [edi], ax
jne 0x4119f7
mov ebx, dword [ebp - 0x2110]
xor eax, eax
mov ecx, ebx
mov dword [esi], eax
push dword [ebp - 0x2108]
push dword [ebp - 0x2114]
call fcn.004117e0
mov esi, dword [ebp - 0x2108]
mov edi, eax
jmp 0x411a53
push 0xe
pop edi
lea eax, [ebp - 0x2104]
cmp esi, eax
je 0x411a68
lea ecx, [ebp - 0x2108]
call fcn.004113ee
mov esi, dword [ebp - 0x2118]
test edi, edi
je 0x411c5c
mov ecx, edi
call fcn.00411fc3
jmp 0x411c6f
xor ecx, ecx
lea eax, [ebp - 0x2110]
push eax
push ecx
push ecx
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x210c], ecx
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x2110]
push 4
mov dword [ebp - 0x2114], eax
lea eax, [ebp - 0x2114]
push eax
push 4
xor eax, eax
push eax
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x210c]
mov edi, eax
call fcn.0041184b
jmp 0x411a6e
lea ebx, [ebp - 0x2004]
xor edi, edi
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, di
jne 0x411add
sub ebx, ecx
sar ebx, 1
test bl, 1
je 0x411afb
mov eax, 0x80004005
jmp 0x411c6f
mov eax, ebx
mov dword [ebp - 0x2108], edi
cdq
sub eax, edx
mov esi, eax
sar esi, 1
push 1
push esi
mov dword [ebp - 0x211c], esi
call fcn.00411897
cmp eax, 0x100
jbe 0x411b33
push eax
lea ecx, [ebp - 0x2108]
call fcn.004113fd
mov eax, dword [ebp - 0x2108]
jmp 0x411b3f
lea eax, [ebp - 0x2104]
mov dword [ebp - 0x2108], eax
test eax, eax
jne 0x411b5a
lea eax, [ebp - 0x2104]
test eax, eax
je 0x411af1
lea ecx, [ebp - 0x2108]
call fcn.004113ee
jmp 0x411af1
push esi
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor ecx, ecx
test ebx, ebx
jle 0x411bda
mov eax, edi
cdq
sub eax, edx
movzx edx, word [ebp + edi*2 - 0x2004]
sar eax, 1
add eax, dword [ebp - 0x2108]
mov dword [ebp - 0x210c], eax
mov eax, edx
cmp eax, 0x30
jl 0x411bb3
cmp eax, 0x39
jle 0x411bae
cmp eax, 0x40
jle 0x411bb3
cmp eax, 0x46
jle 0x411ba9
add eax, 0xffffff9f
cmp eax, 5
ja 0x411bb3
sub dl, 0x57
jmp 0x411bb5
sub dl, 0x37
jmp 0x411bb5
sub dl, 0x30
jmp 0x411bb5
mov dl, cl
mov eax, edi
and eax, 1
push 4
shl eax, 2
pop ecx
sub ecx, eax
mov eax, dword [ebp - 0x210c]
shl dl, cl
push 0
pop ecx
or byte [eax], dl
inc edi
cmp edi, ebx
jl 0x411b6b
mov esi, dword [ebp - 0x211c]
mov eax, dword [ebp - 0x2110]
push esi
push dword [ebp - 0x2108]
push 3
push ecx
push dword [ebp - 0x2114]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp - 0x2104]
cmp dword [ebp - 0x2108], eax
je 0x411a68
lea ecx, [ebp - 0x2108]
call fcn.004113ee
jmp 0x411a68
lea ecx, [ebp - 0x2004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x211c]
jne 0x411c25
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x2004]
push eax
push 1
xor eax, eax
push eax
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
jmp 0x411a6e
push dword [ebp - 0x2120]
mov ecx, esi
call fcn.00411fd8
test eax, eax
js 0x411c6f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00468719
mov esp, ebp
pop ebp
ret 0xc