Function at 0x52af90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ae4b
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x5ea6f0]
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.004e9830
mov byte [ebp - 4], 1
mov dword [ebp - 0x40], str.SoftwareMacromediaFlashHelper
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 0x52b064
lea edx, [ebp - 0xb0]
push edx
call fcn.004e5370
add esp, 4
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
push eax
lea ecx, [ebp - 0x28]
call fcn.004e9920
lea ecx, [ebp - 0xb0]
call fcn.004e9960
lea ecx, [ebp - 0x28]
call fcn.004e9250
shl eax, 1
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004e9c20
push eax
push 1
push 0
lea ecx, [ebp + 8]
call fcn.004e9c20
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 0x52b0e2
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 0x52b0e2
lea eax, [ebp - 0xc8]
push eax
call fcn.004e5370
add esp, 4
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004e9920
lea ecx, [ebp - 0xc8]
call fcn.004e9960
lea ecx, [ebp - 0x28]
call fcn.004e9250
shl eax, 1
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
push edx
lea ecx, [ebp - 0x28]
call fcn.004e9c20
push eax
push 1
push 0
lea ecx, [ebp + 8]
call fcn.004e9c20
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 0x58237c
lea ecx, [ebp - 0xe0]
call fcn.004e9850
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.004ee830
add esp, 8
mov byte [ebp - 0x2d], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe0]
call fcn.004e9960
movzx edx, byte [ebp - 0x2d]
test edx, edx
je 0x52b217
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x8c], esp
lea eax, [ebp - 0x28]
push eax
call fcn.004e9800
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 0x582470
call fcn.004e9850
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.004e9800
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x3c]
call fcn.00529e60
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x90], esp
lea edx, [ebp - 0x28]
push edx
call fcn.004e9800
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 0x58238c
call fcn.004e9850
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 0x5824dc
call fcn.004e9850
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x3c]
call fcn.00529e60
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x7c], esp
push str.write_value_successful.
call fcn.004e8f40
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x3c]
call fcn.0052b810
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004e9960
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004e9960
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005507d9
mov esp, ebp
pop ebp
ret 0x18