Function at 0x51ed20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c32c
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x5d86f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004e8750
mov byte [ebp - 4], 1
mov dword [ebp - 0x40], 0x572780
lea eax, [ebp - 0x2c]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp - 0x40]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x51edf4
lea edx, [ebp - 0xb0]
push edx
call fcn.004e4f70
add esp, 4
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
push eax
lea ecx, [ebp - 0x28]
call fcn.004e8840
lea ecx, [ebp - 0xb0]
call fcn.004e8880
lea ecx, [ebp - 0x28]
call fcn.004e8170
shl eax, 1
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004e8b40
push eax
push 1
push 0
lea ecx, [ebp + 8]
call fcn.004e8b40
push eax
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x51ee72
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x51ee72
lea eax, [ebp - 0xc8]
push eax
call fcn.004e4f70
add esp, 4
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004e8840
lea ecx, [ebp - 0xc8]
call fcn.004e8880
lea ecx, [ebp - 0x28]
call fcn.004e8170
shl eax, 1
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
push edx
lea ecx, [ebp - 0x28]
call fcn.004e8b40
push eax
push 1
push 0
lea ecx, [ebp + 8]
call fcn.004e8b40
push eax
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp + 8]
push edx
push 0x572cec
lea ecx, [ebp - 0xe0]
call fcn.004e8770
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.004ed610
add esp, 8
mov byte [ebp - 0x2d], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe0]
call fcn.004e8880
movzx edx, byte [ebp - 0x2d]
test edx, edx
je 0x51efa7
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x8c], esp
lea eax, [ebp - 0x28]
push eax
call fcn.004e8720
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x64], ecx
mov byte [ebp - 4], 3
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x88], esp
push 0x572e00
call fcn.004e8770
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x70], edx
mov byte [ebp - 4], 4
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x94], esp
lea eax, [ebp + 8]
push eax
call fcn.004e8720
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x3c]
call fcn.0051dbf0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x90], esp
lea edx, [ebp - 0x28]
push edx
call fcn.004e8720
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x80], eax
mov byte [ebp - 4], 5
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x98], esp
push 0x572e84
call fcn.004e8770
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x68], ecx
mov byte [ebp - 4], 6
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x6c], esp
push 0x572ec0
call fcn.004e8770
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x3c]
call fcn.0051dbf0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x7c], esp
push str.write_value_successful.
call fcn.004e7e60
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x3c]
call fcn.0051f5a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004e8880
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004e8880
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054546b
mov esp, ebp
pop ebp
ret 0x18