Function at 0x1401178bc
Capabilities:
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1320
call fcn.140123180
sub rsp, rax
mov qword [rsp + 0xc0], 0xfffffffffffffffe
mov rax, qword [0x1401d4618]
xor rax, rsp
mov qword [rsp + 0x1318], rax
mov r15, r9
mov r13, r8
mov rbx, rdx
mov qword [rsp + 0x68], rcx
mov r12, qword [rsp + 0x1380]
xor esi, esi
mov r14d, esi
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x70], esi
mov qword [rsp + 0x78], rsi
mov word [rsp + 0x50], si
mov qword [rsp + 0x58], rsi
mov r8, rcx
mov edi, 0x104
mov edx, edi
lea rcx, [rsp + 0xef0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [rsp + 0x68]
lea rdx, str.Process_font:__s
lea ecx, [rsi + 3]
call fcn.140116b04
nop
lea rdx, [rsp + 0xef0]
lea rcx, [rsp + 0x70]
call fcn.140118488
test al, al
jne 0x140117976
lea rcx, [rsp + 0x50]
call fcn.140118c04
jmp 0x1401183ce
lea rcx, [rsp + 0x70]
call fcn.140118458
test al, al
je 0x140117a4d
lea rcx, [rsp + 0x70]
call fcn.140118418
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0x1100]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
lea r8, [rsp + 0x1100]
mov rdx, rdi
lea rcx, [rsp + 0xae0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rcx, [rsp + 0x70]
call fcn.140118470
mov rdx, rdi
lea rcx, [rsp + 0xae0]
test al, al
lea r8, str..ttc
jne 0x140117a06
lea r8, str..ttf
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0xef0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [rsp + 0xae0]
mov rdx, rdi
lea rcx, [rsp + 0xef0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rdx, [rsp + 0xef0]
lea rcx, [rsp + 0x70]
call fcn.140118574
jmp 0x140117a63
mov r8, qword [rsp + 0x68]
mov rdx, rdi
lea rcx, [rsp + 0xae0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x4a0]
call fcn.14011863c
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140118d28
nop
lea rcx, [rsp + 0x4a0]
call fcn.140118c04
nop
lea rcx, [rsp + 0x70]
call fcn.1401183f4
xor edx, edx
lea r8d, [rdx + 0x5c]
lea rcx, [rsp + 0x1f0]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea r8d, [rdx + 0x6c]
lea rcx, [rsp + 0x180]
call sub.VCRUNTIME140.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x50]
call fcn.1401193c0
movzx ecx, word [rax + 0x30]
mov dword [rsp + 0x200], ecx
lea rcx, [rsp + 0x88]
call fcn.140118ca0
mov byte [rsp + 0x207], 1
xor r8d, r8d
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x50]
call fcn.1401193c0
mov r8, qword [rax]
mov edx, 0x20
lea rcx, [rsp + 0x20c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rcx, [rsp + 0x88]
call fcn.140118ca0
lea r8, [rsp + 0x20c]
lea rdx, str.Font_face_name_is__s
mov ecx, 3
call fcn.140116b5c
mov dword [rsp + 0x180], esi
xor r8d, r8d
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x50]
call fcn.1401193c0
movzx ecx, word [rax + 0x30]
mov dword [rsp + 0x184], ecx
lea rcx, [rsp + 0x88]
call fcn.140118ca0
xor r8d, r8d
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x50]
call fcn.1401193c0
mov cl, byte [rax + 0x28]
mov byte [rsp + 0x1e8], cl
lea rcx, [rsp + 0x88]
call fcn.140118ca0
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
test rax, rax
je 0x1401183c4
mov dword [rsp + 0x20], esi
lea r9, [rsp + 0x180]
lea r8, [0x140117024]
lea rdx, [rsp + 0x1f0]
mov rcx, rax
call qword [sym.imp.GDI32.dll_EnumFontFamiliesExW]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [rsp + 0x180], esi
je 0x140118100
cmp dword [rsp + 0x188], esi
je 0x140118100
cmp dword [rsp + 0x1390], esi
je 0x1401183c4
mov word [rsp + 0x4a0], si
mov qword [rsp + 0x4a8], rsi
lea rdx, str.Found_a_matching_font_in_the_system
mov ecx, 3
call fcn.140116d14
lea rcx, [rsp + 0x18c]
call qword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov rdi, rax
mov qword [rsp + 0x80], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x140117c83
lea rdx, str.GetDC_failed_
lea ecx, [rax + 1]
call fcn.140116e1c
nop
lea rcx, [rsp + 0x4a0]
call fcn.140118c04
jmp 0x1401183c4
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov rsi, rax
mov qword [rsp + 0x60], rax
mov rdx, rbx
lea rcx, [rsp + 0xc8]
call fcn.1401187c4
nop
mov rdx, rax
lea rcx, [rsp + 0x4a0]
call fcn.140118d28
nop
lea rcx, [rsp + 0xc8]
call fcn.140118c04
nop
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
xor r8d, r8d
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x50]
call fcn.1401193c0
mov rbx, rax
xor r8d, r8d
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x4a0]
call fcn.1401193c0
mov rdx, rbx
mov rcx, rax
call fcn.140117818
xor esi, esi
test eax, eax
sete bl
lea rcx, [rsp + 0x88]
call fcn.140118ca0
nop
lea rcx, [rsp + 0xd8]
call fcn.140118ca0
test bl, bl
je 0x140117d5c
lea rdx, str.FontData_doesnt_match._Skip_this_font.
lea ecx, [rsi + 1]
call fcn.140116d6c
jmp 0x140117c71
cmp dword [rsp + 0x1388], esi
je 0x140117e0d
xor r8d, r8d
lea rdx, [rsp + 0x148]
lea rcx, [rsp + 0x4a0]
call fcn.1401193c0
mov rsi, rax
mov dword [rsp + 0x60], 1
xor r8d, r8d
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x4a0]
call fcn.1401193c0
mov rdi, rax
mov dword [rsp + 0x60], 3
xor r8d, r8d
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x50]
call fcn.1401193c0
mov rbx, rax
mov dword [rsp + 0x60], 7
xor r8d, r8d
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x50]
call fcn.1401193c0
nop
mov r14d, 0xf
mov dword [rsp + 0x60], r14d
mov r9d, dword [rsi + 0x2c]
mov r8, qword [rdi + 0x20]
mov edx, dword [rbx + 0x2c]
mov rcx, qword [rax + 0x20]
call fcn.14011902c
xor esi, esi
test eax, eax
mov bl, sil
jle 0x140117e0f
mov bl, 1
test r14b, 8
je 0x140117e27
and r14d, 0xfffffff7
lea rcx, [rsp + 0xd8]
call fcn.140118ca0
nop
test r14b, 4
je 0x140117e40
and r14d, 0xfffffffb
lea rcx, [rsp + 0x88]
call fcn.140118ca0
nop
nop
test r14b, 2
je 0x140117e58
and r14d, 0xfffffffd
lea rcx, [rsp + 0x110]
call fcn.140118ca0
nop
test r14b, 1
je 0x140117e6b
lea rcx, [rsp + 0x148]
call fcn.140118ca0
test bl, bl
je 0x140117c71
mov edi, 1
lea rdx, str.Need_to_update_the_font
lea ecx, [rdi + 2]
call fcn.140116bb4
mov ebx, 0x100
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x8d0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0xcf0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xae0]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
mov r8, r13
lea r14d, [rbx + 4]
mov edx, r14d
lea rcx, [rsp + 0x1100]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [rsp + 0xcf0]
mov edx, r14d
lea rcx, [rsp + 0x1100]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, str..tt2
mov edx, r14d
lea rcx, [rsp + 0x1100]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov r8, r15
mov edx, r14d
lea rcx, [rsp + 0x6c0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [0x1401745cc]
mov edx, r14d
lea rcx, [rsp + 0x4b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov r8d, r14d
lea rdx, [rsp + 0x4b0]
lea rcx, [rsp + 0x50]
call fcn.1401170b4
test eax, eax
je 0x140117f73
lea rcx, [rsp + 0x4b0]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], si
jne 0x140117f65
test rax, rax
jne 0x140117f8e
lea r8, [rsp + 0xae0]
mov rdx, r14
lea rcx, [rsp + 0x4b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov edi, esi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x8d0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0xcf0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x4b0]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
lea r8, [rsp + 0xcf0]
mov rdx, r14
lea rcx, [rsp + 0x4b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [rsp + 0x8d0]
mov rdx, r14
lea rcx, [rsp + 0x4b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, [rsp + 0x4b0]
mov rdx, r14
lea rcx, [rsp + 0x6c0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
xor r8d, r8d
lea rdx, [rsp + 0x1100]
lea rcx, [rsp + 0xef0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140117c71
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x6c0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140118088
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0x6c0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140118088
test al, 1
je 0x140118088
xor eax, 1
mov edx, eax
lea rcx, [rsp + 0x6c0]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov r8d, 5
lea rdx, [rsp + 0x6c0]
lea rcx, [rsp + 0x1100]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test edi, edi
jne 0x1401180ba
lea rdx, [rsp + 0x4b0]
lea rcx, [rsp + 0x50]
call fcn.140116e74
lea rcx, [rsp + 0x4b0]
call qword [sym.imp.GDI32.dll_AddFontResourceW]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1d]
mov ecx, 0xffff
call qword [sym.imp.USER32.dll_PostMessageW]
mov dword [r12], 1
lea rdx, str.Font_updated.__System_reboot_needed
mov ecx, 3
call fcn.140116d14
jmp 0x140117c71
mov ebx, 0x100
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0xcf0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0x4b0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xae0]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
lea r8, [rsp + 0xcf0]
mov rdx, rdi
lea rcx, [rsp + 0x4b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, [rsp + 0x4b0]
mov rdx, rdi
lea rcx, [rsp + 0x6c0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rdx, [rsp + 0xae0]
lea rcx, [rsp + 0x60]
call fcn.14011757c
test eax, eax
je 0x1401183c4
cmp dword [rsp + 0x60], esi
je 0x1401182eb
movzx edi, si
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0xcf0]
mov qword [rsp + 0x38], rax
lea r14d, [rbx + 4]
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x4b0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x6c0]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
lea rcx, [rsp + 0x4b0]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], si
jne 0x1401181ec
mov r12d, 1
cmp rax, 8
jae 0x140118226
lea esi, [r12 + 7]
sub rsi, rax
lea r8, [0x14018fcc0]
mov rdx, rbx
lea rcx, [rsp + 0x4b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
sub rsi, r12
jne 0x140118209
movzx r9d, di
add di, r12w
lea r8, [0x1401d02a4]
mov edx, 8
lea rcx, [rsp + 0x4a0]
call fcn.14000908c
mov ecx, 0x4000
movzx eax, di
add di, r12w
cmp ax, cx
ja 0x1401183c4
lea rcx, [rsp + 0x4a0]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], si
jne 0x140118268
add rax, rax
lea rcx, [rsp + 0x4c0]
sub rcx, rax
lea r8, [rsp + 0x4a0]
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [rsp + 0x4b0]
mov rdx, r14
lea rcx, [rsp + 0x6c0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [rsp + 0xcf0]
mov rdx, r14
lea rcx, [rsp + 0x6c0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rdx, [rsp + 0x6c0]
lea rcx, [rsp + 0x60]
call fcn.14011757c
test eax, eax
je 0x1401183c4
cmp dword [rsp + 0x60], esi
jne 0x140118226
mov rdi, r14
jmp 0x1401182f1
mov r12d, 1
mov r8, r15
mov rdx, rdi
lea rcx, [rsp + 0x8d0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [rsp + 0x6c0]
mov rdx, rdi
lea rcx, [rsp + 0x8d0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x8d0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140118349
test r12b, al
je 0x140118349
xor eax, r12d
mov edx, eax
lea rcx, [rsp + 0x8d0]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor r8d, r8d
lea rdx, [rsp + 0x8d0]
lea rcx, [rsp + 0xef0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea r8, [rsp + 0x8d0]
mov ecx, 3
test eax, eax
jne 0x140118381
lea rdx, str.Failed_to_copy_to__s
call fcn.140116b5c
jmp 0x1401183c4
lea rdx, str.Successfully_copied_to__s
call fcn.140116c0c
lea rdx, [rsp + 0x6c0]
lea rcx, [rsp + 0x50]
call fcn.140116e74
lea rcx, [rsp + 0x8d0]
call qword [sym.imp.GDI32.dll_AddFontResourceW]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1d]
mov ecx, 0xffff
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1401183c4
lea rcx, [rsp + 0x50]
call fcn.140118c04
mov rcx, qword [rsp + 0x1318]
xor rcx, rsp
call fcn.140121d80
add rsp, 0x1320
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret