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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e572
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x244], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
lea ecx, [ebp - 0x238]
call fcn.004e98a0
mov byte [ebp - 4], 1
mov dword [ebp - 0x248], 0x5aa638
lea ecx, [ebp - 0x23c]
push ecx
push 0x2001f
push 0
mov edx, dword [ebp - 0x248]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
jne 0x530bba
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.0055ea20
add esp, 0xc
mov dword [ebp - 0x220], 1
lea edx, [ebp - 0x21c]
push edx
push 0
lea eax, [ebp - 0x220]
push eax
push 0
lea ecx, [ebp + 0x10]
call fcn.004e9c70
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x530b2a
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
push ecx
push 0
lea ecx, [ebp + 0x10]
call fcn.004e9c70
push eax
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x238]
call fcn.004e9a20
jmp 0x530ba8
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 1
lea edx, [ebp - 0x26c]
push edx
call fcn.004e5650
add esp, 4
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x238]
call fcn.004e9990
lea ecx, [ebp - 0x26c]
call fcn.004e99d0
lea ecx, [ebp - 0x238]
call fcn.004e92c0
shl eax, 1
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x238]
call fcn.004e9c70
push eax
push 1
push 0
lea ecx, [ebp + 0x10]
call fcn.004e9c70
push eax
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x530c66
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x248]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x530c66
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
lea ecx, [ebp - 0x284]
push ecx
call fcn.004e5650
add esp, 4
mov dword [ebp - 0x250], eax
mov edx, dword [ebp - 0x250]
push edx
lea ecx, [ebp - 0x238]
call fcn.004e9990
lea ecx, [ebp - 0x284]
call fcn.004e99d0
lea ecx, [ebp - 0x238]
call fcn.004e92c0
shl eax, 1
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x238]
call fcn.004e9c70
push eax
push 1
push 0
lea ecx, [ebp + 0x10]
call fcn.004e9c70
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x240], eax
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.004e9920
mov ecx, dword [ebp - 0x244]
or ecx, 1
mov dword [ebp - 0x244], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.004e99d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004e99d0
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.0055e34d
mov esp, ebp
pop ebp
ret 0x20