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

Disassembly:
sub rsp, 0x28
cmp byte [0x1401f395e], 0
jne 0x1400219d8
cmp byte [0x1401f3903], 0
jne 0x1400218f7
xor edx, edx
lea r8, [0x1401f0c40]
xor r9d, r9d
lea ecx, [rdx + 0x4a]
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x1400217f4
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 [0x1401f3903], 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 [0x1401f3903], 1
lea r8, [0x1401f0c38]
xor edx, edx
mov ecx, 0x200a
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x14002185a
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 0x14002187b
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 [0x1401f395d], al
lea r8, [0x1401f0c3c]
xor edx, edx
mov ecx, 0x1048
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x1400218c1
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 0x1400218e2
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 [0x1401f3903], 0
mov byte [0x1401f395c], al
je 0x1400219d8
jmp 0x1400218fe
movzx eax, byte [0x1401f395c]
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x1400219d8
test al, al
je 0x140021976
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x140021976
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 0x1049
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x140021955
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 0x140021976
xor r9d, r9d
mov byte [0x1401f395e], 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 0x1400219b3
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 [0x1401f395e], 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