Function at 0x4f811d
Capabilities:
Set registry value

Disassembly:
push 0x75c
mov eax, 0x6a33f2
call fcn.0064d018
mov eax, ecx
mov dword [ebp - 0x758], eax
cmp dword [eax + 0x20], 0
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x74c], edi
mov dword [ebp - 0x748], ebx
je 0x4f83c1
cmp dword [edi + 0x10], 0x3fff
jbe 0x4f816b
push ecx
push ecx
lea ecx, [ebp - 0x3b4]
call fcn.004f8911
jmp 0x4f83d3
mov ecx, dword [ebx + 4]
mov eax, ecx
mov esi, dword [ebx]
sub eax, esi
cdq
mov dword [ebp - 0x750], 0x18
idiv dword [ebp - 0x750]
test eax, eax
jne 0x4f819b
push ecx
push ecx
lea ecx, [ebp - 0x3b4]
call fcn.004f8926
jmp 0x4f83d3
xor eax, eax
inc eax
cmp esi, ecx
je 0x4f81e7
mov edi, ecx
mov ebx, eax
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
and dword [ebp - 0x14], 0
push esi
call fcn.0040d595
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
inc eax
add ebx, eax
call fcn.0040d475
add esi, dword [ebp - 0x750]
cmp esi, edi
jne 0x4f81a6
mov edi, dword [ebp - 0x74c]
mov dword [ebp - 0x744], ebx
mov ebx, dword [ebp - 0x748]
mov eax, dword [ebp - 0x744]
add eax, eax
lea ecx, [ebp - 0x768]
push eax
mov dword [ebp - 0x754], eax
call fcn.004f7c0b
and dword [ebp - 4], 0
mov eax, dword [ebx + 4]
mov esi, dword [ebx]
xor ebx, ebx
and dword [ebp - 0x744], 0
mov dword [ebp - 0x748], eax
cmp esi, eax
je 0x4f82af
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040d595
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x764]
mov edx, dword [ebp - 0x768]
sub eax, edx
mov ecx, dword [ebp - 0x18]
push 0
pop eax
cmove edx, eax
lea ebx, [ecx + 1]
test ebx, ebx
je 0x4f827e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0xffffffffffffffff
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x74c], eax
mov eax, dword [ebp - 0x744]
add eax, edx
push ebx
push eax
call fcn.006708b9
add esp, 0x10
cmp eax, 0x50
je 0x4f8319
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x744]
xor ebx, ebx
mov byte [ebp - 4], bl
lea eax, [eax + ecx*2]
add eax, 2
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x744], eax
call fcn.0040d475
add esi, dword [ebp - 0x750]
cmp esi, dword [ebp - 0x748]
jne 0x4f821b
push 7
pop esi
xor eax, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x764]
mov ecx, dword [ebp - 0x768]
sub eax, ecx
push 0
pop eax
cmove ecx, eax
lea eax, [ebp - 0x28]
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x748], eax
mov eax, dword [ebp - 0x744]
add eax, ecx
push 1
push eax
call fcn.006708b9
add esp, 0x10
cmp eax, 0x50
jne 0x4f8346
lea eax, [ebp - 0x75c]
mov dword [ebp - 0x75c], 1
push eax
mov dword [ebp - 0x758], ebx
lea eax, [ebp - 0x748]
jmp 0x4f8333
and dword [ebp - 0x758], 0
lea eax, [ebp - 0x75c]
push eax
mov dword [ebp - 0x75c], ebx
lea eax, [ebp - 0x74c]
push eax
push ecx
push ecx
lea ecx, [ebp - 0x3b4]
call fcn.004395b1
jmp 0x4f83d3
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.0040d475
mov eax, dword [ebp - 0x764]
mov ecx, edi
sub eax, dword [ebp - 0x768]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x768]
cmp dword [edi + 0x14], 8
jb 0x4f8371
mov ecx, dword [edi]
push dword [ebp - 0x754]
push eax
push esi
mov esi, dword [ebp - 0x758]
push ebx
push ecx
push dword [esi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4f83ae
lea ecx, [esi + 8]
push ecx
push edi
push ecx
push eax
push ecx
lea ecx, [ebp - 0x740]
call fcn.004f893b
push 0x811494
lea eax, [ebp - 0x740]
jmp 0x4f83de
lea ecx, [ebp - 0x768]
call fcn.00419dd5
call fcn.0064cfc2
ret 8
push str.ORegistryKey.SetValue_failure:_Cannot_set_multistring._The_registry_key_is_closed_or_not_set
push 0x3a
lea ecx, [ebp - 0x3b4]
call fcn.004253fc
push 0x811494
lea eax, [ebp - 0x3b4]
push eax
call fcn.0064f293
int3