Function at 0x403a99
Capabilities:
Set registry value

Disassembly:
push ebp
mov eax, 0x210c
lea ebp, [esp - 0x68]
call fcn.00412c80
mov eax, dword [0x41c0b0]
push esi
mov esi, dword [ebp + 0x70]
push edi
mov dword [ebp + 0x64], eax
xor edi, edi
lea eax, [ebp - 0x20a0]
mov ecx, esi
mov dword [ebp - 0x20a4], edi
call fcn.0040342e
cmp eax, edi
jl 0x403d2f
lea eax, [ebp - 0x20a4]
push eax
lea eax, [ebp - 0x20a0]
push eax
call fcn.00403d40
test eax, eax
pop ecx
pop ecx
jne 0x403af5
mov eax, 0x80020009
jmp 0x403d2f
call fcn.004040cf
lea eax, [ebp - 0x20a0]
mov ecx, esi
call fcn.0040342e
cmp eax, edi
jl 0x403d2f
movzx eax, word [ebp - 0x20a4]
sub eax, 8
push ebx
je 0x403cf8
sub eax, 9
je 0x403c1a
dec eax
dec eax
je 0x403be8
sub eax, 0x3ff5
jne 0x403d1d
lea eax, [ebp - 0x20a0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
push eax
lea esi, [ebp - 0xa0]
mov dword [ebp - 0xa0], edi
call fcn.00403e06
mov esi, dword [ebp - 0xa0]
cmp esi, edi
je 0x403bc3
cmp word [ebp - 0x20a0], 0
lea edi, [ebp - 0x20a0]
je 0x403baa
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push edi
call ebx
mov cx, word [edi]
cmp cx, 0x5c
jne 0x403b9d
cmp word [eax], 0x30
jne 0x403b9d
and word [esi], 0
inc esi
push eax
inc esi
call ebx
mov edi, eax
jmp 0x403ba4
mov word [esi], cx
inc esi
inc esi
inc edi
inc edi
cmp word [edi], 0
jne 0x403b7e
and word [esi], 0
push dword [ebp - 0xa0]
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call fcn.00403e4b
mov esi, eax
jmp 0x403bc6
push 0xe
pop esi
lea eax, [ebp - 0x9c]
cmp dword [ebp - 0xa0], eax
je 0x403d0e
lea eax, [ebp - 0xa0]
call fcn.00403dfd
jmp 0x403d0e
call dword [0x41cc48]
lea eax, [ebp - 0x20a4]
push eax
push edi
push edi
lea eax, [ebp - 0x20a0]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 0x20a4]
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call fcn.00403e85
jmp 0x403d0c
lea eax, [ebp - 0x20a0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 0x20a4], eax
je 0x403c3b
mov eax, 0x80004005
jmp 0x403d2e
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
push ebx
lea esi, [ebp - 0xa0]
mov dword [ebp - 0xa0], edi
call fcn.00403e06
cmp dword [ebp - 0xa0], edi
jne 0x403c6f
lea eax, [ebp - 0x9c]
test eax, eax
je 0x403c31
mov eax, esi
call fcn.00403dfd
jmp 0x403c31
push ebx
push edi
push dword [ebp - 0xa0]
call fcn.0040e4a0
add esp, 0xc
cmp dword [ebp - 0x20a4], 0
jle 0x403cc1
mov ecx, dword [ebp - 0xa0]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov ax, word [ebp + edi*2 - 0x20a0]
call fcn.00403ea3
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 - 0x20a4]
jl 0x403c88
mov eax, dword [ebp + 0x74]
mov eax, dword [eax]
push ebx
push dword [ebp - 0xa0]
push 3
push 0
push dword [ebp + 0x78]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [ebp - 0x9c]
cmp dword [ebp - 0xa0], eax
je 0x403d0e
lea eax, [ebp - 0xa0]
call fcn.00403dfd
jmp 0x403d0e
push 1
lea eax, [ebp - 0x20a0]
push eax
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call fcn.00403dd2
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x403d1d
mov eax, esi
call fcn.004040c0
jmp 0x403d2e
mov eax, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x70]
call fcn.0040342e
cmp eax, edi
jl 0x403d2e
xor eax, eax
pop ebx
mov ecx, dword [ebp + 0x64]
pop edi
pop esi
call fcn.0040f439
add ebp, 0x68
leave
ret 0x10