Function at 0x4082a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d2d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2118
call fcn.00413890
push ebx
push esi
push edi
lea eax, [ebp - 0x2128]
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
call fcn.004074d0
cmp eax, edi
jl 0x408645
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x2128]
push edx
call fcn.00408700
add esp, 8
test eax, eax
jne 0x408316
mov eax, 0x80020009
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, esi
call fcn.00407470
lea eax, [ebp - 0x2128]
push eax
mov ecx, esi
call fcn.004074d0
cmp eax, edi
jl 0x408645
movzx eax, word [ebp - 0x20]
cmp eax, 0x13
jg 0x40853c
je 0x4084f2
cmp eax, 8
je 0x4084bf
cmp eax, 0x11
jne 0x408630
lea ecx, [ebp - 0x2128]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test bl, 1
mov dword [ebp - 0x1c], ebx
jne 0x408432
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x128], 0
cmp esi, 0x100
mov dword [ebp - 4], 3
mov byte [ebp - 4], 4
jbe 0x4083b6
push esi
lea ecx, [ebp - 0x128]
call fcn.004072e0
jmp 0x408413
lea edi, [ebp - 0x124]
mov dword [ebp - 0x128], edi
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
xor esi, esi
test ebx, ebx
rep stosb byte es:[edi], al
jle 0x40847a
mov edi, edi
mov eax, dword [ebp - 0x128]
mov edx, esi
shr edx, 1
add edx, eax
mov ax, word [ebp + esi*2 - 0x2128]
movzx ecx, ax
add ecx, 0xffffffd0
cmp ecx, 0x36
ja case.0x408406.58
movzx ecx, byte [ecx + 0x408668]
jmp dword [ecx*4 + 0x408658]
mov edi, dword [ebp - 0x128]
test edi, edi
jne 0x4083c2
lea edx, [ebp - 0x124]
test edx, edx
je 0x408432
lea ecx, [ebp - 0x128]
call fcn.004086a0
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
sub al, 0x30
jmp 0x408458
sub al, 0x37
jmp 0x408458
sub al, 0x57
jmp 0x408458
xor al, al
mov ecx, esi
and ecx, 1
shl ecx, 2
mov edi, ecx
mov ecx, 4
sub ecx, edi
shl al, cl
mov cl, byte [edx]
or cl, al
inc esi
cmp esi, ebx
mov byte [edx], cl
jl 0x4083e0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x128]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push 3
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 0x128]
lea edx, [ebp - 0x124]
cmp eax, edx
je 0x40860b
lea ecx, [ebp - 0x128]
call fcn.004086a0
jmp 0x40860b
lea eax, [ebp - 0x2128]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x2128]
push edx
mov edx, dword [ecx]
push 1
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x40860b
call dword [0x43a1d0]
lea eax, [ebp - 0x1c]
push eax
push edi
push edi
lea ecx, [ebp - 0x2128]
push ecx
mov dword [ebp - 0x18], edi
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
push 4
lea eax, [ebp - 0x14]
push eax
push 4
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push edi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.00406e80
jmp 0x40860b
cmp eax, 0x4008
jne 0x408630
lea ecx, [ebp - 0x2128]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov dword [ebp - 0x128], edi
lea edx, [eax + eax]
mov dword [ebp - 4], edi
push edx
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 1
call fcn.004087b0
mov edi, dword [ebp - 0x128]
test edi, edi
je 0x4085f1
cmp word [ebp - 0x2128], 0
lea esi, [ebp - 0x2128]
je 0x4085cf
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push esi
call ebx
mov cx, word [esi]
cmp cx, 0x5c
jne 0x4085c0
cmp word [eax], 0x30
jne 0x4085c0
mov word [edi], 0
push eax
add edi, 2
call ebx
mov esi, eax
jmp 0x4085c9
mov word [edi], cx
add edi, 2
add esi, 2
cmp word [esi], 0
jne 0x408591
mov ecx, dword [ebp + 0xc]
mov word [edi], 0
mov eax, dword [ebp - 0x128]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.004086b0
mov edi, dword [ebp - 0x128]
mov esi, eax
jmp 0x4085f6
mov esi, 0xe
lea edx, [ebp - 0x124]
cmp edi, edx
je 0x40860b
lea ecx, [ebp - 0x128]
call fcn.004086a0
xor edi, edi
cmp esi, edi
je 0x40862d
push esi
call fcn.00408040
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, esi
call fcn.004074d0
xor ecx, ecx
cmp eax, edi
setge cl
dec ecx
and eax, ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc