Function at 0x49c96a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c39b1
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2128
call fcn.004333d8
mov eax, dword [0x6fe1c0]
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 - 0x2128], edi
mov dword [ebp - 0x2120], edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x212c], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2124], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2138], eax
xor ebx, ebx
mov dword [ebp - 0x211c], ebx
lea eax, [ebp - 0x2014]
push eax
call fcn.0049d124
test eax, eax
js 0x49cd77
lea edx, [ebp - 0x211c]
lea ecx, [ebp - 0x2014]
call fcn.0049c7f8
test eax, eax
jne 0x49ca04
mov eax, 0x80020009
jmp 0x49cd77
mov ecx, edi
call fcn.0049da20
lea eax, [ebp - 0x2014]
push eax
mov ecx, edi
call fcn.0049d124
test eax, eax
js 0x49cd77
movzx eax, word [ebp - 0x211c]
sub eax, 8
je 0x49cd25
sub eax, 9
je 0x49cbc0
dec eax
sub eax, 1
je 0x49cb62
sub eax, 0x3ff5
jne 0x49cd64
lea ecx, [ebp - 0x2014]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x49ca58
sub ecx, edx
sar ecx, 1
add ecx, 2
mov dword [ebp - 0x2118], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
push 2
pop edx
call fcn.0048db84
cmp eax, 0x100
jbe 0x49ca94
push eax
lea ecx, [ebp - 0x2118]
call fcn.0048dba3
jmp 0x49caa0
lea eax, [ebp - 0x2114]
mov dword [ebp - 0x2118], eax
mov dword [ebp - 4], ebx
jmp 0x49cabc
mov esi, dword [ebp - 0x2118]
test esi, esi
je 0x49cb28
lea edi, [ebp - 0x2014]
cmp word [ebp - 0x2014], 0
je 0x49cb09
push edi
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x49cafb
cmp word [eax], 0x30
jne 0x49cafb
xor ecx, ecx
mov word [esi], cx
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
jmp 0x49cb01
mov word [esi], cx
add edi, 2
add esi, 2
cmp word [edi], bx
jne 0x49cad6
xor eax, eax
mov dword [esi], eax
push dword [ebp - 0x2118]
push dword [ebp - 0x2124]
mov ecx, dword [ebp - 0x212c]
call fcn.0049c860
mov esi, eax
jmp 0x49cb2b
push 0xe
pop esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2114]
cmp dword [ebp - 0x2118], eax
je 0x49cb48
lea ecx, [ebp - 0x2118]
call fcn.0048dbf0
mov edi, dword [ebp - 0x2128]
test esi, esi
je 0x49cd64
mov ecx, esi
call fcn.0049d0f4
jmp 0x49cd77
mov dword [ebp - 0x2134], ebx
mov dword [ebp - 4], 3
lea eax, [ebp - 0x2120]
push eax
push ebx
push ebx
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
jns 0x49cb92
or dword [ebp - 4], 0xffffffff
jmp 0x49cd77
mov eax, dword [ebp - 0x2120]
mov dword [ebp - 0x211c], eax
push 4
lea eax, [ebp - 0x211c]
push eax
push 4
push ebx
push dword [ebp - 0x2124]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
or dword [ebp - 4], 0xffffffff
jmp 0x49cb4e
lea ecx, [ebp - 0x2014]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x49cbc9
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x2130], ecx
mov dword [ebp - 0x2134], ecx
test cl, 1
jne 0x49cc74
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x211c], eax
mov dword [ebp - 0x2118], ebx
push 4
pop edi
mov dword [ebp - 4], edi
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x2118]
call fcn.0049c8bc
mov dword [ebp - 4], edi
mov esi, dword [ebp - 0x2130]
jmp 0x49cc48
mov eax, dword [ebp - 0x211c]
cmp dword [ebp - 0x2118], 0
jne 0x49cc7e
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2114]
cmp dword [ebp - 0x2118], eax
je 0x49cc74
lea ecx, [ebp - 0x2118]
call fcn.0048dbf0
mov eax, 0x80004005
jmp 0x49cd77
push eax
push ebx
push dword [ebp - 0x2118]
call fcn.00436326
add esp, 0xc
mov edx, ebx
mov dword [ebp - 0x2120], edx
test esi, esi
jle 0x49ccda
mov ebx, dword [ebp - 0x2130]
mov edi, edx
shr edi, 1
mov esi, dword [ebp - 0x2118]
mov cx, word [ebp + edx*2 - 0x2014]
call fcn.0049c8ea
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [edi + esi], al
mov edx, dword [ebp - 0x2120]
inc edx
mov dword [ebp - 0x2120], edx
cmp edx, ebx
jl 0x49cca0
xor ebx, ebx
push dword [ebp - 0x211c]
push dword [ebp - 0x2118]
push 3
push ebx
push dword [ebp - 0x2124]
mov eax, dword [ebp - 0x212c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2114]
cmp dword [ebp - 0x2118], eax
je 0x49cb48
lea ecx, [ebp - 0x2118]
call fcn.0048dbf0
jmp 0x49cb48
lea ecx, [ebp - 0x2014]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x49cd2e
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x2014]
push eax
push 1
push ebx
push dword [ebp - 0x2124]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x49cb4e
push dword [ebp - 0x2138]
mov ecx, edi
call fcn.0049d124
test eax, eax
js 0x49cd77
xor eax, eax
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.0040548e
leave
ret 0xc