Function at 0x404901
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2120
call fcn.004106d0
mov eax, dword [0x411074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2114], 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 - 0x210c], ebx
call fcn.00404fc9
test eax, eax
js 0x404cd2
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 0x404980
inc esi
cmp esi, 4
jb 0x404958
mov eax, 0x80020009
jmp 0x404cd1
movzx esi, word [esi*8 + 0x4019c4]
mov ecx, edi
call fcn.004056d1
lea eax, [ebp - 0x2004]
mov ecx, edi
push eax
call fcn.00404fc9
test eax, eax
js 0x404cd1
mov eax, esi
push 2
pop edi
sub eax, 8
je 0x404c70
sub eax, 9
je 0x404b33
sub eax, edi
je 0x404abd
sub eax, 0x3ff5
jne 0x404cba
lea ecx, [ebp - 0x2004]
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
cmp ax, bx
jne 0x4049da
sub ecx, edx
mov dword [ebp - 0x2108], ebx
sar ecx, 1
lea eax, [ecx + 2]
mul edi
cmp edx, ebx
ja 0x404ce2
jb 0x404a06
cmp eax, 0xffffffff
ja 0x404ce2
cmp eax, 0x100
jbe 0x404a21
push eax
lea ecx, [ebp - 0x2108]
call fcn.0040452b
mov esi, dword [ebp - 0x2108]
jmp 0x404a2d
lea esi, [ebp - 0x2104]
mov dword [ebp - 0x2108], esi
test esi, esi
je 0x404a9c
cmp word [ebp - 0x2004], 0
lea ebx, [ebp - 0x2004]
je 0x404a77
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [ebx]
cmp ecx, 0x5c
jne 0x404a68
push 0x30
pop edx
cmp word [eax], dx
jne 0x404a68
xor ecx, ecx
push eax
mov word [esi], cx
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
jmp 0x404a6d
mov word [esi], cx
add ebx, edi
xor eax, eax
add esi, 2
cmp word [ebx], ax
jne 0x404a41
mov ecx, dword [ebp - 0x210c]
xor eax, eax
mov dword [esi], eax
push dword [ebp - 0x2108]
push dword [ebp - 0x2114]
call fcn.00404880
mov esi, dword [ebp - 0x2108]
mov edi, eax
jmp 0x404a9f
push 0xe
pop edi
lea eax, [ebp - 0x2104]
cmp esi, eax
je 0x404cad
lea ecx, [ebp - 0x2108]
call fcn.00404521
jmp 0x404cad
xor ecx, ecx
lea eax, [ebp - 0x2118]
push eax
push ecx
push ecx
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2118], ecx
push eax
mov dword [ebp - 0x210c], ecx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test esi, esi
jns 0x404af9
lea ecx, [ebp - 0x210c]
call fcn.004048e5
mov eax, esi
jmp 0x404cd1
mov eax, dword [ebp - 0x2118]
push 4
mov dword [ebp - 0x2110], eax
lea eax, [ebp - 0x2110]
push eax
push 4
xor eax, eax
push eax
push dword [ebp - 0x2114]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x210c]
mov edi, eax
call fcn.004048e5
jmp 0x404cad
lea ebx, [ebp - 0x2004]
xor esi, esi
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, edi
cmp ax, si
jne 0x404b3e
sub ebx, ecx
sar ebx, 1
test bl, 1
jne 0x404ba1
mov eax, ebx
xor ecx, ecx
cdq
sub eax, edx
mov dword [ebp - 0x2108], ecx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x2118], esi
cmp esi, 0x100
jbe 0x404b86
push esi
lea ecx, [ebp - 0x2108]
call fcn.0040452b
mov eax, dword [ebp - 0x2108]
xor ecx, ecx
jmp 0x404b92
lea eax, [ebp - 0x2104]
mov dword [ebp - 0x2108], eax
test eax, eax
jne 0x404bab
lea ecx, [ebp - 0x2108]
call fcn.00404521
mov eax, 0x80004005
jmp 0x404cd1
push esi
push ecx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
test ebx, ebx
jle 0x404c35
mov esi, eax
movzx ecx, word [ebp + esi*2 - 0x2004]
mov eax, esi
cdq
mov edi, ecx
sub eax, edx
mov edx, ecx
sar eax, 1
add eax, dword [ebp - 0x2108]
push 0x30
mov dword [ebp - 0x2110], eax
pop eax
cmp di, ax
jb 0x404c0d
cmp edi, 0x39
jbe 0x404c08
cmp edi, 0x40
jbe 0x404c0d
cmp edi, 0x46
jbe 0x404c03
cmp edi, 0x60
jbe 0x404c0d
cmp edx, 0x66
ja 0x404c0d
sub dl, 0x57
jmp 0x404c11
sub dl, 0x37
jmp 0x404c11
sub dl, 0x30
jmp 0x404c11
xor eax, eax
mov dl, al
mov eax, esi
and eax, 1
shl eax, 2
push 4
pop ecx
sub ecx, eax
mov eax, dword [ebp - 0x2110]
shl dl, cl
or byte [eax], dl
inc esi
cmp esi, ebx
jl 0x404bbe
mov esi, dword [ebp - 0x2118]
xor eax, eax
push esi
push dword [ebp - 0x2108]
push 3
push eax
mov eax, dword [ebp - 0x210c]
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 0x404cad
lea ecx, [ebp - 0x2108]
call fcn.00404521
jmp 0x404cad
lea ecx, [ebp - 0x2004]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
cmp ax, si
jne 0x404c7b
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 dword [ebp - 0x2114]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x404cba
mov ecx, edi
call fcn.00404fb9
jmp 0x404cd1
push dword [ebp - 0x211c]
mov ecx, dword [ebp - 0x2120]
call fcn.00404fc9
test eax, eax
js 0x404cd1
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040ff30
leave
ret 0xc
mov ecx, 0x80070057
call fcn.00405c4a
int3