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

Disassembly:
push ebp
sub esp, 0x464
lea ebp, [esp - 4]
mov eax, dword [0x1011ac70]
xor eax, ebp
mov dword [ebp + 0x464], eax
push 0xc8
mov eax, 0x100cce28
call fcn.10071ffd
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.1000b1d6
mov esi, eax
cmp esi, ebx
je 0x1000c334
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 0x10102f18
lea ecx, [ebp + 0x1c]
call fcn.1000535e
test eax, eax
jne 0x1000c116
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 + 0x3b4]
cmp eax, 1
je 0x1000c128
cmp eax, ebx
jne 0x1000c146
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.1000ddd5
jmp 0x1000c31e
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.10072750
push edi
lea eax, [ebp + 0x56]
push ebx
push eax
mov word [ebp + 0x54], bx
call fcn.10072750
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.10003620
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 0x1000c1ec
lea eax, [ebp + 0x3c]
push eax
call fcn.1001cc6a
cmp dword [ebp + 0x50], edi
mov eax, dword [ebp + 0x3c]
pop ecx
jae 0x1000c1fe
lea eax, [ebp + 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000c21b
cmp dword [ebp + 0x50], edi
mov eax, dword [ebp + 0x3c]
jae 0x1000c214
lea eax, [ebp + 0x3c]
push eax
call fcn.1001d785
pop ecx
cmp dword [ebp + 0x50], edi
mov eax, dword [ebp + 0x3c]
jae 0x1000c226
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 0x1000c239
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 0x1000c308
lea ecx, [ebp - 0xd]
call fcn.10035790
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 0x1000c292
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.1001cae3
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 + 0x394]
cmp eax, ebx
je 0x1000c334
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.10071fee
add ebp, 0x468
leave
ret 8