Function at 0x14004fd10
Capabilities:
Check os version
Modify service

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
lea rbp, [rax - 0xc8]
sub rsp, 0x1b0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14017c430]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rdi, rcx
mov qword [rsp + 0x78], rcx
xor r12d, r12d
mov qword [rcx + 8], r12
add rcx, 0x50
lea rdx, [0x14012a890]
call fcn.140002ad0
nop
lea rcx, [rdi + 0x78]
call fcn.14009e3a0
nop
lea rsi, [rdi + 0xa8]
mov qword [rsp + 0x20], rsi
lea rcx, [0x14017bd30]
mov rax, qword [0x14017bd30]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsi], rax
lea rbx, [rdi + 0xb0]
mov qword [rsp + 0x20], rbx
lea rcx, [0x14017bd30]
mov rax, qword [0x14017bd30]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
lea rcx, [rdi + 0xb8]
call fcn.140059550
nop
lea rbx, [rdi + 0x148]
mov qword [rsp + 0x20], rbx
mov rcx, rbx
call fcn.140052990
nop
lea rcx, [rdi + 0x250]
call fcn.14004cc80
nop
movss xmm3, dword [0x14013e768]
mov edx, 1
mov r8d, edx
mov rcx, rbx
call fcn.140052c00
mov ecx, r12d
test eax, eax
setns cl
test ecx, ecx
jne 0x14004fe26
mov dword [rsp + 0x28], 0x80004005
lea rdx, [0x140176950]
lea rcx, [rsp + 0x28]
call fcn.1400de560
int3
mov byte [rdi + 0x140], 0
xor edx, edx
mov r8d, 0x11c
lea rcx, [rbp - 0x80]
call fcn.1400dd9f0
mov dword [rbp - 0x80], 0x11c
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x14004fe64
mov dword [rbp - 0x80], 0x114
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rbp - 0x70], 2
jne 0x14004fe7d
cmp dword [rbp - 0x7c], 5
jne 0x14004fe7d
cmp dword [rbp - 0x78], 0
jne 0x14004fe7d
mov byte [rdi + 0x140], 1
mov dword [rdi + reloc.WS2_32.dll_recv], 0x10
mov dword [rdi + 0x14], 1
mov qword [rdi + 0x18], 0x85
mov qword [rdi + 0x24], r12
mov dword [rdi + 0x20], r12d
mov qword [0x140183630], rdi
mov qword [rdi + 0x68], r12
lea rcx, [rsp + 0x38]
call fcn.140085530
nop
lea r8, str.svc.log
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400162e0
nop
mov rdx, rax
mov rcx, rsi
call fcn.140001cf0
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14004fef5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x14004ff12
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x14004ffcc
mov r8d, 0xf01ff
lea rdx, [0x14012c3f8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x14004ffc2
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0x3e8
mov dword [rsp + 0x48], 0xffffffff
lea rax, [0x140129a38]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x48]
mov edx, 2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
lea r11, str.Time_Control_Service
mov qword [rsp + 0x20], r11
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rax, rdi
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400d4d90
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret