Function at 0x10001000
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a0
mov eax, dword [0x10062070]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x30
mov edi, ecx
push 0x30
lea ecx, [ebp - 0x49c]
mov ebx, edx
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COSize::constructor_int__int_]
test esi, esi
je 0x10001042
mov eax, dword [esi]
mov dword [ebp - 0x49c], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x498], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x28c], ax
lea eax, [ebp - 0x28a]
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [0x10065ca0]
add esp, 0xc
test al, 1
jne 0x1000107e
or eax, 1
push 0x10045810
mov dword [0x10065ca0], eax
call fcn.1003daa7
add esp, 4
sub esp, 8
lea eax, [ebp - 0x28c]
push eax
call fcn.1001b060
push 0x100470bc
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [0x10065ca0]
test al, 1
jne 0x100010bd
or eax, 1
push 0x10045810
mov dword [0x10065ca0], eax
call fcn.1003daa7
add esp, 4
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x28c]
push eax
call esi
test eax, eax
jne 0x1000111a
lea eax, [ebp - 0x28c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x1000111a
mov eax, dword [0x10066674]
test al, 1
jne 0x10001101
or eax, 1
push 0x10045980
mov dword [0x10066674], eax
call fcn.1003daa7
add esp, 4
lea eax, [ebp - 0x28c]
push eax
push str.Failed_to_create_directory_:__s
push 0x10066670
call fcn.10024090
add esp, 0xc
xor eax, eax
push 0x76
push eax
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x82]
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [0x10065ca0]
add esp, 0xc
test al, 1
jne 0x10001153
or eax, 1
push 0x10045810
mov dword [0x10065ca0], eax
call fcn.1003daa7
add esp, 4
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x10001160
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001160
sub ecx, edx
sar ecx, 1
je 0x1000117f
lea eax, [ebp - 0x84]
push eax
mov ecx, edi
call fcn.1001b150
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x494], ax
lea eax, [ebp - 0x492]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x494]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x494]
push eax
call esi
test eax, eax
jne 0x100011e3
push eax
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x494]
push eax
push edi
call dword [sym.imp.ouilibx.dll_public:_static_class_OUI::COUIManager____cdecl_OUI::COUIManager::GetUIManager_void_]
mov ecx, eax
call dword [sym.imp.ouilibx.dll_public:_bool___thiscall_OUI::COUIManager::ExtractImageFileIcon_wchar_t_const___wchar_t___struct_tagSIZE___bool_]
lea eax, [ebp - 0x494]
push eax
call esi
test eax, eax
je 0x1000121b
push 0
lea eax, [ebp - 0x494]
push ebx
push eax
call dword [sym.imp.ouilibx.dll_public:_static_class_OUI::ORES_TABLE____cdecl_OUI::ORES_TABLE::GetResTable_void_]
mov ecx, eax
call dword [sym.imp.ouilibx.dll_public:_bool___thiscall_OUI::ORES_TABLE::LoadImageFromFile_wchar_t_const___struct_OUI::IImage____bool_]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1003d966
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.1003d966
mov esp, ebp
pop ebp
ret