Function at 0x4fff40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x30
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
mov ecx, 0xc
rep stosd dword es:[edi], eax
pop edi
pop ecx
mov dword [ebp - 0x34], ecx
mov byte [ebp - 0x29], 0
call fcn.0056d3b0
cmp al, 0
je 0x50004c
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x4fff81
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov ebx, dword [edx + 0x10]
jmp 0x4fff87
mov ebx, dword [0x63df30]
call fcn.00546dd0
cmp ebx, eax
je 0x50004c
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x4fffa6
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
jmp 0x4fffac
mov edx, dword [0x63df30]
cmp dword [0x63df38], edx
jne 0x4fffbd
mov byte [ebp - 0x29], 1
jmp 0x50004c
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0
je 0x4fffd0
mov edx, dword [ebp - 0x1c]
inc dword [edx]
call fcn.00546dd0
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00546b10
add esp, 0xc
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x4ffff8
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
jmp 0x4ffffd
mov eax, dword [0x63df30]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00546b10
add esp, 0xc
cmp dword [ebp - 0x20], 0
je 0x50001c
mov ecx, dword [ebp - 0x20]
call fcn.00589d70
cmp dword [ebp - 0x1c], 0
je 0x50002a
mov ecx, dword [ebp - 0x1c]
call fcn.00589d70
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.0058b670
cmp eax, 0
je 0x50003e
mov byte [ebp - 0x29], 1
cmp dword [ebp - 8], 0
je 0x50004c
mov ecx, dword [ebp - 8]
call fcn.00589d70
cmp byte [ebp - 0x29], 0
je 0x5000fc
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.0058a430
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0058a430
cmp dword [ebp - 0x10], 0
je 0x5000a1
mov edx, dword [ebp - 0x10]
mov ebx, dword [0x63df38]
mov edx, dword [edx + 0x10]
cmp ebx, edx
jne 0x500097
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0xc]
cmp edx, 0x80000000
sbb edx, 0xffffffff
sar edx, 1
jmp 0x5000a6
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0xc]
shr edx, 1
jmp 0x5000a6
mov edx, 0
mov edx, edx
add edx, 1
lea edx, [edx + edx]
push edx
lea ecx, [ebp - 0x10]
call fcn.0058a750
push eax
push 7
push 0
lea ecx, [ebp - 0xc]
call fcn.0058a750
push eax
mov eax, dword [ebp - 0x34]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, 0
sete bl
cmp dword [ebp - 0x10], 0
je 0x5000e4
mov ecx, dword [ebp - 0x10]
call fcn.00589d70
cmp dword [ebp - 0xc], 0
je 0x5000f2
mov ecx, dword [ebp - 0xc]
call fcn.00589d70
mov al, bl
lea esp, [ebp - 4]
pop ebx
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
je 0x50010f
mov edx, dword [ebp - 0x24]
inc dword [edx]
call fcn.00546dd0
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00546b10
add esp, 0xc
cmp dword [ebp - 0x24], 0
je 0x500133
mov ecx, dword [ebp - 0x24]
call fcn.00589d70
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0
je 0x500146
mov edx, dword [ebp - 0x28]
inc dword [edx]
call fcn.00546dd0
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00546b10
add esp, 0xc
cmp dword [ebp - 0x28], 0
je 0x50016a
mov ecx, dword [ebp - 0x28]
call fcn.00589d70
mov dword [ebp - 0x30], 1
cmp byte [ebp + 0x10], 0
je 0x50017e
mov dword [ebp - 0x30], 2
cmp dword [ebp - 0x18], 0
je 0x50018c
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
jmp 0x500191
mov eax, 0
push eax
lea ecx, [ebp - 0x18]
call fcn.0058a720
push eax
push dword [ebp - 0x30]
push 0
lea ecx, [ebp - 0x14]
call fcn.0058a690
push eax
mov eax, dword [ebp - 0x34]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, 0
sete bl
cmp dword [ebp - 0x18], 0
je 0x5001c8
mov ecx, dword [ebp - 0x18]
call fcn.00589d70
cmp dword [ebp - 0x14], 0
je 0x5001d6
mov ecx, dword [ebp - 0x14]
call fcn.00589d70
mov al, bl
lea esp, [ebp - 4]
pop ebx
pop ebp
ret 0xc