Function at 0x433be8
Capabilities:
Check if file exists
Read .ini file

Disassembly:
mov eax, 0x4669c6
call fcn.00461c40
sub esp, 0x64c
push ebx
push esi
mov esi, ecx
push edi
or dword [esi], 0xffffffff
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
lea ecx, [esi + 0x14]
push eax
push edx
call fcn.00428e65
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
mov edi, 0x4845cc
push edi
call ebx
pop ecx
push eax
push edi
lea ecx, [esi + 4]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
push edi
call ebx
pop ecx
push eax
push edi
lea ecx, [esi + 0x4c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [esi + 0x48], edi
push edi
mov al, byte [ebx]
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
lea ecx, [ebp - 0x30]
push dword [eax]
push edi
push ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
mov al, byte [ebp + 0xb]
mov dword [ebp - 4], edi
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.0043430c
cmp dword [ebp - 0x1c], edi
je 0x433c99
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
test eax, 0xfffffff0
jne 0x433ca1
push 1
pop esi
jmp 0x4341e4
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
call fcn.00419db8
mov ebx, dword [ebp - 0x1c]
mov dword [ebp + 8], 1
mov edi, dword [sym.imp.Ht4Dll.dll_public:_static_int___cdecl_CHT4StrTool::EqualI_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_short_int_const__]
push 0x4821ac
push ebx
call edi
pop ecx
test eax, eax
pop ecx
je 0x433cec
add ebx, 0x10
cmp ebx, dword [ebp - 0x18]
je 0x4341e1
push ebx
call dword [sym.imp.Ht4Dll.dll_public:_static_long_int___cdecl_CHT4StrTool::Str2Long_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
pop ecx
mov dword [esi], eax
mov dword [ebp + 8], 2
jmp 0x434173
push str._AssetFilePath
push ebx
call edi
pop ecx
test eax, eax
pop ecx
je 0x433d10
add ebx, 0x10
cmp ebx, dword [ebp - 0x18]
je 0x4341e1
push ebx
mov ecx, esi
call fcn.00434479
jmp 0x433ce0
push 0x482184
push ebx
call edi
pop ecx
test eax, eax
pop ecx
je 0x433dbd
xor edi, edi
mov dword [ebp - 0x10], edi
add ebx, 0x10
cmp ebx, dword [ebp - 0x18]
je 0x434173
mov eax, dword [ebp - 0x10]
sub eax, edi
je 0x433d96
dec eax
je 0x433d85
dec eax
je 0x433d74
dec eax
je 0x433d5d
dec eax
jne 0x433dab
push ebx
call dword [sym.imp.Ht4Dll.dll_public:_static_long_int___cdecl_CHT4StrTool::Str2Long_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
pop ecx
xor ecx, ecx
test eax, eax
setg cl
mov dword [esi + 0xe0], ecx
jmp 0x433dab
push ebx
call dword [sym.imp.Ht4Dll.dll_public:_static_long_int___cdecl_CHT4StrTool::Str2Long_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
pop ecx
xor ecx, ecx
test eax, eax
setg cl
mov dword [esi + 0xdc], ecx
jmp 0x433dab
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
lea ecx, [esi + 0xcc]
push dword [eax]
push edi
push ebx
jmp 0x433da5
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
lea ecx, [esi + 0xbc]
push dword [eax]
push edi
push ebx
jmp 0x433da5
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
lea ecx, [esi + 0xac]
push dword [eax]
push edi
push ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 5
jl 0x433d27
jmp 0x434173
push 0x48217c
push ebx
call edi
pop ecx
test eax, eax
pop ecx
je 0x433def
add ebx, 0x10
cmp ebx, dword [ebp - 0x18]
je 0x4341e1
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
lea ecx, [esi + 4]
push dword [eax]
push 0
push ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
jmp 0x434173
push 0x482174
push ebx
call edi
pop ecx
test eax, eax
pop ecx
je 0x433e19
add ebx, 0x10
cmp ebx, dword [ebp - 0x18]
je 0x4341e1
push ebx
call dword [sym.imp.Ht4Dll.dll_public:_static_long_int___cdecl_CHT4StrTool::Str2Long_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
pop ecx
mov dword [esi + 0x44], eax
jmp 0x434173
push 0x48216c
push ebx
call edi
pop ecx
test eax, eax
pop ecx
je 0x433e43
add ebx, 0x10
cmp ebx, dword [ebp - 0x18]
je 0x4341e1
push ebx
call dword [sym.imp.Ht4Dll.dll_public:_static_long_int___cdecl_CHT4StrTool::Str2Long_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
pop ecx
mov dword [esi + 0x48], eax
jmp 0x434173
push 0x482164
push ebx
call edi
pop ecx
test eax, eax
pop ecx
je 0x433f01
xor ecx, ecx
mov dword [ebp + 8], ecx
jmp 0x433e5e
xor ecx, ecx
add ebx, 0x10
cmp ebx, dword [ebp - 0x18]
je 0x433ef5
mov eax, dword [ebp + 8]
sub eax, ecx
je 0x433eaa
dec eax
je 0x433e9c
dec eax
je 0x433e8e
dec eax
jne 0x433ee8
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
push dword [eax]
push ecx
push ebx
lea ecx, [esi + 0x7c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
jmp 0x433ee8
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
push dword [eax]
push ecx
push ebx
lea ecx, [esi + 0x6c]
jmp 0x433e86
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
push dword [eax]
push ecx
push ebx
lea ecx, [esi + 0x5c]
jmp 0x433e86
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
push dword [eax]
push ecx
push ebx
lea ecx, [esi + 0x4c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
lea eax, [esi + 0x4c]
push str.ArcSoft
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x433ee8
push 0x48215c
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
push 0x48215c
lea ecx, [esi + 0x4c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
inc dword [ebp + 8]
cmp dword [ebp + 8], 3
jl 0x433e5c
mov dword [ebp + 8], 4
jmp 0x434173
push 0x482154
push ebx
call edi
pop ecx
test eax, eax
pop ecx
je 0x433f2d
add ebx, 0x10
cmp ebx, dword [ebp - 0x18]
je 0x4341e1
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
lea ecx, [esi + 0x7c]
push dword [eax]
push 0
push ebx
jmp 0x433de4
push 0x48214c
push ebx
call edi
pop ecx
test eax, eax
pop ecx
je 0x433f66
add ebx, 0x10
cmp ebx, dword [ebp - 0x18]
je 0x4341e1
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
lea ecx, [esi + 0x34]
push dword [eax]
push 0
push ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
mov dword [ebp + 8], 5
jmp 0x434173
push 0x482144
push ebx
call edi
pop ecx
test eax, eax
pop ecx
je 0x433f80
mov dword [ebp + 8], 6
jmp 0x434173
push 0x48213c
push ebx
call edi
pop ecx
test eax, eax
pop ecx
je 0x433faf
add ebx, 0x10
cmp ebx, dword [ebp - 0x18]
je 0x4341e1
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
lea ecx, [esi + 0x8c]
push dword [eax]
push 0
push ebx
jmp 0x433de4
push str._Path
push ebx
call edi
pop ecx
test eax, eax
pop ecx
je 0x4340de
add ebx, 0x10
cmp ebx, dword [ebp - 0x18]
je 0x4341e1
mov eax, dword [ebx + 4]
test eax, eax
jne 0x433fd9
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
push 0
push str.PicCount
push str.Default
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
and dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x4340d2
and word [ebp - 0x658], 0
mov edx, 0x81
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x656]
and word [ebp - 0x450], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x44e]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x658]
push str.Pic__d
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
mov eax, dword [ebx + 4]
add esp, 0xc
test eax, eax
jne 0x434050
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
lea eax, [ebp - 0x450]
push 0x104
push eax
lea eax, [ebp - 0x658]
push 0x4845cc
push eax
push str.Default
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x40], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
lea eax, [ebp - 0x40]
lea ecx, [esi + 0x14]
push eax
mov byte [ebp - 4], 2
call fcn.0041a6a8
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x10]
jl 0x433ffb
mov dword [ebp + 8], 7
jmp 0x434173
push str._right
push ebx
call edi
pop ecx
test eax, eax
pop ecx
je 0x4340f8
mov dword [esi + 0xe4], 1
jmp 0x434173
and word [ebp - 0x248], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x246]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebx + 4]
test eax, eax
jne 0x43411d
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x434173
mov edi, dword [sym.imp.Ht4Dll.dll_public:_static_int___cdecl_CHT4StrTool::EqualI_unsigned_short_int_const___unsigned_short_int_const__]
push str..apcz
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x434180
push str..zapc
push dword [ebp - 0x10]
call edi
pop ecx
test eax, eax
pop ecx
jne 0x434180
push str..apc
push dword [ebp - 0x10]
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4341ad
add ebx, 0x10
cmp ebx, dword [ebp - 0x18]
jae 0x4341e1
jmp 0x433cb6
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4341da
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
lea ecx, [esi + 0x24]
push dword [eax]
push 0
push ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
mov dword [ebp + 8], 3
jmp 0x4341e1
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4341da
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
lea ecx, [esi + 0x24]
push dword [eax]
push 0
push ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
mov dword [ebp + 8], 8
jmp 0x4341e1
mov dword [ebp + 8], 1
mov esi, dword [ebp + 8]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004033a7
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4