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

Disassembly:
sub rsp, 0x28
cmp byte [0x14021f0fe], 0
jne 0x140022178
cmp byte [0x14021f0a3], 0
jne 0x140022097
xor edx, edx
lea r8, [0x14021bd20]
xor r9d, r9d
lea ecx, [rdx + 0x4a]
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x140021f94
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.140018d00
mov byte [0x14021f0a3], 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.140018d00
xor r9d, r9d
mov byte [0x14021f0a3], 1
lea r8, [0x14021bd18]
xor edx, edx
mov ecx, 0x200a
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x140021ffa
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.140018d00
xor al, al
jmp 0x14002201b
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.140018d00
mov al, 1
xor r9d, r9d
mov byte [0x14021f0fd], al
lea r8, [0x14021bd1c]
xor edx, edx
mov ecx, 0x1048
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x140022061
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.140018d00
xor al, al
jmp 0x140022082
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.140018d00
mov al, 1
cmp byte [0x14021f0a3], 0
mov byte [0x14021f0fc], al
je 0x140022178
jmp 0x14002209e
movzx eax, byte [0x14021f0fc]
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x140022178
test al, al
je 0x140022116
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x140022116
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 0x1049
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x1400220f5
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.140018d00
jmp 0x140022116
xor r9d, r9d
mov byte [0x14021f0fe], 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.140018d00
xor edx, edx
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 0x4b]
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x140022153
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.140018d00
xor r9d, r9d
mov byte [0x14021f0fe], 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.140018d00
add rsp, 0x28
ret