Function at 0x4c8540
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [0x82384c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push edi
push ebx
push str..CtrlSM
push 0x759a74
push 0x104
push eax
xor esi, esi
call fcn.004c9220
add esp, 0x14
lea eax, [ebp - 0x20c]
push esi
push 0x40000000
push 3
push esi
push esi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [0x8304e4], 4
mov ecx, eax
mov dword [ebp - 0x2b0], ecx
jne 0x4c8603
nop
cmp edi, 0xffffffff
jne 0x4c860c
inc esi
mov eax, esi
sub eax, 1
jne 0x4c8837
push eax
push ebx
call fcn.004c89a0
add esp, 8
lea eax, [ebp - 0x20c]
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [0x8304e4], 4
mov ecx, eax
mov dword [ebp - 0x2b0], ecx
je 0x4c85b0
cmp edi, 0xffffffff
je 0x4c8837
push 0x9c
lea eax, [ebp - 0x2a8]
push 0
push eax
call fcn.005796b0
add esp, 0xc
mov dword [ebp - 0x2a8], 0x9c
lea eax, [ebp - 0x2a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0
lea eax, [ebp - 0x2b4]
mov dword [ebp - 0x2ac], 0
push eax
push 4
lea eax, [ebp - 0x2ac]
push eax
push 0
push 0
push 0x22019c
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4c86c8
cmp dword [ebp - 0x2b4], 0
jbe 0x4c86c8
push str.aswstm
push str.SYSTEMCurrentControlSetServices_s
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004c9220
add esp, 0x10
lea eax, [ebp - 0x2ac]
push eax
push 1
push 0
lea eax, [ebp - 0x108]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c8831
push dword [ebp - 0x2ac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
jmp 0x4c8828
mov eax, dword [ebp - 0x2a4]
cmp eax, 6
jb 0x4c86e6
jne 0x4c8831
cmp dword [ebp - 0x2a0], 1
ja 0x4c8831
push str.nisdrv
push str.SYSTEMCurrentControlSetServices_s
lea eax, [ebp - 0x108]
mov dword [ebp - 0x2b4], 0
push 0x104
push eax
call fcn.004c9220
add esp, 0x10
lea eax, [ebp - 0x2ac]
push eax
push 1
push 0
lea eax, [ebp - 0x108]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4c8851
push dword [ebp - 0x2ac]
call esi
push ebx
push str.SYSTEMCurrentControlSetServices_s
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004c9220
add esp, 0x10
lea eax, [ebp - 0x2ac]
push eax
push 3
push 0
lea eax, [ebp - 0x108]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c87df
lea eax, [ebp - 0x2b8]
mov dword [ebp - 0x2b8], 4
push eax
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x2bc]
push eax
push 0
push 0x759aa0
push dword [ebp - 0x2ac]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x2ac]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
test al, al
je 0x4c87d9
cmp dword [ebp - 0x2b4], 0
jne 0x4c87d9
push 0
push ebx
call fcn.004c8e60
add esp, 8
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.aswstm
push str.SYSTEMCurrentControlSetServices_s
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004c9220
add esp, 0x10
lea eax, [ebp - 0x2b8]
push eax
push 1
push 0
lea eax, [ebp - 0x108]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c8831
push dword [ebp - 0x2b8]
call esi
push 0
push ebx
call fcn.004c8d30
add esp, 8
mov ecx, dword [ebp - 0x2b0]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fb522
mov esp, ebp
pop ebp
ret
push str.360netmon
call fcn.004c8cb0
add esp, 4
test al, al
jne 0x4c8741
push str.symnets
call fcn.004c8cb0
add esp, 4
test al, al
jne 0x4c8741
lea eax, [ebp - 0x2b4]
push eax
push ebx
push 0
call fcn.004c8250
add esp, 0xc
jmp 0x4c87df