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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576afa
mov eax, dword fs:[0]
push eax
sub esp, 0x270
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 - 0x278], ecx
push 0x57e3d0
lea ecx, [ebp - 0x254]
call fcn.004e9890
mov dword [ebp - 4], 0
push 0x57e420
lea ecx, [ebp - 0x23c]
call fcn.004e9890
mov byte [ebp - 4], 1
mov dword [ebp - 0x264], reloc.WS2_32.dll_bind
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x224], 0x104
push 0x104
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.0054cf60
add esp, 0xc
lea ecx, [ebp - 0x258]
push ecx
lea ecx, [ebp - 0x254]
call fcn.004e9c60
push eax
mov edx, dword [ebp - 0x264]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
push str.svcVersion
mov eax, dword [ebp - 0x258]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x268], eax
push 0x2e
lea ecx, [ebp - 0x218]
push ecx
call fcn.00543eb0
add esp, 8
mov dword [ebp - 0x274], eax
cmp dword [ebp - 0x274], 0
je 0x52775e
lea edx, [ebp - 0x218]
push edx
call fcn.0054a5fe
add esp, 4
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x5277cb
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
push 0x57e56c
mov eax, dword [ebp - 0x258]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x268], eax
push 0x2e
lea ecx, [ebp - 0x218]
push ecx
call fcn.00543eb0
add esp, 8
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0
je 0x5277cb
lea edx, [ebp - 0x218]
push edx
call fcn.0054a5fe
add esp, 4
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x258]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x260], ecx
mov edx, dword [ebp - 0x260]
sub edx, 7
mov dword [ebp - 0x260], edx
cmp dword [ebp - 0x260], 4
ja case.default.0x527802
mov eax, dword [ebp - 0x260]
jmp dword [eax*4 + 0x527930]
mov dword [ebp - 0x21c], 0x2af8
jmp 0x52786b
mov dword [ebp - 0x21c], 0x2710
jmp 0x52786b
mov dword [ebp - 0x21c], 0x2328
jmp 0x52786b
mov dword [ebp - 0x21c], 0x1f40
jmp 0x52786b
mov dword [ebp - 0x21c], 0x1b58
jmp 0x52786b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x23c]
call fcn.004e99a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x254]
call fcn.004e99a0
jmp 0x527913
mov dword [ebp - 0x25c], 0
lea ecx, [ebp - 0x25c]
push ecx
lea ecx, [ebp - 0x23c]
call fcn.004e9c60
push eax
mov edx, dword [ebp - 0x264]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x5278e5
mov dword [ebp - 0x26c], 4
mov eax, dword [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x21c]
push ecx
push 4
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x25c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x5278d9
mov ecx, dword [ebp - 0x258]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5278e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x27c], eax
mov edx, dword [ebp - 0x264]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x23c]
call fcn.004e99a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x254]
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 4