Function at 0x4051b0
Capabilities:
Check os version
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x467362
mov eax, dword fs:[0]
push eax
mov eax, 0x10bc4
call fcn.00450b30
mov eax, dword [0x487bb0]
xor eax, esp
mov dword [esp + 0x10bc0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x487bb0]
xor eax, esp
push eax
lea eax, [esp + 0x10bd8]
mov dword fs:[0], eax
push 0x208
xor ebx, ebx
lea eax, [esp + 0x1c0]
push ebx
push eax
call fcn.0044fe60
mov eax, dword [0x486e58]
add esp, 0xc
cmp dword [0x486e6c], 8
jae 0x40521a
mov eax, 0x486e58
push str.ADSvc.exe
push eax
lea ecx, [esp + 0x1c4]
push 0x46c8b4
push ecx
call fcn.00401040
push 0x11c
lea edx, [esp + 0xb4]
push ebx
push edx
call fcn.0044fe60
add esp, 0x1c
lea eax, [esp + 0xa0]
push eax
mov dword [esp + 0xa4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4055e4
push 0x1080f
lea ecx, [esp + 0x3c9]
push ebx
push ecx
mov byte [esp + 0x3d0], bl
call fcn.0044fe60
add esp, 0xc
cmp dword [esp + 0xa4], 6
push str.ADSafe.exe
lea ecx, [esp + 0x50]
jb 0x405429
call fcn.00404430
push 0x3a8
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x10bec], ebx
call fcn.0040b0b0
mov esi, eax
push 0x3a8
lea ecx, [esp + 0x40]
push 0x486e54
push ecx
mov byte [esp + 0x10bf8], 1
call fcn.0040b0b0
mov edi, 0x10
add esp, 0x18
cmp dword [esi + 0x18], edi
jb 0x4052ed
mov esi, dword [esi + 4]
jmp 0x4052f0
add esi, 4
cmp dword [eax + 0x18], edi
jb 0x4052fa
mov eax, dword [eax + 4]
jmp 0x4052fd
add eax, 4
push esi
push eax
lea edx, [esp + 0x3cc]
push str.netsh_advfirewall_firewall_add_rule_name_ADSafe__dirin_actionallow_program__s_s__enableyes
push edx
call fcn.0044ff2b
add esp, 0x10
cmp dword [esp + 0x48], edi
jb 0x405327
mov eax, dword [esp + 0x34]
push eax
call fcn.0044fc16
add esp, 4
mov ebp, 0xf
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
cmp dword [esp + 0x2c], edi
jb 0x40534b
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0044fc16
add esp, 4
cmp dword [esp + 0x64], 8
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov dword [esp + 0x10be0], 0xffffffff
jb 0x405376
mov edx, dword [esp + 0x50]
push edx
call fcn.0044fc16
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_WinExec]
push ebx
lea eax, [esp + 0x3c8]
push eax
call esi
lea ecx, [esp + 0x1bc]
push ecx
lea ecx, [esp + 0x50]
call fcn.00404430
push 0x3a8
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x10bec], 2
call fcn.0040b0b0
add esp, 0xc
cmp dword [eax + 0x18], edi
jb 0x4053c4
mov eax, dword [eax + 4]
jmp 0x4053c7
add eax, 4
push eax
lea ecx, [esp + 0x3c8]
push str.netsh_advfirewall_firewall_add_rule_name_ADSafeSvc__dirin_actionallow_program__s__enableyes
push ecx
call fcn.0044ff2b
add esp, 0xc
cmp dword [esp + 0x2c], edi
jb 0x4053f0
mov edx, dword [esp + 0x18]
push edx
call fcn.0044fc16
add esp, 4
cmp dword [esp + 0x64], 8
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov dword [esp + 0x10be0], 0xffffffff
jb 0x40541b
mov eax, dword [esp + 0x50]
push eax
call fcn.0044fc16
add esp, 4
push ebx
lea ecx, [esp + 0x3c8]
push ecx
jmp 0x4055e2
call fcn.00404430
push 0x3a8
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x10bec], 3
call fcn.0040b0b0
mov esi, eax
push 0x3a8
lea ecx, [esp + 0x24]
push 0x486e54
push ecx
mov byte [esp + 0x10bf8], 4
call fcn.0040b0b0
mov edi, 0x10
add esp, 0x18
cmp dword [esi + 0x18], edi
jb 0x40547d
mov esi, dword [esi + 4]
jmp 0x405480
add esi, 4
cmp dword [eax + 0x18], edi
jb 0x40548a
mov eax, dword [eax + 4]
jmp 0x40548d
add eax, 4
push esi
push eax
lea edx, [esp + 0x3cc]
push str.netsh_firewall_add_allowedprogram___s_s___ADSafe__ENABLE
push edx
call fcn.0044ff2b
add esp, 0x10
cmp dword [esp + 0x2c], edi
jb 0x4054b7
mov eax, dword [esp + 0x18]
push eax
call fcn.0044fc16
add esp, 4
mov ebp, 0xf
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
cmp dword [esp + 0x48], edi
jb 0x4054db
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0044fc16
add esp, 4
cmp dword [esp + 0x64], 8
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov dword [esp + 0x10be0], 0xffffffff
jb 0x405506
mov edx, dword [esp + 0x50]
push edx
call fcn.0044fc16
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_WinExec]
push ebx
lea eax, [esp + 0x3c8]
push eax
call esi
lea ecx, [esp + 0x1bc]
push ecx
lea ecx, [esp + 0x6c]
call fcn.00404430
push 0x3a8
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x8c]
push eax
mov dword [esp + 0x10bec], 5
call fcn.0040b0b0
add esp, 0xc
cmp dword [eax + 0x18], edi
jb 0x405557
mov eax, dword [eax + 4]
jmp 0x40555a
add eax, 4
push eax
lea ecx, [esp + 0x3c8]
push str.netsh_firewall_add_allowedprogram___s___ADSafeSvc__ENABLE
push ecx
call fcn.0044ff2b
add esp, 0xc
cmp dword [esp + 0x9c], edi
jb 0x405589
mov edx, dword [esp + 0x88]
push edx
call fcn.0044fc16
add esp, 4
cmp dword [esp + 0x80], 8
mov dword [esp + 0x9c], ebp
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
mov dword [esp + 0x10be0], 0xffffffff
jb 0x4055c0
mov eax, dword [esp + 0x6c]
push eax
call fcn.0044fc16
add esp, 4
xor ecx, ecx
push ebx
lea edx, [esp + 0x3c8]
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], ebx
mov word [esp + 0x70], cx
push edx
call esi
push 1
push ebx
lea eax, [esp + 0x1c4]
push str._install
push eax
call fcn.004236d0
add esp, 0x10
cmp dword [0x486b20], ebx
jne 0x40561c
push 1
push ebx
lea ecx, [esp + 0x1c4]
push str._manualstart
push ecx
call fcn.004236d0
add esp, 0x10
mov ecx, dword [esp + 0x10bd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10bc0]
xor ecx, esp
call fcn.0044ffb3
add esp, 0x10bd0
ret