Function at 0x4091b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fcf6
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2124
call fcn.00428880
mov eax, dword [0x44f1f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x2120], edi
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2134], eax
lea eax, [ebp - 0x2014]
push eax
mov dword [ebp - 0x2018], edi
mov dword [ebp - 0x212c], ebx
mov dword [ebp - 0x2128], esi
mov dword [ebp - 0x2124], 0
call fcn.00412c50
test eax, eax
js 0x409593
lea eax, [ebp - 0x2124]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.00418c80
add esp, 8
mov ecx, edi
test eax, eax
jne 0x409258
push 0x20f
call fcn.0040dd50
jmp 0x409593
call fcn.004181a0
lea eax, [ebp - 0x2014]
mov ecx, edi
push eax
call fcn.00412c50
test eax, eax
js 0x409593
movzx eax, word [ebp - 0x2124]
cmp eax, 0x13
jg 0x409471
je 0x4093f3
cmp eax, 8
je 0x4093db
cmp eax, 0x11
jne 0x40957d
lea ebx, [ebp - 0x2014]
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4092a4
sub ebx, ecx
sar ebx, 1
mov dword [ebp - 0x2130], ebx
test bl, 1
jne 0x40933d
mov eax, ebx
lea ecx, [ebp - 0x211c]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
push 0x104
mov dword [ebp - 0x2124], esi
call fcn.00420370
lea ecx, [ebp - 0x211c]
call fcn.00404d10
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x211c]
push esi
mov byte [ebp - 4], 4
call fcn.004095f0
jmp 0x409323
lea ecx, [ebp - 0x211c]
call fcn.00407ac0
test eax, eax
jne 0x409347
lea ecx, [ebp - 0x211c]
call fcn.00406d90
mov eax, 0x80004005
jmp 0x409593
push esi
push 0
push eax
call fcn.00425d50
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x4093a0
lea esp, [esp]
lea ecx, [ebp - 0x211c]
call fcn.00407ac0
mov esi, edi
shr esi, 1
add esi, eax
movzx eax, word [ebp + edi*2 - 0x2014]
push eax
call fcn.0040b820
mov edx, edi
mov ecx, 4
and edx, 1
inc edi
shl edx, 2
add esp, 4
sub ecx, edx
shl al, cl
or byte [esi], al
cmp edi, ebx
jl 0x409360
mov esi, dword [ebp - 0x2124]
push esi
lea ecx, [ebp - 0x211c]
call fcn.00407ac0
mov ecx, dword [ebp - 0x212c]
push eax
push 3
push 0
push dword [ebp - 0x2128]
call fcn.00407ac0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x211c]
mov esi, eax
call fcn.00406d90
jmp 0x409568
push 1
lea eax, [ebp - 0x2014]
mov ecx, ebx
push eax
push esi
call fcn.00417e40
mov esi, eax
jmp 0x40956e
push 4
lea ecx, [ebp - 0x2120]
call fcn.00420370
lea ecx, [ebp - 0x2120]
call fcn.00404d10
lea eax, [ebp - 0x2018]
push eax
push 0
push 0
lea eax, [ebp - 0x2014]
push 0x400
push eax
call fcn.004044a0
add esp, 8
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov dword [ebp - 0x2130], eax
test eax, eax
jns 0x409451
lea ecx, [ebp - 0x2120]
call fcn.00406a60
mov eax, dword [ebp - 0x2130]
jmp 0x409593
push dword [ebp - 0x2018]
mov ecx, ebx
push esi
call fcn.00417ca0
lea ecx, [ebp - 0x2120]
mov esi, eax
call fcn.00406a60
jmp 0x40956e
cmp eax, 0x4008
jne 0x40957d
lea ecx, [ebp - 0x2014]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409485
sub ecx, edx
sar ecx, 1
push 0x104
lea esi, [ecx + 2]
lea ecx, [ebp - 0x211c]
call fcn.00420370
lea ecx, [ebp - 0x211c]
call fcn.00404d10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x211c]
push esi
mov byte [ebp - 4], 1
call fcn.00409610
jmp 0x4094dd
lea ecx, [ebp - 0x211c]
call fcn.00407ac0
mov esi, eax
test esi, esi
je 0x409558
cmp word [ebp - 0x2014], 0
lea edi, [ebp - 0x2014]
je 0x409533
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push edi
call ebx
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x409524
cmp word [eax], 0x30
jne 0x409524
xor ecx, ecx
mov word [esi], cx
add esi, 2
push eax
call ebx
mov edi, eax
jmp 0x40952d
mov word [esi], cx
add esi, 2
add edi, 2
cmp word [edi], 0
jne 0x409504
xor eax, eax
lea ecx, [ebp - 0x211c]
mov dword [esi], eax
call fcn.00407ac0
mov ecx, dword [ebp - 0x212c]
push eax
push dword [ebp - 0x2128]
call fcn.00417d30
mov esi, eax
jmp 0x40955d
mov esi, 0xe
lea ecx, [ebp - 0x211c]
call fcn.00406d90
mov edi, dword [ebp - 0x2120]
test esi, esi
je 0x40957d
push esi
call fcn.0040a9b0
add esp, 4
jmp 0x409593
push dword [ebp - 0x2134]
mov ecx, edi
call fcn.00412c50
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004258e7
mov esp, ebp
pop ebp
ret 0xc