Function at 0x404a7b
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2120
call fcn.00410f00
mov eax, dword [0x412074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2110], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x211c], eax
mov edi, ecx
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2120], edi
push eax
mov dword [ebp - 0x2114], ebx
call fcn.004050f7
test eax, eax
js 0x404de0
xor eax, eax
push esi
mov esi, eax
push dword [esi*8 + 0x4019c0]
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x404afa
inc esi
cmp esi, 4
jb 0x404ad2
mov eax, 0x80020009
jmp 0x404ddf
movzx esi, word [esi*8 + 0x4019c4]
mov ecx, edi
call fcn.004057ed
lea eax, [ebp - 0x2004]
mov ecx, edi
push eax
call fcn.004050f7
test eax, eax
js 0x404ddf
mov eax, esi
push 2
pop edi
sub eax, 8
je 0x404d80
sub eax, 9
je 0x404c75
sub eax, edi
je 0x404c33
sub eax, 0x3ff5
jne 0x404dc8
lea ecx, [ebp - 0x2004]
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
cmp ax, bx
jne 0x404b54
sub ecx, edx
mov dword [ebp - 0x2108], ebx
sar ecx, 1
lea eax, [ecx + 2]
mul edi
cmp edx, ebx
ja 0x404df0
cmp eax, 0xffffffff
ja 0x404df0
cmp eax, 0x100
jbe 0x404b99
push eax
lea ecx, [ebp - 0x2108]
call fcn.0040462a
mov esi, dword [ebp - 0x2108]
jmp 0x404ba5
lea esi, [ebp - 0x2104]
mov dword [ebp - 0x2108], esi
test esi, esi
je 0x404c12
cmp word [ebp - 0x2004], 0
lea ebx, [ebp - 0x2004]
je 0x404bed
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [ebx]
cmp ecx, 0x5c
jne 0x404bde
cmp word [eax], 0x30
jne 0x404bde
xor ecx, ecx
push eax
mov word [esi], cx
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
jmp 0x404be3
mov word [esi], cx
add ebx, edi
xor eax, eax
add esi, 2
cmp word [ebx], ax
jne 0x404bb9
mov ecx, dword [ebp - 0x2114]
xor eax, eax
mov dword [esi], eax
push dword [ebp - 0x2108]
push dword [ebp - 0x2110]
call fcn.0040498a
mov esi, dword [ebp - 0x2108]
mov edi, eax
jmp 0x404c15
push 0xe
pop edi
lea eax, [ebp - 0x2104]
cmp esi, eax
je 0x404dbb
lea ecx, [ebp - 0x2108]
call fcn.0040461a
jmp 0x404dbb
lea eax, [ebp - 0x210c]
xor esi, esi
push eax
push esi
push esi
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x210c], esi
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x404ddf
mov eax, dword [ebp - 0x210c]
mov dword [ebp - 0x2114], eax
lea eax, [ebp - 0x2114]
push 4
push eax
push 4
jmp 0x404daa
lea ebx, [ebp - 0x2004]
xor esi, esi
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, edi
cmp ax, si
jne 0x404c80
sub ebx, ecx
sar ebx, 1
test bl, 1
jne 0x404ce5
mov eax, ebx
mov dword [ebp - 0x2108], esi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov dword [ebp - 0x2118], ecx
cmp ecx, 0x100
jbe 0x404cca
push ecx
lea ecx, [ebp - 0x2108]
call fcn.0040462a
mov eax, dword [ebp - 0x2108]
mov ecx, dword [ebp - 0x2118]
jmp 0x404cd6
lea eax, [ebp - 0x2104]
mov dword [ebp - 0x2108], eax
test eax, eax
jne 0x404cef
lea ecx, [ebp - 0x2108]
call fcn.0040461a
mov eax, 0x80004005
jmp 0x404ddf
push ecx
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edx, esi
mov dword [ebp - 0x210c], edx
test ebx, ebx
jle 0x404d40
mov cx, word [ebp + edx*2 - 0x2004]
mov edi, edx
mov esi, dword [ebp - 0x2108]
shr edi, 1
call fcn.004049f5
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
mov edx, dword [ebp - 0x210c]
shl al, cl
or byte [edi + esi], al
inc edx
mov dword [ebp - 0x210c], edx
cmp edx, ebx
jl 0x404d06
xor esi, esi
push dword [ebp - 0x2118]
mov eax, dword [ebp - 0x2114]
push dword [ebp - 0x2108]
push 3
push esi
push dword [ebp - 0x2110]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp - 0x2104]
cmp dword [ebp - 0x2108], eax
je 0x404dbb
lea ecx, [ebp - 0x2108]
call fcn.0040461a
jmp 0x404dbb
lea ecx, [ebp - 0x2004]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
cmp ax, si
jne 0x404d8b
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x2004]
push eax
push 1
push esi
push dword [ebp - 0x2110]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x404dc8
mov ecx, edi
call fcn.004050e1
jmp 0x404ddf
push dword [ebp - 0x211c]
mov ecx, dword [ebp - 0x2120]
call fcn.004050f7
test eax, eax
js 0x404ddf
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00410680
leave
ret 0xc
mov ecx, 0x80070057
call fcn.00405d00
int3