Function at 0x4189b0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4737
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x438], ebx
call fcn.00450310
test al, al
jne 0x418a28
push str.ForceRegMTFont
lea ecx, [ebp - 0x430]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x430]
mov ebx, 1
push eax
mov dword [ebp - 0x438], ebx
call dword [sym.imp.ksolite.dll_bool___cdecl_krt::product::isSupported_class_QString_const__]
add esp, 4
mov byte [ebp - 0x421], bl
test al, al
je 0x418a2f
mov byte [ebp - 0x421], 0
or edi, 0xffffffff
mov dword [ebp - 4], edi
test bl, 1
je 0x418a46
lea ecx, [ebp - 0x430]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
cmp byte [ebp - 0x421], 0
je 0x418a77
push str.regMTFont_Need_higher_privileges.
push str.KPageRebuild::RegMTFont
push 0x62a
push str.D:_rc_v11_personal_20200207_branchCoding_supportksomiscKRebuildDlg.cpp
push 7
call fcn.00487a00
add esp, 0x14
mov eax, 0x80004005
jmp 0x418d53
mov ebx, dword [ebp + 8]
push ebx
call fcn.00416c90
add esp, 4
push 0x4c6904
lea ecx, [ebp - 0x434]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
push str.resourcekseeFontsTrueTypemtextra.ttf
lea ecx, [ebp - 0x42c]
mov dword [ebp - 4], 1
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
lea ecx, [ebp - 0x434]
push ecx
lea edx, [ebp - 0x42c]
push edx
lea eax, [ebp - 0x428]
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.ksolite.dll_class_QString___cdecl_krt::i18n::getFilePath_class_QString_const___class_QString_const__]
add esp, 0xc
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 4
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 5
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
test ebx, ebx
je 0x418b39
lea ecx, [ebp - 0x428]
call dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QString::isEmpty_void_const]
test al, al
je 0x418b39
push str.MTFont_File_not_Exist
push str.KPageRebuild::RegMTFont
push 0x634
push str.D:_rc_v11_personal_20200207_branchCoding_supportksomiscKRebuildDlg.cpp
push 7
call fcn.00487a00
add esp, 0x14
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], edi
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov eax, 0x80004005
jmp 0x418d53
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 3
push 0x104
lea eax, [ebp - 0x218]
push eax
push 1
push 1
call fcn.0043cd90
mov esi, eax
test esi, esi
jns 0x418ba8
push str.Failed_to_Get_alluser_path
push str.KPageRebuild::RegMTFont
push 0x63c
push str.D:_rc_v11_personal_20200207_branchCoding_supportksomiscKRebuildDlg.cpp
push 7
call fcn.00487a00
add esp, 0x14
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], edi
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov eax, esi
jmp 0x418d53
lea eax, [ebp - 0x218]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x418bb1
mov ecx, dword [str.mtfont_]
mov edx, dword [0x4cb28c]
mov dword [eax], ecx
mov ecx, dword [0x4cb290]
mov dword [eax + 4], edx
mov edx, dword [0x4cb294]
mov dword [eax + 8], ecx
mov cx, word [0x4cb298]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
test ebx, ebx
je 0x418c18
lea edx, [ebp - 0x218]
push edx
call fcn.004369d0
mov esi, eax
add esp, 4
test esi, esi
jns 0x418c18
push str.Failed_to_Get_alluser_path
push str.KPageRebuild::RegMTFont
push 0x646
jmp 0x418b83
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x41e]
push ecx
mov word [ebp - 0x420], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x418c40
movzx ecx, word [ebp + eax - 0x218]
mov word [ebp + eax - 0x420], cx
add eax, 2
test cx, cx
jne 0x418c40
lea eax, [ebp - 0x420]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x418c61
mov edx, dword [str.mtextra.ttf]
mov ecx, dword [0x4cb274]
mov dword [eax], edx
mov edx, dword [0x4cb278]
mov dword [eax + 4], ecx
mov ecx, dword [0x4cb27c]
mov dword [eax + 8], edx
mov edx, dword [0x4cb280]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x4cb284]
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ecx
test ebx, ebx
je 0x418ce5
push 1
lea edx, [ebp - 0x420]
push edx
lea ecx, [ebp - 0x428]
call dword [sym.imp.QtCore4.dll_public:_unsigned_short_int_const____thiscall_QString::utf16_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x418ce5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x418ce5
push str.Failed_copy_mtextra.ttf_to_alluser_path
push str.KPageRebuild::RegMTFont
push 0x652
jmp 0x418b11
push ebx
lea eax, [ebp - 0x420]
push str.MT_Extra__TrueType_
push eax
call fcn.00435a60
add esp, 0xc
test eax, eax
je 0x418d12
push str.Failed_to_RegisterFont_
push str.KPageRebuild::RegMTFont
push 0x659
jmp 0x418b11
test ebx, ebx
jne 0x418d42
lea ecx, [ebp - 0x218]
push 0x4c8920
push ecx
call fcn.004384d0
add esp, 8
test eax, eax
je 0x418d42
push str.Failed_to_delete_mtfont_dir
push str.KPageRebuild::RegMTFont
push 0x661
jmp 0x418b11
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], edi
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret