Function at 0x4ee770
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Query or enumerate registry value
Set current directory
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x501322
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x17c
mov eax, dword [0x54eb90]
xor eax, ebp
mov dword [ebp - 0x8c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004070f0
lea ecx, [ebp + 8]
call fcn.00404430
movzx eax, al
test eax, eax
je 0x4ee7d7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402e80
jmp 0x4ef177
call fcn.004038f0
mov dword [ebp - 0x48], eax
push 0xa
lea ecx, [ebp - 0x40]
call fcn.004a0846
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x74], esp
lea edx, [ebp + 8]
push edx
call fcn.00402120
mov dword [ebp - 0xf0], eax
call fcn.004e1bd0
add esp, 8
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 3
je 0x4ee911
lea ecx, [ebp + 8]
push ecx
push str._DownloadAndInstallFont__Invalid_arguments__nArg_3_:
lea edx, [ebp - 0x88]
push edx
call fcn.004042e0
add esp, 0xc
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0xfc], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xfc]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4ee875
mov dword [ebp - 0x100], 0
jmp 0x4ee8d9
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x3fffffff
jle 0x4ee89a
mov dword [ebp - 0x104], 0
jmp 0x4ee8cd
mov eax, dword [ebp - 0x14]
shl eax, 1
call fcn.004c5300
mov dword [ebp - 0x108], esp
mov dword [ebp - 0x10], esp
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x14]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x108]
push edx
call fcn.00407890
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x100]
mov dword [ebp - 0x84], ecx
lea edx, [ebp - 0x84]
push edx
lea ecx, [ebp - 0x80]
call fcn.004bdd7c
push 0x52b83c
lea eax, [ebp - 0x80]
push eax
call fcn.004c5561
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.00402e80
push 0
lea ecx, [ebp - 0x40]
call fcn.004a081d
push eax
lea ecx, [ebp - 0x40]
call fcn.00408bc0
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402120
mov byte [ebp - 4], 3
push 1
lea ecx, [ebp - 0x40]
call fcn.004a081d
push eax
lea ecx, [ebp - 0x40]
call fcn.00408bc0
push eax
lea ecx, [ebp - 0x18]
call fcn.00402120
mov byte [ebp - 4], 4
push 2
lea ecx, [ebp - 0x40]
call fcn.004a081d
push eax
lea ecx, [ebp - 0x40]
call fcn.00408bc0
push eax
lea ecx, [ebp - 0x44]
call fcn.00402120
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4c]
push ecx
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionFonts
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4eeac1
mov dword [ebp - 0x60], 0x400
mov dword [ebp - 0x5c], 1
lea ecx, [ebp - 0x64]
call fcn.00407130
mov byte [ebp - 4], 6
lea edx, [ebp - 0x60]
push edx
push 0x400
lea ecx, [ebp - 0x64]
call fcn.004035b0
push eax
lea eax, [ebp - 0x5c]
push eax
push 0
lea ecx, [ebp - 0x18]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ee9e7
push 0xffffffffffffffff
lea ecx, [ebp - 0x64]
call fcn.00405f20
lea ecx, [ebp - 0x64]
call fcn.00404430
movzx edx, al
test edx, edx
jne 0x4eeab5
lea eax, [ebp - 0x18]
push eax
push 0x5188b8
lea ecx, [ebp - 0x94]
push ecx
call fcn.004042e0
add esp, 0xc
mov dword [ebp - 0x10c], eax
mov edx, dword [ebp - 0x10c]
mov dword [ebp - 0x110], edx
mov byte [ebp - 4], 7
push ecx
mov eax, esp
mov dword [ebp - 0x90], esp
push str._Already_Installed_
mov ecx, dword [ebp - 0x110]
push ecx
push eax
call fcn.00404230
add esp, 0xc
mov dword [ebp - 0x114], eax
mov ecx, 0x553e48
call fcn.004f2090
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x94]
call fcn.00402e80
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x64]
call fcn.00402e80
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
call fcn.00402e80
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00402e80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00402e80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004a0970
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402e80
jmp 0x4ef177
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x64]
call fcn.00402e80
push 0x2f
lea ecx, [ebp - 0x1c]
call fcn.00404020
mov esi, eax
lea ecx, [ebp - 0x1c]
call fcn.004032e0
sub eax, esi
sub eax, 1
push eax
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00404120
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x24]
call fcn.00407130
mov byte [ebp - 4], 9
push 1
lea eax, [ebp - 0x9c]
push eax
mov ecx, 0x553f24
call fcn.00404120
mov dword [ebp - 0x118], eax
push 0x5188c4
mov ecx, dword [ebp - 0x118]
push ecx
call fcn.004043b0
add esp, 8
mov byte [ebp - 0x95], al
lea ecx, [ebp - 0x9c]
call fcn.00402e80
movzx edx, byte [ebp - 0x95]
test edx, edx
je 0x4eeb5e
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [0x553f24]
push ecx
push 0x5188c8
lea edx, [ebp - 0x24]
push edx
call fcn.00406020
add esp, 0x10
jmp 0x4eeb7a
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [0x553f24]
push ecx
push 0x5188d4
lea edx, [ebp - 0x24]
push edx
call fcn.00406020
add esp, 0x10
lea ecx, [ebp - 0x24]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x927c0
push ecx
mov ecx, esp
mov dword [ebp - 0xa0], esp
lea eax, [ebp - 0x24]
push eax
call fcn.00402120
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x120], ecx
mov byte [ebp - 4], 0xa
push ecx
mov ecx, esp
mov dword [ebp - 0xa4], esp
lea edx, [ebp - 0x1c]
push edx
call fcn.00402120
mov dword [ebp - 0x124], eax
mov byte [ebp - 4], 9
call fcn.004e8000
add esp, 0xc
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x4ef0b5
lea ecx, [ebp - 0x68]
call fcn.00407130
mov byte [ebp - 4], 0xb
push 0x104
lea ecx, [ebp - 0x68]
call fcn.004035b0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x68]
call fcn.00405f20
mov ecx, 0x553f24
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov byte [ebp - 4], 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0xa8], esp
push 0x553f24
call fcn.00402120
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x130], eax
mov byte [ebp - 4], 0xd
push ecx
mov ecx, esp
mov dword [ebp - 0xac], esp
lea edx, [ebp - 0x24]
push edx
call fcn.00402120
mov dword [ebp - 0x134], eax
mov byte [ebp - 4], 0xc
call fcn.004eb790
add esp, 8
jmp 0x4eed10
mov dword [ebp - 4], 0xb
jmp 0x4eed81
lea ecx, [ebp - 0x24]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x68]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push str._
push 0x553f24
lea edx, [ebp - 0xbc]
push edx
call fcn.00404230
add esp, 0xc
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x148], eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x148]
push edx
lea eax, [ebp - 0xc0]
push eax
call fcn.00406b00
add esp, 0xc
mov dword [ebp - 0x14c], eax
mov ecx, dword [ebp - 0x14c]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0xb8], eax
lea ecx, [ebp - 0xc0]
call fcn.00402e80
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xbc]
call fcn.00402e80
cmp dword [ebp - 0xb8], 0
je 0x4ef0a7
push 0x51892c
push 0x553f0c
lea ecx, [ebp - 0xc4]
push ecx
call fcn.00404230
add esp, 0xc
mov dword [ebp - 0x150], eax
mov edx, dword [ebp - 0x150]
mov dword [ebp - 0x154], edx
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x154]
push ecx
lea edx, [ebp - 0xc8]
push edx
call fcn.00406b00
add esp, 0xc
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x15c], eax
mov byte [ebp - 4], 0x12
push 0x518930
push 0x553f24
lea ecx, [ebp - 0xcc]
push ecx
call fcn.00404230
add esp, 0xc
mov dword [ebp - 0x160], eax
mov edx, dword [ebp - 0x160]
mov dword [ebp - 0x164], edx
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x164]
push ecx
lea edx, [ebp - 0xd0]
push edx
call fcn.00406b00
add esp, 0xc
mov dword [ebp - 0x168], eax
push 0
mov ecx, dword [ebp - 0x15c]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp - 0x168]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0xd0]
call fcn.00402e80
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xcc]
call fcn.00402e80
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xc8]
call fcn.00402e80
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xc4]
call fcn.00402e80
push 0x518934
push 0x553f0c
lea eax, [ebp - 0xd8]
push eax
call fcn.00404230
add esp, 0xc
mov dword [ebp - 0x16c], eax
mov ecx, dword [ebp - 0x16c]
mov dword [ebp - 0x170], ecx
mov byte [ebp - 4], 0x14
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x170]
push eax
lea ecx, [ebp - 0xdc]
push ecx
call fcn.00406b00
add esp, 0xc
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp - 0x174]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceW]
mov dword [ebp - 0xd4], eax
lea ecx, [ebp - 0xdc]
call fcn.00402e80
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xd8]
call fcn.00402e80
cmp dword [ebp - 0xd4], 0
je 0x4ef0a7
lea edx, [ebp - 0x70]
push edx
push 0xf003f
push 0
push 0x518938
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4ef0a7
lea eax, [ebp - 0x18]
push eax
push 0x5189b8
lea ecx, [ebp - 0xe4]
push ecx
call fcn.004042e0
add esp, 0xc
mov dword [ebp - 0x178], eax
mov edx, dword [ebp - 0x178]
mov dword [ebp - 0x17c], edx
mov byte [ebp - 4], 0x15
push ecx
mov eax, esp
mov dword [ebp - 0xe0], esp
push str._Installed_
mov ecx, dword [ebp - 0x17c]
push ecx
push eax
call fcn.00404230
add esp, 0xc
mov dword [ebp - 0x180], eax
mov ecx, 0x553e48
call fcn.004f2090
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xe4]
call fcn.00402e80
lea ecx, [ebp - 0x44]
call fcn.004043f0
push eax
call fcn.004bd73e
add esp, 4
shl eax, 1
push eax
lea ecx, [ebp - 0x44]
call fcn.004043f0
push eax
push 1
push 0
lea ecx, [ebp - 0x18]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov edx, dword [ebp - 0x70]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x3e8
push 0
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x68]
call fcn.00402e80
jmp 0x4ef120
lea ecx, [ebp - 0x18]
push ecx
push str.Font
lea edx, [ebp - 0xec]
push edx
call fcn.004042e0
add esp, 0xc
mov dword [ebp - 0x184], eax
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x188], eax
mov byte [ebp - 4], 0x16
push ecx
mov ecx, esp
mov dword [ebp - 0xe8], esp
push str._Download_Error_
mov edx, dword [ebp - 0x188]
push edx
push ecx
call fcn.00404230
add esp, 0xc
mov dword [ebp - 0x18c], eax
mov ecx, 0x553e48
call fcn.004f2090
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xec]
call fcn.00402e80
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x24]
call fcn.00402e80
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x50]
call fcn.00402e80
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
call fcn.00402e80
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00402e80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00402e80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004a0970
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402e80
lea esp, [ebp - 0x19c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x8c]
xor ecx, ebp
call fcn.004bd72f
mov esp, ebp
pop ebp
ret