Function at 0x403a08
Capabilities:
Set registry value

Disassembly:
mov eax, 0x408e7e
call fcn.00408910
push ecx
mov eax, 0x2114
call fcn.004088c0
mov eax, dword [0x40b0d0]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2118]
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 0x2124], esi
mov dword [ebp - 0x211c], edi
call fcn.0040243f
cmp eax, edi
jl 0x403cf6
lea eax, [ebp - 0x211c]
push eax
lea eax, [ebp - 0x2118]
push eax
call fcn.004022d5
test eax, eax
jne 0x403a70
mov eax, 0x80020009
jmp 0x403cf6
mov ecx, esi
call fcn.0040241d
lea eax, [ebp - 0x2118]
push eax
mov ecx, esi
call fcn.0040243f
cmp eax, edi
jl 0x403cf6
movzx eax, word [ebp - 0x211c]
sub eax, 8
je 0x403cbe
sub eax, 9
je 0x403bb7
dec eax
dec eax
je 0x403b72
sub eax, 0x3ff5
jne 0x403ce2
lea eax, [ebp - 0x2118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov dword [ebp - 0x118], edi
add eax, eax
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.00402ec2
mov esi, dword [ebp - 0x118]
test esi, esi
je 0x403b4d
cmp word [ebp - 0x2118], 0
lea edi, [ebp - 0x2118]
je 0x403b34
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push edi
call ebx
mov cx, word [edi]
cmp cx, 0x5c
jne 0x403b27
cmp word [eax], 0x30
jne 0x403b27
and word [esi], 0
inc esi
push eax
inc esi
call ebx
mov edi, eax
jmp 0x403b2e
mov word [esi], cx
inc esi
inc esi
inc edi
inc edi
cmp word [edi], 0
jne 0x403b02
and word [esi], 0
push dword [ebp - 0x118]
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.004021ca
mov esi, eax
jmp 0x403b50
push 0xe
pop esi
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x118], eax
je 0x403cd4
lea ecx, [ebp - 0x118]
call fcn.0040276d
jmp 0x403cd4
call dword [0x40b060]
lea eax, [ebp - 0x211c]
push eax
push edi
push edi
lea eax, [ebp - 0x2118]
push eax
mov dword [ebp - 0x2120], edi
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 0x211c]
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00402184
lea ecx, [ebp - 0x2120]
mov esi, eax
call fcn.004026a6
jmp 0x403cd4
lea eax, [ebp - 0x2118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 0x211c], eax
jne 0x403c25
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov dword [ebp - 0x2120], ebx
mov dword [ebp - 0x118], edi
mov dword [ebp - 4], 3
push ebx
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.00402ec2
jmp 0x403c06
mov edi, dword [ebp - 0x118]
test edi, edi
jne 0x403c2f
lea eax, [ebp - 0x114]
test eax, eax
je 0x403c25
lea ecx, [ebp - 0x118]
call fcn.0040276d
mov eax, 0x80004005
jmp 0x403cf6
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
cmp dword [ebp - 0x211c], edi
jle 0x403c87
mov ecx, dword [ebp - 0x118]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
xor eax, eax
mov ax, word [ebp + edi*2 - 0x2118]
push eax
call fcn.00402369
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 0x211c]
jl 0x403c4b
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [ebp - 0x118]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x118], eax
je 0x403cd4
lea ecx, [ebp - 0x118]
call fcn.0040276d
jmp 0x403cd4
mov ecx, dword [ebp + 8]
push 1
lea eax, [ebp - 0x2118]
push eax
push dword [ebp + 0xc]
call fcn.0040219e
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x403ce2
push esi
call fcn.00402023
jmp 0x403cf6
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x2124]
call fcn.0040243f
cmp eax, edi
jl 0x403cf6
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040873b
pop edi
pop esi
pop ebx
leave
ret 0xc