Function at 0x140027d70
Capabilities:
Write file on windows

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x20
mov r14, r9
mov r15, r8
movsxd rbp, edx
test rcx, rcx
je 0x140027db3
cmp dword [rcx], 0
jne 0x140027db3
lea rdx, str.params
add rcx, 0x10
call fcn.1400154c0
mov rcx, rax
test rax, rax
je 0x140027db3
cmp dword [rax], 1
jne 0x140027db3
mov rdx, qword [rax + 0x18]
cmp edx, 2
jge 0x140027dcd
lea rdx, str.srv:_wrong_control_gpu:params_format_n
mov ecx, 2
add rsp, 0x20
pop r15
pop r14
pop rbp
jmp fcn.14000ee60
mov qword [rsp + 0x50], rdi
xor edi, edi
test rdx, rdx
je 0x140027df1
mov rax, qword [rax + 0x20]
mov r8, qword [rax]
test r8, r8
je 0x140027df1
cmp dword [r8], 2
jne 0x140027df1
mov r9, qword [r8 + 0x10]
jmp 0x140027df4
mov r9, rdi
mov qword [rsp + 0x40], rbx
cmp rdx, 1
jb 0x140027e19
jbe 0x140027e19
mov rax, qword [rcx + 0x20]
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x140027e19
cmp dword [rbx], 2
jne 0x140027e19
mov rbx, qword [rbx + 0x10]
jmp 0x140027e1c
mov rbx, rdi
test r9, r9
je 0x140028040
test rbx, rbx
je 0x140028040
mov rcx, r9
mov qword [rsp + 0x48], rsi
call fcn.14002f048
mov rcx, rbx
movsxd rsi, eax
call fcn.14002f048
test eax, eax
js 0x140027e56
mov ecx, 1
cmp eax, ecx
cmovg eax, ecx
mov edi, eax
test esi, esi
js 0x140027e76
cmp esi, dword [0x140065d9c]
jge 0x140027e9d
lea rdx, [0x140068068]
mov byte [rsi + rdx], dil
lea rdx, str.GPU_state_was_set_remotely_n
jmp 0x140027e96
mov eax, dword [0x140065d9c]
test eax, eax
jle 0x140027e8f
mov ecx, eax
movzx eax, dil
lea rdi, [0x140068068]
rep stosb byte [rdi], al
lea rdx, str.GPU_state_was_set_remotely__all_GPUs__n
xor ecx, ecx
call fcn.14000ee60
call fcn.140017200
mov rcx, rbp
mov rbx, rax
call fcn.1400176e0
lea rdx, [0x1400598b4]
mov r8, rax
mov rcx, rbx
call fcn.1400172f0
lea rcx, str.error
mov edx, 5
call fcn.140017150
test eax, eax
je 0x140027f2b
lea rdi, [0x140063868]
test rbx, rbx
je 0x140027f0d
cmp dword [rbx], 0
jne 0x140027f0d
cmp rbx, rdi
je 0x140027f0d
mov r8, qword [rbx + 0x38]
lea rcx, [rbx + 0x10]
lea rdx, str.error
lea rax, [r8 + 1]
mov r9, rdi
mov qword [rbx + 0x38], rax
call fcn.140015340
test eax, eax
je 0x140027f50
mov rax, qword [0x140063870]
cmp rax, 0xffffffffffffffff
je 0x140027f50
dec rax
mov qword [0x140063870], rax
jne 0x140027f50
mov rcx, rdi
jmp 0x140027f4b
mov rax, qword [0x140063870]
cmp rax, 0xffffffffffffffff
je 0x140027f50
dec rax
mov qword [0x140063870], rax
jne 0x140027f50
lea rcx, [0x140063868]
call fcn.140017780
lea rcx, str.result
mov edx, 6
call fcn.140017150
test eax, eax
je 0x140027fbc
lea rdi, [0x140063878]
test rbx, rbx
je 0x140027f9e
cmp dword [rbx], 0
jne 0x140027f9e
cmp rbx, rdi
je 0x140027f9e
mov r8, qword [rbx + 0x38]
lea rcx, [rbx + 0x10]
lea rdx, str.result
lea rax, [r8 + 1]
mov r9, rdi
mov qword [rbx + 0x38], rax
call fcn.140015340
test eax, eax
je 0x140027fe1
mov rax, qword [0x140063880]
cmp rax, 0xffffffffffffffff
je 0x140027fe1
dec rax
mov qword [0x140063880], rax
jne 0x140027fe1
mov rcx, rdi
jmp 0x140027fdc
mov rax, qword [0x140063880]
cmp rax, 0xffffffffffffffff
je 0x140027fe1
dec rax
mov qword [0x140063880], rax
jne 0x140027fe1
lea rcx, [0x140063878]
call fcn.140017780
mov rcx, rbx
call fcn.140014d20
or rsi, 0xffffffffffffffff
mov rbp, rax
inc rsi
cmp byte [rsi + rax], 0
jne 0x140027ff0
movsxd rdi, dword [r14]
movsxd r8, esi
mov rdx, rax
lea rcx, [r15 + rdi]
call fcn.14002e480
lea eax, [rdi + rsi]
mov rsi, qword [rsp + 0x48]
mov dword [r14], eax
test rbx, rbx
je 0x140028036
mov rax, qword [rbx + 8]
cmp rax, 0xffffffffffffffff
je 0x140028036
dec rax
mov qword [rbx + 8], rax
jne 0x140028036
mov rcx, rbx
call fcn.140017780
mov rcx, rbp
call fcn.14002ed70
jmp 0x140028051
lea rdx, str.srv:_wrong_control_gpu:params_format_n
mov ecx, 2
call fcn.14000ee60
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret