Function at 0x10002b90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a0
mov eax, dword [0x1002a060]
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 0x10002bd2
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 [0x1002ca90]
add esp, 0xc
test al, 1
jne 0x10002c0e
or eax, 1
push 0x10018e10
mov dword [0x1002ca90], eax
call fcn.10014993
add esp, 4
sub esp, 8
lea eax, [ebp - 0x28c]
push eax
call fcn.10008370
push 0x1001b220
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [0x1002ca90]
test al, 1
jne 0x10002c4d
or eax, 1
push 0x10018e10
mov dword [0x1002ca90], eax
call fcn.10014993
add esp, 4
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x28c]
push eax
call esi
test eax, eax
jne 0x10002caa
lea eax, [ebp - 0x28c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x10002caa
mov eax, dword [0x1002cee4]
test al, 1
jne 0x10002c91
or eax, 1
push 0x10018e40
mov dword [0x1002cee4], eax
call fcn.10014993
add esp, 4
lea eax, [ebp - 0x28c]
push eax
push str.Failed_to_create_directory_:__s
push 0x1002cee0
call fcn.1000e710
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 [0x1002ca90]
add esp, 0xc
test al, 1
jne 0x10002ce3
or eax, 1
push 0x10018e10
mov dword [0x1002ca90], eax
call fcn.10014993
add esp, 4
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x10002cf0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002cf0
sub ecx, edx
sar ecx, 1
je 0x10002d0f
lea eax, [ebp - 0x84]
push eax
mov ecx, edi
call fcn.10008460
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 0x10002d73
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 0x10002dab
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.100147d6
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.100147d6
mov esp, ebp
pop ebp
ret