Function at 0x402f3e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2120
call fcn.00401059
mov eax, dword [0x40706c]
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.0040369e
test eax, eax
js 0x4032eb
lea edx, [ebp - 0x210c]
lea ecx, [ebp - 0x2004]
call fcn.00402e31
test eax, eax
jne 0x402fbe
mov eax, 0x80020009
jmp 0x4032eb
mov ecx, esi
call fcn.00403e22
lea eax, [ebp - 0x2004]
mov ecx, esi
push eax
call fcn.0040369e
test eax, eax
js 0x4032eb
movzx eax, word [ebp - 0x210c]
sub eax, 8
je 0x403298
sub eax, 9
je 0x40314e
dec eax
dec eax
je 0x4030fe
sub eax, 0x3ff5
jne 0x4032d8
lea ecx, [ebp - 0x2004]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x403012
sub ecx, edx
mov dword [ebp - 0x2108], esi
sar ecx, 1
push 2
lea eax, [ecx + 2]
push eax
call fcn.00404460
cmp eax, 0x100
jbe 0x40304d
push eax
lea ecx, [ebp - 0x2108]
call fcn.00402a69
mov esi, dword [ebp - 0x2108]
jmp 0x403059
lea esi, [ebp - 0x2104]
mov dword [ebp - 0x2108], esi
test esi, esi
je 0x4030cc
cmp word [ebp - 0x2004], 0
lea edi, [ebp - 0x2004]
je 0x4030ab
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push edi
call ebx
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x403095
push 0x30
pop edx
cmp word [eax], dx
jne 0x403095
xor ecx, ecx
mov word [esi], cx
add esi, 2
push eax
call ebx
mov edi, eax
jmp 0x40309e
mov word [esi], cx
add esi, 2
add edi, 2
xor eax, eax
cmp word [edi], ax
jne 0x403073
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.00402ed8
mov esi, dword [ebp - 0x2108]
mov edi, eax
jmp 0x4030cf
push 0xe
pop edi
lea eax, [ebp - 0x2104]
cmp esi, eax
je 0x4030e4
lea ecx, [ebp - 0x2108]
call fcn.00402a57
mov esi, dword [ebp - 0x2118]
test edi, edi
je 0x4032d8
mov ecx, edi
call fcn.0040368e
jmp 0x4032eb
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.004043f2
jmp 0x4030ea
lea ebx, [ebp - 0x2004]
xor edi, edi
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, di
jne 0x403159
sub ebx, ecx
sar ebx, 1
test bl, 1
je 0x403177
mov eax, 0x80004005
jmp 0x4032eb
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.00404460
cmp eax, 0x100
jbe 0x4031af
push eax
lea ecx, [ebp - 0x2108]
call fcn.00402a69
mov eax, dword [ebp - 0x2108]
jmp 0x4031bb
lea eax, [ebp - 0x2104]
mov dword [ebp - 0x2108], eax
test eax, eax
jne 0x4031d6
lea eax, [ebp - 0x2104]
test eax, eax
je 0x40316d
lea ecx, [ebp - 0x2108]
call fcn.00402a57
jmp 0x40316d
push esi
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor ecx, ecx
test ebx, ebx
jle 0x403256
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 0x40322f
cmp eax, 0x39
jle 0x40322a
cmp eax, 0x40
jle 0x40322f
cmp eax, 0x46
jle 0x403225
add eax, 0xffffff9f
cmp eax, 5
ja 0x40322f
sub dl, 0x57
jmp 0x403231
sub dl, 0x37
jmp 0x403231
sub dl, 0x30
jmp 0x403231
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 0x4031e7
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 0x4030e4
lea ecx, [ebp - 0x2108]
call fcn.00402a57
jmp 0x4030e4
lea ecx, [ebp - 0x2004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x211c]
jne 0x4032a1
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 0x4030ea
push dword [ebp - 0x2120]
mov ecx, esi
call fcn.0040369e
test eax, eax
js 0x4032eb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405dd4
mov esp, ebp
pop ebp
ret 0xc