Function at 0x45fe50
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2108]
mov eax, 0x2108
call fcn.004865f0
push 0xffffffffffffffff
push 0x4948e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4bd450]
xor eax, ebp
mov dword [ebp + 0x2104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x24], esi
mov ebx, dword [ebp + 0x2110]
mov dword [ebp - 0x1c], ebx
mov edi, edx
mov dword [ebp - 0x18], edi
mov eax, dword [ebp + 0x2114]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
lea eax, [ebp + 0x104]
call fcn.00460580
test eax, eax
jl 0x460202
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 0x104]
push edx
call fcn.0045fc60
add esp, 8
test eax, eax
jne 0x45fee7
mov eax, 0x80020009
jmp 0x460202
call fcn.00460eb0
lea eax, [ebp + 0x104]
mov ecx, esi
call fcn.00460580
test eax, eax
jl 0x460202
movzx eax, word [ebp - 0x14]
cmp eax, 0x13
jg 0x4600d5
je 0x460082
cmp eax, 8
je 0x460054
cmp eax, 0x11
jne 0x4601ee
lea eax, [ebp + 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test bl, 1
jne 0x45ffc8
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x14], edi
xor ecx, ecx
mov dword [ebp], ecx
mov esi, 4
mov dword [ebp - 4], esi
mov byte [ebp - 4], 5
mov eax, edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
cmp ecx, ecx
ja 0x45ff6d
cmp eax, 0xffffffff
jbe 0x45ff77
push 0x80070057
call fcn.00404ad0
cmp eax, 0x100
jbe 0x45ff8c
lea ecx, [ebp]
push ecx
call fcn.0045fdc0
mov dword [ebp - 4], esi
jmp 0x45ffaa
lea edx, [ebp + 4]
mov dword [ebp], edx
mov dword [ebp - 4], esi
jmp 0x45ffaa
mov eax, dword [ebp]
test eax, eax
jne 0x45ffd2
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x45ffc8
lea eax, [ebp]
call fcn.0045fd60
mov eax, 0x80004005
jmp 0x460202
push edi
push 0
push eax
call fcn.00476ef0
add esp, 0xc
xor esi, esi
test ebx, ebx
jle 0x460019
mov ecx, esi
shr ecx, 1
mov edx, dword [ebp]
lea edi, [ecx + edx]
mov cx, word [ebp + esi*2 + 0x104]
call fcn.0045fde0
mov ecx, esi
and ecx, 1
add ecx, ecx
add ecx, ecx
mov edx, ecx
mov ecx, 4
sub ecx, edx
shl al, cl
or byte [edi], al
inc esi
cmp esi, ebx
jl 0x45ffe4
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
push edi
mov ecx, dword [ebp]
push ecx
push 3
push 0
mov edx, dword [ebp - 0x18]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4601de
lea eax, [ebp]
call fcn.0045fd60
jmp 0x4601de
lea ecx, [ebp + 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp + 0x104]
push eax
push 1
push 0
push edi
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
jmp 0x4601de
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 3
lea edx, [ebp - 0x20]
push edx
push 0
push 0
lea eax, [ebp + 0x104]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x18], ecx
push 4
lea edx, [ebp - 0x18]
push edx
push 4
push 0
push edi
mov eax, dword [ebx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x14]
call fcn.00461820
jmp 0x4601de
cmp eax, 0x4008
jne 0x4601ee
lea ecx, [ebp + 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 2
xor edi, edi
mov dword [ebp], edi
mov dword [ebp - 4], edi
mov byte [ebp - 4], 1
mov edx, 2
mul edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
cmp edx, edi
ja 0x460112
cmp eax, 0xffffffff
jbe 0x46011c
push 0x80070057
call fcn.00404ad0
cmp eax, 0x100
jbe 0x460131
lea ecx, [ebp]
push ecx
call fcn.0045fdc0
mov dword [ebp - 4], edi
jmp 0x46014e
lea edx, [ebp + 4]
mov dword [ebp], edx
mov dword [ebp - 4], edi
jmp 0x46014e
mov esi, dword [ebp]
cmp esi, edi
je 0x4601c2
lea edi, [ebp + 0x104]
cmp word [ebp + 0x104], 0
je 0x4601a3
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
jmp 0x460170
push edi
call ebx
movzx ecx, word [edi]
cmp cx, 0x5c
jne 0x460191
cmp word [eax], 0x30
jne 0x460191
xor ecx, ecx
mov word [esi], cx
add esi, 2
push eax
call ebx
mov edi, eax
jmp 0x46019a
mov word [esi], cx
add esi, 2
add edi, 2
cmp word [edi], 0
jne 0x460170
mov ebx, dword [ebp - 0x1c]
xor edx, edx
mov word [esi], dx
add esi, 2
xor eax, eax
mov word [esi], ax
mov ecx, dword [ebp]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push ebx
call fcn.0045fd70
mov edi, eax
jmp 0x4601c7
mov edi, 0xe
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4601de
lea eax, [ebp]
call fcn.0045fd60
test edi, edi
je 0x4601eb
mov eax, edi
call fcn.00461810
jmp 0x460202
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov ecx, esi
call fcn.00460580
xor ecx, ecx
test eax, eax
setge cl
dec ecx
and eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2104]
xor ecx, ebp
call fcn.00471eba
add ebp, 0x2108
mov esp, ebp
pop ebp
ret 8