Function at 0x1400217f0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
sub rsp, 0x28
cmp byte [0x1401f295e], 0
jne 0x140021a38
cmp byte [0x1401f2903], 0
jne 0x140021957
xor edx, edx
lea r8, [0x1401efc40]
xor r9d, r9d
lea ecx, [rdx + 0x4a]
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x140021854
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.DisableFontSmoothing_:_Failed_to_get_SPI_value_for_SPI_GETFONTSMOOTHING__0x_08x__n
mov edx, 8
mov r9d, eax
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov byte [0x1401f2903], 0
add rsp, 0x28
ret
mov r9d, dword [reloc.WS2_32.dll_accept]
lea r8, str.DisableFontSmoothing_:_Retrieved_SPI_value_for_SPI_GETFONTSMOOTHING:_0x_08x_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140017a50
xor r9d, r9d
mov byte [0x1401f2903], 1
lea r8, [0x1401efc38]
xor edx, edx
mov ecx, 0x200a
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x1400218ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.DisableFontSmoothing_:_Failed_to_get_SPI_value_for_SPI_GETFONTSMOOTHINGTYPE__0x_08x__n
mov edx, 8
mov r9d, eax
lea rcx, vtable.VNCLog.0
call fcn.140017a50
xor al, al
jmp 0x1400218db
mov r9d, dword [reloc.WS2_32.dll_accept]
lea r8, str.DisableFontSmoothing_:_Retrieved_SPI_value_for_SPI_GETFONTSMOOTHINGTYPE:_0x_08x_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov al, 1
xor r9d, r9d
mov byte [0x1401f295d], al
lea r8, [0x1401efc3c]
xor edx, edx
mov ecx, 0x1048
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x140021921
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.DisableFontSmoothing_:_Failed_to_get_SPI_value_for_SPI_GETCLEARTYPE__0x_08x__n
mov edx, 8
mov r9d, eax
lea rcx, vtable.VNCLog.0
call fcn.140017a50
xor al, al
jmp 0x140021942
mov r9d, dword [reloc.WS2_32.dll_accept]
lea r8, str.DisableFontSmoothing_:_Retrieved_SPI_value_for_SPI_GETCLEARTYPE:_0x_08x_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov al, 1
cmp byte [0x1401f2903], 0
mov byte [0x1401f295c], al
je 0x140021a38
jmp 0x14002195e
movzx eax, byte [0x1401f295c]
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x140021a38
test al, al
je 0x1400219d6
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x1400219d6
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 0x1049
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x1400219b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.DisableFontSmoothing_:_Failed_to_set_SPI_value_for_SPI_SETCLEARTYPE__0x_08x__n
mov edx, 8
mov r9d, eax
lea rcx, vtable.VNCLog.0
call fcn.140017a50
jmp 0x1400219d6
xor r9d, r9d
mov byte [0x1401f295e], 1
lea r8, str.DisableFontSmoothing_:_Set_SPI_value_for_SPI_SETCLEARTYPE:_0x_08x_n
lea rcx, vtable.VNCLog.0
lea edx, [r9 + 9]
call fcn.140017a50
xor edx, edx
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 0x4b]
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x140021a13
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.DisableFontSmoothing_:_Failed_to_set_SPI_value_for_SPI_SETFONTSMOOTHING__0x_08x__n
mov edx, 8
mov r9d, eax
lea rcx, vtable.VNCLog.0
add rsp, 0x28
jmp fcn.140017a50
xor r9d, r9d
mov byte [0x1401f295e], 1
lea r8, str.DisableFontSmoothing_:_Set_SPI_value_for_SPI_SETFONTSMOOTHING:_0x_08x_n
lea rcx, vtable.VNCLog.0
lea edx, [r9 + 9]
add rsp, 0x28
jmp fcn.140017a50
add rsp, 0x28
ret