Function at 0x402cd7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2120
call fcn.004330f0
mov eax, dword [0x46f06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x211c], eax
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x2118], eax
mov edi, ecx
mov dword [ebp - 0x210c], eax
lea eax, [ebp - 0x2004]
push eax
mov dword [ebp - 0x2120], edi
mov dword [ebp - 0x2114], ebx
mov dword [ebp - 0x2110], esi
call fcn.00402b81
test eax, eax
js 0x403073
lea edx, [ebp - 0x210c]
lea ecx, [ebp - 0x2004]
call fcn.00402a96
test eax, eax
jne 0x402d55
mov eax, 0x80020009
jmp 0x403073
mov ecx, edi
call fcn.00402b58
lea eax, [ebp - 0x2004]
mov ecx, edi
push eax
call fcn.00402b81
test eax, eax
js 0x403073
movzx eax, word [ebp - 0x210c]
push 2
pop edi
sub eax, 8
je 0x403012
sub eax, 9
je 0x402ec8
sub eax, edi
je 0x402e8c
sub eax, 0x3ff5
jne 0x403059
lea ecx, [ebp - 0x2004]
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
cmp ax, bx
jne 0x402dac
sub ecx, edx
mov dword [ebp - 0x2108], ebx
sar ecx, 1
lea eax, [ecx + 2]
mul edi
cmp edx, ebx
ja 0x403086
cmp eax, 0xffffffff
ja 0x403086
cmp eax, 0x100
jbe 0x402df1
push eax
lea ecx, [ebp - 0x2108]
call fcn.00404afe
mov esi, dword [ebp - 0x2108]
jmp 0x402dfd
lea esi, [ebp - 0x2104]
mov dword [ebp - 0x2108], esi
test esi, esi
je 0x402e6b
cmp word [ebp - 0x2004], 0
lea ebx, [ebp - 0x2004]
je 0x402e46
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [ebx]
cmp ecx, 0x5c
jne 0x402e38
push 0x30
pop edx
cmp word [eax], dx
jne 0x402e38
xor ecx, ecx
push eax
mov word [esi], cx
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
jmp 0x402e3d
mov word [esi], cx
add ebx, edi
xor eax, eax
add esi, edi
cmp word [ebx], ax
jne 0x402e11
mov ecx, dword [ebp - 0x2114]
xor eax, eax
mov dword [esi], eax
push dword [ebp - 0x2108]
push dword [ebp - 0x2110]
call fcn.00402465
mov esi, dword [ebp - 0x2108]
mov edi, eax
jmp 0x402e6e
push 0xe
pop edi
lea eax, [ebp - 0x2104]
cmp esi, eax
je 0x40304c
lea ecx, [ebp - 0x2108]
call fcn.00404a6a
jmp 0x40304c
lea eax, [ebp - 0x2114]
push eax
xor eax, eax
push eax
push eax
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x403073
mov eax, dword [ebp - 0x2114]
mov dword [ebp - 0x2110], eax
lea eax, [ebp - 0x2110]
push 4
push eax
push 4
jmp 0x40303e
lea ebx, [ebp - 0x2004]
xor edx, edx
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, edi
cmp ax, dx
jne 0x402ed3
sub ebx, ecx
sar ebx, 1
test bl, 1
je 0x402ef0
mov eax, 0x80004005
jmp 0x403073
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, 0xffffffff
ja 0x403086
cmp esi, 0x100
jbe 0x402f2e
push esi
lea ecx, [ebp - 0x2108]
call fcn.00404afe
mov eax, dword [ebp - 0x2108]
xor ecx, ecx
jmp 0x402f3a
lea eax, [ebp - 0x2104]
mov dword [ebp - 0x2108], eax
test eax, eax
jne 0x402f55
lea eax, [ebp - 0x2104]
test eax, eax
je 0x402ee6
lea ecx, [ebp - 0x2108]
call fcn.00404a6a
jmp 0x402ee6
push esi
push ecx
push eax
call fcn.004352b0
xor ecx, ecx
add esp, 0xc
mov edi, ecx
test ebx, ebx
jle 0x402fd7
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
jb 0x402fb0
cmp eax, 0x39
jbe 0x402fab
cmp eax, 0x40
jbe 0x402fb0
cmp eax, 0x46
jbe 0x402fa6
add eax, 0xffffff9f
cmp eax, 5
ja 0x402fb0
sub dl, 0x57
jmp 0x402fb2
sub dl, 0x37
jmp 0x402fb2
sub dl, 0x30
jmp 0x402fb2
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 0x402f68
mov esi, dword [ebp - 0x2118]
mov eax, dword [ebp - 0x2114]
push esi
push dword [ebp - 0x2108]
push 3
push ecx
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 0x40304c
lea ecx, [ebp - 0x2108]
call fcn.00404a6a
jmp 0x40304c
lea ecx, [ebp - 0x2004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
cmp ax, word [ebp - 0x2118]
jne 0x40301b
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 esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x403059
mov ecx, edi
call fcn.0040206a
jmp 0x403073
push dword [ebp - 0x211c]
mov ecx, dword [ebp - 0x2120]
call fcn.00402b81
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043223c
mov esp, ebp
pop ebp
ret 0xc
push 0x80070216
call fcn.00401fa4
int3