Function at 0x431372
Capabilities:
Check if file exists
Check mutex on windows
Set current directory

Disassembly:
mov eax, 0x4665f8
call fcn.00461c40
sub esp, 0x488
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push str.EnableMultiInstance
push 0x481e8c
call dword [sym.imp.Ht4Dll.dll_int___cdecl_GetAppPrivateProfileInt_unsigned_short_int_const___unsigned_short_int_const___int_]
add esp, 0xc
cmp eax, edi
jne 0x4313e0
push dword [0x481d84]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x485ccc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4313e0
mov eax, dword [0x485ccc]
cmp eax, edi
je 0x4313d1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.004312d6
test eax, eax
je 0x431803
push ebx
push str.C:_archt.log
call dword [sym.imp.Ht4Dll.dll_void___cdecl_HTDBG::SetLogFile_unsigned_short_int_const__]
mov ebx, dword [sym.imp.Ht4Dll.dll_void___cdecl_HTDBG::MyOutPutPrintW_unsigned_short_int_const__]
mov dword [esp], 0x481e68
call ebx
mov dword [esp], str.PrintCreations.exe_Start_n
call ebx
pop ecx
mov ebx, 0x4845cc
push ebx
push str.CHtApp::InitInstance
lea ecx, [ebp - 0x84]
call dword [sym.imp.Ht4Dll.dll_public:_void___thiscall_HTDBG::CDbg3::constructor_unsigned_short_int_const___unsigned_short_int_const__]
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [ebp + 8]
push edi
push eax
mov dword [esi], eax
call dword [sym.imp.Ht4Dll.dll_void___cdecl_Ht4DllInit_struct_HINSTANCE_____void__]
pop ecx
pop ecx
call dword [sym.imp.Ht4Dll.dll_public:_static_void___cdecl_CPeOperateCri::Init_void_]
call dword [sym.imp.Ht4Dll.dll_public:_static_void___cdecl_CHt4ImgFunc::Init_void_]
mov al, byte [ebp + 0xb]
push edi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x3c], 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 - 0x3c]
mov byte [ebp - 4], 1
push eax
call dword [sym.imp.Ht4Dll.dll_public:_static_unsigned_short_int_const____cdecl_CHtPath::BuildExePath_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int____]
mov eax, dword [ebp - 0x38]
pop ecx
cmp eax, edi
jne 0x43146c
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
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x6b
push dword [esi]
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push 5
push ebx
push dword [esi]
call dword [sym.imp.Miracle.dll_Ordinal_10]
add esp, 0x10
cmp eax, edi
mov dword [esi + 4], eax
jne 0x43149a
xor esi, esi
jmp 0x4317e1
mov word [ebp - 0x494], di
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x492]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov al, byte [ebp + 0xb]
xor edi, edi
push edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], 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_]
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x1c]
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 - 0x4c]
mov byte [ebp - 4], 2
push eax
call dword [sym.imp.Ht4Dll.dll_public:_static_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_CHtPath::GetResPath_void_]
pop ecx
mov ecx, 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]
mov byte [ebp - 4], 3
push dword [ecx]
lea ecx, [ebp - 0x1c]
push edi
push eax
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_]
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
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 [ebp - 0x18]
cmp eax, edi
jne 0x431518
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]
mov ebx, dword [sym.imp.MSVCRT.dll_wcscpy]
push eax
lea eax, [ebp - 0x494]
push eax
call ebx
mov al, byte [ebp + 0xb]
pop ecx
pop ecx
mov byte [ebp - 0x2c], al
push edi
lea ecx, [ebp - 0x2c]
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 edi, 0x4816f8
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
push edi
lea ecx, [ebp - 0x2c]
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 - 0x2c]
mov ecx, esi
push eax
mov byte [ebp - 4], 4
call fcn.0043231d
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x43156d
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 - 0x494]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x494]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4315b2
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x431598
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 - 0x494]
push eax
call ebx
pop ecx
lea eax, [ebp - 0x494]
pop ecx
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
and word [ebp - 0x28c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x28a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x494]
push eax
lea eax, [ebp - 0x28c]
push eax
call ebx
pop ecx
lea eax, [ebp - 0x28c]
pop ecx
push str.Resource.xml
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.Ht4Dll.dll_int___cdecl_filetool::IsFileExist_unsigned_short_int_const__]
test eax, eax
pop ecx
je 0x43165d
mov ecx, dword [esi + 4]
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.Miracle.dll_Ordinal_439]
cmp dword [ebp + 8], 0
je 0x43165d
mov ecx, dword [esi + 4]
call dword [sym.imp.Miracle.dll_Ordinal_438]
mov edi, eax
test edi, edi
je 0x431651
push dword [ebp + 8]
mov ecx, edi
call dword [sym.imp.Miracle.dll_Ordinal_434]
push eax
mov ecx, edi
call dword [sym.imp.Miracle.dll_Ordinal_436]
mov ecx, dword [esi + 4]
call dword [sym.imp.Miracle.dll_Ordinal_441]
mov eax, dword [edi]
push edi
call dword [eax + 8]
lea eax, [ebp + 8]
lea ecx, [esi + 0x18]
push eax
call fcn.00451ff5
xor edi, edi
push 0x208
lea eax, [ebp - 0x28c]
push edi
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x494]
push eax
lea eax, [ebp - 0x28c]
push eax
call ebx
add esp, 0x14
lea eax, [ebp - 0x28c]
push str.ResUI.xml
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.Ht4Dll.dll_int___cdecl_filetool::IsFileExist_unsigned_short_int_const__]
test eax, eax
pop ecx
je 0x431702
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28c]
push eax
mov dword [ebp + 8], edi
call dword [sym.imp.Miracle.dll_Ordinal_439]
cmp dword [ebp + 8], edi
je 0x431702
mov ecx, dword [esi + 4]
call dword [sym.imp.Miracle.dll_Ordinal_438]
mov edi, eax
test edi, edi
je 0x4316f6
push dword [ebp + 8]
mov ecx, edi
call dword [sym.imp.Miracle.dll_Ordinal_434]
push eax
mov ecx, edi
call dword [sym.imp.Miracle.dll_Ordinal_436]
mov ecx, dword [esi + 4]
call dword [sym.imp.Miracle.dll_Ordinal_441]
mov eax, dword [edi]
push edi
call dword [eax + 8]
lea eax, [ebp + 8]
lea ecx, [esi + 0x18]
push eax
call fcn.00451ff5
cmp dword [0x485c90], 0
jne 0x431779
and word [ebp - 0x28c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x28a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x494]
push eax
lea eax, [ebp - 0x28c]
push eax
call ebx
pop ecx
lea eax, [ebp - 0x28c]
pop ecx
push str.ResHeat.xml
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.Ht4Dll.dll_int___cdecl_filetool::IsFileExist_unsigned_short_int_const__]
test eax, eax
pop ecx
je 0x43176f
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x28c]
push 0x485c90
push eax
call dword [sym.imp.Miracle.dll_Ordinal_439]
mov eax, dword [0x485c90]
mov dword [0x485c94], eax
cmp dword [esi + 4], 0
je 0x4317b4
push 5
push str.TextRenderingType
push 0x481e8c
call dword [sym.imp.Ht4Dll.dll_int___cdecl_GetAppPrivateProfileInt_unsigned_short_int_const___unsigned_short_int_const___int_]
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.Miracle.dll_Ordinal_432]
add esp, 0xc
push eax
push 1
call edi
mov ecx, dword [esi + 4]
push 1
push 2
call edi
mov ecx, dword [esi + 4]
push 1
push 7
call edi
call fcn.00431813
xor eax, eax
push 1
cmp dword [esi + 4], eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
setne al
mov esi, eax
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_]
push 1
lea ecx, [ebp - 0x1c]
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_]
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x3c]
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_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call dword [sym.imp.Ht4Dll.dll_public:_void___thiscall_HTDBG::CDbg3::destructor_void_]
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4