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

Disassembly:
sub rsp, 0x28
cmp byte [0x1401f297e], 0
jne 0x140022048
cmp byte [0x1401f2923], 0
jne 0x140021f67
xor edx, edx
lea r8, [0x1401efc40]
xor r9d, r9d
lea ecx, [rdx + 0x4a]
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x140021e64
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.140018c00
mov byte [0x1401f2923], 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.140018c00
xor r9d, r9d
mov byte [0x1401f2923], 1
lea r8, [0x1401efc38]
xor edx, edx
mov ecx, 0x200a
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x140021eca
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.140018c00
xor al, al
jmp 0x140021eeb
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.140018c00
mov al, 1
xor r9d, r9d
mov byte [0x1401f297d], al
lea r8, [0x1401efc3c]
xor edx, edx
mov ecx, 0x1048
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x140021f31
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.140018c00
xor al, al
jmp 0x140021f52
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.140018c00
mov al, 1
cmp byte [0x1401f2923], 0
mov byte [0x1401f297c], al
je 0x140022048
jmp 0x140021f6e
movzx eax, byte [0x1401f297c]
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x140022048
test al, al
je 0x140021fe6
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x140021fe6
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 0x1049
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x140021fc5
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.140018c00
jmp 0x140021fe6
xor r9d, r9d
mov byte [0x1401f297e], 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.140018c00
xor edx, edx
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 0x4b]
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x140022023
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.140018c00
xor r9d, r9d
mov byte [0x1401f297e], 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.140018c00
add rsp, 0x28
ret