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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004030e
mov eax, dword fs:[0]
push eax
sub esp, 0x49c
mov eax, dword [0x10062070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
push str.FONT_COMMON_YAHEI_12
call dword [sym.imp.ouilibx.dll_public:_static_class_OUI::OSTYLE_TABLE____cdecl_OUI::OSTYLE_TABLE::GetStyleTable_void_]
mov ecx, eax
call dword [sym.imp.ouilibx.dll_public:_struct_OUI::IFont____thiscall_OUI::OSTYLE_TABLE::GetFont_wchar_t_const__]
mov edx, dword [edi + 0x98]
mov dword [ebp - 0x484], eax
test edx, edx
jne 0x10001f4d
mov ecx, str.IDB_COMMON_UNCHECK_BOX
jmp 0x10001f5d
mov ecx, str.IDB_COMMON_CHECK_BOX
mov eax, str.IDB_COMMON_INCHECK_BOX
cmp edx, 1
cmovne ecx, eax
push ecx
lea ecx, [ebp - 0x428]
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::constructor_wchar_t_const__]
push 0x10
push 0x10
lea ecx, [ebp - 0x44c]
mov dword [ebp - 4], 0
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COSize::constructor_int__int_]
lea ecx, [ebp - 0x428]
call dword [sym.imp.ouilibx.dll_public:_wchar_t_const____thiscall_OUI::COString::operator_wchar_t_const__void_const]
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:_struct_OUI::IImage____thiscall_OUI::ORES_TABLE::LoadImageW_wchar_t_const__]
test eax, eax
je 0x10001fbd
mov edx, dword [eax]
push 0
lea ecx, [ebp - 0x48c]
push ecx
mov ecx, eax
call dword [edx + 0x14]
push eax
lea ecx, [ebp - 0x44c]
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COSize::operator_struct_tagSIZE_const__]
lea esi, [edi + 0x9c]
mov ecx, esi
mov dword [ebp - 0x488], esi
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::IsEmpty_void_const]
test eax, eax
je 0x10002018
mov ecx, dword [edi + 0x90]
lea edx, [ebp - 0x4a4]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x10001ff3
mov eax, dword [eax]
push eax
mov ecx, esi
call dword [sym.imp.ouilibx.dll_public:_class_OUI::COString____thiscall_OUI::COString::operator_wchar_t_const__]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x490], 8
jb 0x10002018
push dword [ebp - 0x4a4]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
push 0x14
push 0x14
lea ecx, [ebp - 0x434]
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COSize::constructor_int__int_]
mov ecx, dword [edi + 0x90]
mov eax, dword [ecx]
call dword [eax + 4]
lea esi, [edi + 0xa0]
cmp eax, 1
jne 0x1000217a
cmp dword [esi], 0
sete al
test al, al
je 0x10002122
push str.Kernel32.dll
mov dword [ebp - 0x424], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x480], eax
test eax, eax
je 0x10002095
push str.Wow64DisableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10002088
lea ecx, [ebp - 0x424]
push ecx
call eax
push dword [ebp - 0x480]
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call eax
push 0
lea ecx, [edi + 0x9c]
mov byte [ebp - 4], 2
call dword [sym.imp.ouilibx.dll_public:_wchar_t____thiscall_OUI::COString::GetBuffer_int_]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100020e5
mov ecx, dword [esi]
test ecx, ecx
je 0x100020be
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea eax, [ebp - 0x434]
push eax
push 0
lea ecx, [edi + 0x9c]
mov dword [esi], 0
call dword [sym.imp.ouilibx.dll_public:_wchar_t____thiscall_OUI::COString::GetBuffer_int_]
mov edx, esi
mov ecx, eax
call section..text
add esp, 4
push str.Kernel32.dll
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x480], eax
test eax, eax
je 0x10002122
push str.Wow64RevertWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10002116
push dword [ebp - 0x424]
call eax
push dword [ebp - 0x480]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esi], 0
sete al
test al, al
je 0x10002218
push str.IDB_SM_SOFTWARE_DEFAULT_ICO_20
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:_struct_OUI::IImage____thiscall_OUI::ORES_TABLE::LoadImageW_wchar_t_const__]
mov edx, dword [esi]
mov ecx, eax
mov dword [ebp - 0x424], edx
cmp edx, ecx
je 0x10002218
mov dword [esi], ecx
test ecx, ecx
je 0x10002167
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov edx, dword [ebp - 0x424]
test edx, edx
je 0x10002218
mov eax, dword [edx]
push edx
call dword [eax + 8]
jmp 0x10002218
cmp dword [esi], 0
sete al
test al, al
je 0x10002218
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x420]
push str.regedit.exe
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, dword [esi]
test ecx, ecx
je 0x100021fb
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea eax, [ebp - 0x434]
push eax
mov edx, esi
lea ecx, [ebp - 0x218]
mov dword [esi], 0
call section..text
add esp, 4
mov eax, dword [ebp + 0x10]
sub dword [ebp + 0x18], 0x14
movq xmm0, qword [ebp + 0x18]
add eax, 0x2d
mov dword [ebp + 0x10], eax
movq xmm1, qword [ebp + 0x10]
add eax, 0xb
movq qword [ebp - 0x474], xmm0
lea ecx, [eax + 5]
mov dword [ebp - 0x474], eax
mov eax, dword [ebp - 0x44c]
add eax, ecx
movq qword [ebp - 0x444], xmm1
mov dword [ebp - 0x444], ecx
lea ecx, [eax + 5]
movq qword [ebp - 0x43c], xmm0
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp - 0x434]
add eax, ecx
movq qword [ebp - 0x454], xmm0
mov dword [ebp - 0x454], eax
add eax, 5
cmp dword [edi + 0x7c], 0
movq qword [ebp - 0x45c], xmm1
movq qword [ebp - 0x46c], xmm1
mov dword [ebp - 0x45c], ecx
mov dword [ebp - 0x46c], eax
mov ecx, str.IDB_SM_TREEITEM_LINE
mov eax, str.IDB_SM_TREEITEM_LINE_HALF
cmovne eax, ecx
push eax
lea ecx, [ebp - 0x42c]
movq qword [ebp - 0x47c], xmm1
movq qword [ebp - 0x464], xmm0
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::constructor_wchar_t_const__]
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 3
call dword [sym.imp.ouilibx.dll_public:_wchar_t_const____thiscall_OUI::COString::operator_wchar_t_const__void_const]
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:_struct_OUI::IImage____thiscall_OUI::ORES_TABLE::LoadImageW_wchar_t_const__]
test eax, eax
je 0x10002304
mov edx, dword [ebx]
push 2
lea ecx, [ebp - 0x47c]
push ecx
push eax
mov ecx, ebx
call dword [edx + 0xc4]
cmp dword [edi + 0xb0], 0
je 0x10002365
lea ecx, [ebp - 0x428]
call dword [sym.imp.ouilibx.dll_public:_wchar_t_const____thiscall_OUI::COString::operator_wchar_t_const__void_const]
mov ecx, dword [edi + 0xb0]
push eax
add ecx, 0x24
call dword [sym.imp.ouilibx.dll_public:_class_OUI::COString____thiscall_OUI::COString::operator_wchar_t_const__]
push dword [ebp + 0xc]
mov ecx, dword [edi + 0xb0]
push dword [ebp - 0x484]
mov eax, dword [ecx]
lea edx, [ebp - 0x444]
push edx
push ebx
call dword [eax + 4]
movq xmm0, qword [ebp - 0x444]
movq qword [edi + 0xb4], xmm0
movq xmm0, qword [ebp - 0x43c]
movq qword [edi + 0xbc], xmm0
mov ecx, dword [esi]
test ecx, ecx
je 0x1000237f
mov eax, dword [ebx]
push 2
lea edx, [ebp - 0x45c]
push edx
push ecx
mov ecx, ebx
call dword [eax + 0xc4]
mov edi, dword [ebp - 0x488]
mov ecx, edi
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::IsEmpty_void_const]
test eax, eax
jne 0x100023c1
mov esi, dword [ebx]
push 0x30303
push 0x4024
lea ecx, [ebp - 0x46c]
call dword [sym.imp.ouilibx.dll_public:_struct_tagRECT____thiscall_OUI::CORect::operator_struct_tagRECT__void_]
push eax
mov ecx, edi
call dword [sym.imp.ouilibx.dll_public:_wchar_t_const____thiscall_OUI::COString::operator_wchar_t_const__void_const]
push eax
push dword [ebp - 0x484]
mov ecx, ebx
call dword [esi + 0x84]
mov byte [ebp - 4], 0
mov esi, dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::destructor_void_]
lea ecx, [ebp - 0x42c]
call esi
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], 0xffffffff
call esi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003d966
mov esp, ebp
pop ebp
ret 0x18