Function at 0x402dd0
Capabilities:
Set registry value

Disassembly:
mov eax, 0x2114
call fcn.00405320
push ebp
push esi
lea eax, [esp + 0x11c]
mov ebp, ecx
xor esi, esi
push eax
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], esi
call fcn.00402050
cmp eax, esi
jl 0x403122
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x120]
push edx
call fcn.00403180
add esp, 8
test eax, eax
jne 0x402e26
pop esi
mov eax, 0x80020009
pop ebp
add esp, 0x2114
ret 0xc
mov eax, dword [ebp]
xor ecx, ecx
mov cx, word [eax]
push ebx
push ecx
mov ecx, ebp
call fcn.00402000
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
je 0x402e5b
mov edx, dword [ebp]
push edx
call ebx
xor ecx, ecx
mov dword [ebp], eax
mov cx, word [eax]
push ecx
mov ecx, ebp
call fcn.00402000
test eax, eax
jne 0x402e41
lea edx, [esp + 0x120]
push edx
mov ecx, ebp
call fcn.00402050
cmp eax, esi
jl 0x403121
movzx eax, word [esp + 0x10]
cmp eax, 0x13
push edi
jg 0x403049
je 0x402ff0
cmp eax, 8
je 0x402fb6
cmp eax, 0x11
jne 0x403107
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test bl, 1
jne 0x402ee8
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
cmp ebp, 0x100
mov dword [esp + 0x20], 0
jbe 0x402efa
push ebp
lea ecx, [esp + 0x24]
call fcn.00401e50
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x402f02
lea ecx, [esp + 0x24]
test ecx, ecx
je 0x402ee8
lea ecx, [esp + 0x20]
call fcn.00401e40
pop edi
pop ebx
pop esi
mov eax, 0x80004005
pop ebp
add esp, 0x2114
ret 0xc
lea edi, [esp + 0x24]
mov dword [esp + 0x20], edi
mov ecx, ebp
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
test ebx, ebx
jle 0x402f5b
lea ebx, [ebx]
mov eax, dword [esp + 0x20]
mov esi, edi
shr esi, 1
add esi, eax
xor eax, eax
mov ax, word [esp + edi*2 + 0x124]
push eax
call fcn.00403230
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
mov ecx, 4
sub ecx, edx
mov dl, byte [esi]
shl al, cl
add esp, 4
or dl, al
inc edi
cmp edi, ebx
mov byte [esi], dl
jl 0x402f20
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x212c]
mov eax, dword [esp + 0x2128]
mov eax, dword [eax]
push ebp
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x20]
mov esi, eax
lea eax, [esp + 0x24]
cmp ecx, eax
je 0x402f94
lea ecx, [esp + 0x20]
call fcn.00401e40
mov ebp, dword [esp + 0x10]
test esi, esi
je 0x403105
push esi
call fcn.00402b90
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x2114
ret 0xc
lea ecx, [esp + 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x212c]
lea edx, [eax + eax + 2]
push edx
mov edx, dword [esp + 0x212c]
lea eax, [esp + 0x128]
push eax
mov eax, dword [edx]
push 1
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x402f98
call dword [0x408030]
lea ecx, [esp + 0x10]
push ecx
push esi
push esi
lea edx, [esp + 0x130]
push edx
mov dword [esp + 0x2c], esi
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x212c]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2134]
mov ecx, dword [eax]
push esi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00401930
jmp 0x402f98
cmp eax, 0x4008
jne 0x403107
lea edx, [esp + 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], esi
call fcn.004032a0
mov edi, dword [esp + 0x20]
cmp edi, esi
je 0x4030e6
cmp word [esp + 0x124], 0
lea esi, [esp + 0x124]
je 0x4030c0
lea ecx, [ecx]
push esi
call ebx
mov cx, word [esi]
cmp cx, 0x5c
jne 0x4030b1
cmp word [eax], 0x30
jne 0x4030b1
mov word [edi], 0
push eax
add edi, 2
call ebx
mov esi, eax
jmp 0x4030ba
mov word [edi], cx
add edi, 2
add esi, 2
cmp word [esi], 0
jne 0x403090
mov edx, dword [esp + 0x212c]
mov word [edi], 0
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x212c]
push edx
call fcn.00403130
mov edi, dword [esp + 0x20]
mov esi, eax
jmp 0x4030eb
mov esi, 0xe
lea eax, [esp + 0x24]
cmp edi, eax
je 0x402f98
lea ecx, [esp + 0x20]
call fcn.00401e40
jmp 0x402f98
xor esi, esi
mov ecx, dword [esp + 0x2130]
push ecx
mov ecx, ebp
call fcn.00402050
xor edx, edx
cmp eax, esi
setge dl
pop edi
dec edx
and eax, edx
pop ebx
pop esi
pop ebp
add esp, 0x2114
ret 0xc