Function at 0x1000c5c0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
sub esp, 0x464
lea ebp, [esp - 4]
mov eax, dword [0x101f1dd0]
xor eax, ebp
mov dword [ebp + 0x464], eax
push 0xc8
mov eax, 0x1016ab70
call fcn.10075e22
mov esi, dword [ebp + 0x470]
mov edi, dword [ebp + 0x474]
mov dword [ebp - 0x14], ecx
xor ebx, ebx
push ebx
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x34], 7
call fcn.10001b70
mov ecx, dword [ebp - 0x14]
push edi
push esi
mov dword [ebp - 4], ebx
call fcn.1000b755
mov esi, eax
cmp esi, ebx
je 0x1000c8b3
mov eax, dword [esi]
lea ecx, [ebp - 0xd4]
push ecx
mov ecx, esi
call dword [eax + 0x28]
mov edi, dword [sym.imp.DuiLib32.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const]
mov ecx, eax
mov byte [ebp - 4], 1
call edi
push eax
lea ecx, [ebp + 0x1c]
call fcn.100017c0
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], bl
call dword [sym.imp.DuiLib32.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
push 0x101d87ec
lea ecx, [ebp + 0x1c]
call fcn.100053e4
test eax, eax
jne 0x1000c695
mov eax, dword [esi]
lea ecx, [ebp - 0xd4]
push ecx
mov ecx, esi
call dword [eax + 0x98]
mov ecx, eax
mov byte [ebp - 4], 2
call edi
push eax
lea ecx, [ebp + 0x1c]
call fcn.100017c0
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], bl
call dword [sym.imp.DuiLib32.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3b8]
cmp eax, 1
je 0x1000c6a7
cmp eax, ebx
jne 0x1000c6c5
sub esp, 0x1c
lea eax, [ebp + 0x1c]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.10003510
mov ecx, dword [ebp - 0x14]
call fcn.1000deb1
jmp 0x1000c89d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xb8]
mov ecx, eax
call edi
push eax
lea ecx, [ebp]
call fcn.100015f0
mov edi, 0x206
push edi
lea eax, [ebp + 0x25e]
push ebx
push eax
mov byte [ebp - 4], 3
mov word [ebp + 0x25c], bx
call fcn.10076580
push edi
lea eax, [ebp + 0x56]
push ebx
push eax
mov word [ebp + 0x54], bx
call fcn.10076580
add esp, 0x18
lea eax, [ebp + 0x25c]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp + 0x54]
push eax
lea ecx, [ebp + 0x38]
call fcn.100015f0
push str.Face_
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 4
call fcn.10003540
push 0xffffffffffffffff
push ebx
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x38]
call fcn.10003ab0
mov eax, dword [ebp + 0x3c]
push 8
pop edi
cmp dword [ebp + 0x50], edi
jae 0x1000c76b
lea eax, [ebp + 0x3c]
push eax
call fcn.1001d9f3
cmp dword [ebp + 0x50], edi
mov eax, dword [ebp + 0x3c]
pop ecx
jae 0x1000c77d
lea eax, [ebp + 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000c79a
cmp dword [ebp + 0x50], edi
mov eax, dword [ebp + 0x3c]
jae 0x1000c793
lea eax, [ebp + 0x3c]
push eax
call fcn.1001e577
pop ecx
cmp dword [ebp + 0x50], edi
mov eax, dword [ebp + 0x3c]
jae 0x1000c7a5
lea eax, [ebp + 0x3c]
push ecx
mov ecx, esp
mov dword [ecx], eax
cmp dword [ebp + 0x18], edi
mov eax, dword [ebp + 4]
mov dword [ebp - 0x18], esp
jae 0x1000c7b8
lea eax, [ebp + 4]
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
mov dword [ecx], eax
call dword [sym.imp.DuiLib32.dll_public:_static_int___cdecl_DuiLib::CRenderEngine::SaveFileFrmZip_class_DuiLib::STRINGorID__class_DuiLib::STRINGorID_]
cmp eax, ebx
pop ecx
pop ecx
je 0x1000c887
lea ecx, [ebp - 0xd]
call fcn.100237f8
mov eax, dword [esi]
lea ecx, [ebp - 0xd4]
push ecx
mov ecx, esi
mov byte [ebp - 4], 5
call dword [eax + 0x98]
mov ecx, eax
mov byte [ebp - 4], 6
call dword [sym.imp.DuiLib32.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::GetData_void_const]
push eax
lea ecx, [ebp - 0x34]
call fcn.100015f0
cmp dword [ebp + 0x50], edi
mov eax, dword [ebp + 0x3c]
mov byte [ebp - 4], 7
jae 0x1000c811
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp - 0x50]
call fcn.100015f0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0xd]
mov byte [ebp - 4], 8
call fcn.1001d86c
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.100017f0
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.100017f0
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 5
call dword [sym.imp.DuiLib32.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push ebx
push ebx
push ebx
mov edi, 0xa2
push edi
call esi
push ebx
push ebx
push ebx
push 0x56
call esi
push ebx
push 2
push ebx
push 0x56
call esi
push ebx
push 2
push ebx
push edi
call esi
lea ecx, [ebp - 0xd]
mov byte [ebp - 4], 4
call sym.Plugin.dll_CleanUpPluginSystemManager
push ebx
push 1
lea ecx, [ebp + 0x38]
call fcn.100017f0
push ebx
push 1
lea ecx, [ebp]
call fcn.100017f0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x398]
cmp eax, ebx
je 0x1000c8b3
push 1
push eax
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
push ebx
push 1
lea ecx, [ebp + 0x1c]
call fcn.100017f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x464]
xor ecx, ebp
call fcn.10075e13
add ebp, 0x468
leave
ret 8