Function at 0x487cf5
Capabilities:
Set registry value

Disassembly:
mov eax, 0x612238
call fcn.0060bcd8
push ecx
mov eax, 0x2110
call fcn.0060b340
push ebx
push esi
push edi
lea eax, [ebp - 0x2120]
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
call fcn.004882a2
test eax, eax
js 0x48805d
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x2120]
call fcn.00487c1b
test eax, eax
jne 0x487d4a
mov eax, 0x80020009
jmp 0x48805d
mov ecx, esi
call fcn.004888de
lea eax, [ebp - 0x2120]
mov ecx, esi
push eax
call fcn.004882a2
test eax, eax
js 0x48805d
movzx eax, word [ebp - 0x14]
sub eax, 8
je 0x488032
sub eax, 9
je 0x487ee8
dec eax
sub eax, 1
je 0x487eac
sub eax, 0x3ff5
jne 0x48804a
lea eax, [ebp - 0x2120]
push eax
call fcn.005f0068
pop ecx
mov dword [ebp - 0x120], ebx
push 2
mov dword [ebp - 4], ebx
lea ecx, [eax + 2]
pop edx
mov byte [ebp - 4], 1
call fcn.00487cd1
cmp eax, 0x100
jbe 0x487dcc
push eax
lea ecx, [ebp - 0x120]
call fcn.004877d5
jmp 0x487de2
lea esi, [ebp - 0x11c]
mov dword [ebp - 0x120], esi
jmp 0x487de8
mov esi, dword [ebp - 0x120]
test esi, esi
je 0x487e7d
cmp word [ebp - 0x2120], 0
lea edi, [ebp - 0x2120]
je 0x487e35
push edi
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x487e27
push 0x30
pop edx
cmp word [eax], dx
jne 0x487e27
xor ecx, ecx
push eax
mov word [esi], cx
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
jmp 0x487e2d
mov word [esi], cx
add edi, 2
add esi, 2
cmp word [edi], bx
jne 0x487e00
xor eax, eax
mov dword [esi], eax
mov esi, dword [ebp - 0x120]
test esi, esi
jne 0x487e47
push 0xd
jmp 0x487e7f
mov edi, ebx
mov ebx, esi
push ebx
call fcn.005f0068
inc eax
pop ecx
lea ebx, [ebx + eax*2]
lea edi, [edi + eax*2]
cmp eax, 1
jne 0x487e4b
mov eax, dword [ebp + 8]
xor ebx, ebx
push edi
push esi
push 7
push ebx
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [ebp - 0x120]
mov edi, eax
jmp 0x487e80
push 0xe
pop edi
lea eax, [ebp - 0x11c]
cmp esi, eax
je 0x487e95
lea ecx, [ebp - 0x120]
call fcn.004877c0
mov esi, dword [ebp - 0x18]
test edi, edi
je 0x48804a
mov ecx, edi
call fcn.00489080
jmp 0x48805d
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
lea eax, [ebp - 0x2120]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x48805d
mov eax, dword [ebp - 0x14]
push 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push 4
push ebx
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
jmp 0x487e98
lea eax, [ebp - 0x2120]
push eax
call fcn.005f0068
mov dword [ebp - 0x1c], eax
pop ecx
test al, 1
je 0x487f06
mov eax, 0x80004005
jmp 0x48805d
cdq
sub eax, edx
mov dword [ebp - 0x120], ebx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x14], edi
xor edx, edx
mov dword [ebp - 4], 3
inc edx
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.00487cd1
cmp eax, 0x100
jbe 0x487f40
push eax
lea ecx, [ebp - 0x120]
call fcn.004877d5
jmp 0x487f59
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], eax
jmp 0x487f5f
mov eax, dword [ebp - 0x120]
test eax, eax
jne 0x487f7a
lea eax, [ebp - 0x11c]
test eax, eax
je 0x487efc
lea ecx, [ebp - 0x120]
call fcn.004877c0
jmp 0x487efc
push edi
push ebx
push eax
call fcn.005e1720
mov esi, dword [ebp - 0x1c]
add esp, 0xc
test esi, esi
jle 0x487ff6
push 0x30
pop ecx
mov edi, ebx
mov eax, edi
cdq
sub eax, edx
movzx edx, word [ebp + edi*2 - 0x2120]
sar eax, 1
add eax, dword [ebp - 0x120]
mov dword [ebp - 0x1c], eax
mov eax, edx
cmp eax, ecx
jb 0x487fd5
cmp eax, 0x39
jbe 0x487fd0
cmp eax, 0x40
jbe 0x487fd5
cmp eax, 0x46
jbe 0x487fcb
add eax, 0xffffff9f
cmp eax, 5
ja 0x487fd5
sub dl, 0x57
jmp 0x487fd7
sub dl, 0x37
jmp 0x487fd7
sub dl, 0x30
jmp 0x487fd7
mov dl, bl
mov eax, edi
and eax, 1
push 4
shl eax, 2
pop ecx
sub ecx, eax
mov eax, dword [ebp - 0x1c]
shl dl, cl
push 0x30
pop ecx
or byte [eax], dl
inc edi
cmp edi, esi
jl 0x487f91
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
push edi
push dword [ebp - 0x120]
push 3
push ebx
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp - 0x11c]
cmp dword [ebp - 0x120], eax
je 0x487e95
lea ecx, [ebp - 0x120]
call fcn.004877c0
jmp 0x487e95
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2120]
push eax
push dword [ebp + 0xc]
call fcn.004166a8
jmp 0x487ee4
push dword [ebp + 0x10]
mov ecx, esi
call fcn.004882a2
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov 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