Function at 0x51dd70
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c0e2
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
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 - 0x278], ecx
mov dword [ebp - 0x274], 0
mov dword [ebp - 4], 2
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp - 0x238]
call fcn.004e8720
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x268]
push ecx
call fcn.004e34a0
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x24]
call fcn.004e8b40
push eax
lea ecx, [ebp - 0x268]
call fcn.004e8b40
push eax
push 0x577d7c
lea edx, [ebp - 0x250]
push edx
call fcn.004e1e90
add esp, 0x10
mov byte [ebp - 4], 5
lea eax, [ebp - 0x26c]
push eax
push 0x2001f
push 0
lea ecx, [ebp - 0x250]
call fcn.004e8b40
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0
jne 0x51df25
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.005443d0
add esp, 0xc
mov dword [ebp - 0x220], 1
lea eax, [ebp - 0x21c]
push eax
push 0
lea ecx, [ebp - 0x220]
push ecx
push 0
lea ecx, [ebp + 0xc]
call fcn.004e8b40
push eax
mov edx, dword [ebp - 0x26c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x51ded3
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
lea ecx, [ebp + 0xc]
call fcn.004e8b40
push eax
mov eax, dword [ebp - 0x26c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x238]
call fcn.004e88d0
jmp 0x51df16
lea ecx, [ebp + 0x3c]
call fcn.004e8170
shl eax, 1
mov dword [ebp - 0x21c], eax
mov edx, dword [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x238]
call fcn.004e8b40
push eax
push 1
push 0
lea ecx, [ebp + 0xc]
call fcn.004e8b40
push eax
mov eax, dword [ebp - 0x26c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x270], eax
mov ecx, dword [ebp - 0x26c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x51df9a
lea edx, [ebp - 0x26c]
push edx
lea ecx, [ebp - 0x250]
call fcn.004e8b40
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x51df9a
lea ecx, [ebp - 0x238]
call fcn.004e8170
shl eax, 1
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x238]
call fcn.004e8b40
push eax
push 1
push 0
lea ecx, [ebp + 0xc]
call fcn.004e8b40
push eax
mov ecx, dword [ebp - 0x26c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x270], eax
mov edx, dword [ebp - 0x26c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.004e87d0
mov ecx, dword [ebp - 0x274]
or ecx, 1
mov dword [ebp - 0x274], ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x250]
call fcn.004e8880
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x268]
call fcn.004e8880
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x238]
call fcn.004e8880
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.004e8880
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x24]
call fcn.004e8880
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x3c]
call fcn.004e8880
mov eax, dword [ebp + 8]
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 0x4c