Function at 0x527270
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576abc
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x5e56f0]
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.004e9870
mov byte [ebp - 4], 1
mov dword [ebp - 0x40], 0x57d998
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 0x527344
lea edx, [ebp - 0xb0]
push edx
call fcn.004e53b0
add esp, 4
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
push eax
lea ecx, [ebp - 0x28]
call fcn.004e9960
lea ecx, [ebp - 0xb0]
call fcn.004e99a0
lea ecx, [ebp - 0x28]
call fcn.004e9290
shl eax, 1
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004e9c60
push eax
push 1
push 0
lea ecx, [ebp + 8]
call fcn.004e9c60
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 0x5273c2
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 0x5273c2
lea eax, [ebp - 0xc8]
push eax
call fcn.004e53b0
add esp, 4
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004e9960
lea ecx, [ebp - 0xc8]
call fcn.004e99a0
lea ecx, [ebp - 0x28]
call fcn.004e9290
shl eax, 1
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
push edx
lea ecx, [ebp - 0x28]
call fcn.004e9c60
push eax
push 1
push 0
lea ecx, [ebp + 8]
call fcn.004e9c60
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 0x57deb4
lea ecx, [ebp - 0xe0]
call fcn.004e9890
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.004ee860
add esp, 8
mov byte [ebp - 0x2d], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe0]
call fcn.004e99a0
movzx edx, byte [ebp - 0x2d]
test edx, edx
je 0x5274f7
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x8c], esp
lea eax, [ebp - 0x28]
push eax
call fcn.004e9840
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 0x57e0f0
call fcn.004e9890
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.004e9840
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x3c]
call fcn.00526140
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x90], esp
lea edx, [ebp - 0x28]
push edx
call fcn.004e9840
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 0x57e15c
call fcn.004e9890
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 0x57e1b8
call fcn.004e9890
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x3c]
call fcn.00526140
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x7c], esp
push str.write_value_successful.
call fcn.004e8f80
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x3c]
call fcn.00527af0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004e99a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004e99a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054caf9
mov esp, ebp
pop ebp
ret 0x18