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

Disassembly:
push 0xffffffffffffffff
push 0x472e2c
mov eax, dword fs:[0]
push eax
sub esp, 0x518
mov eax, dword [0x492bec]
xor eax, esp
mov dword [esp + 0x514], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x492bec]
xor eax, esp
push eax
lea eax, [esp + 0x52c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x53c]
lea eax, [esp + 0x18]
push eax
call sub.HZDKernel.dll_public:_static_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______cdecl_HZD::Kernel::Helper::CBaseHelper::BinPath_void_
push eax
lea ecx, [esp + 0x1c]
push ecx
mov edi, str.Config.ini
mov dword [esp + 0x540], 0
call fcn.00407810
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0xc
push eax
push 0x400
lea edx, [esp + 0x30]
push edx
push 0x47ee18
push str.autostart
push str.SetInfo
call esi
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
or ebx, 0xffffffff
lea ecx, [esp + 0x18]
mov dword [esp + 0x534], ebx
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea eax, [esp + 0x28]
push eax
mov ecx, 0x494070
call dword [sym.imp.mfc90.dll_Ordinal_820]
push 0x480718
mov ecx, 0x494070
call dword [sym.imp.mfc90.dll_Ordinal_1603]
test eax, eax
jne 0x405558
mov ecx, 0x49403c
call sub.HZDKernel.dll_public:_bool___thiscall_HZD::Kernel::OS::CBaseOS::isAutoRun_void_
test al, al
jne 0x405558
mov ecx, 0x49403c
call sub.HZDKernel.dll_public:_void___thiscall_HZD::Kernel::OS::CBaseOS::AutoRun_void_
push 0x47ee18
mov ecx, 0x494070
call dword [sym.imp.mfc90.dll_Ordinal_1603]
test eax, eax
jne 0x40557c
push 0x48068c
mov ecx, 0x494070
call dword [sym.imp.mfc90.dll_Ordinal_820]
lea ecx, [esp + 0x14]
push ecx
call sub.HZDKernel.dll_public:_static_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______cdecl_HZD::Kernel::Helper::CBaseHelper::BinPath_void_
push eax
lea edx, [esp + 0x20]
push edx
mov edi, str.Config.ini
mov dword [esp + 0x540], 1
call fcn.00407810
mov eax, dword [eax]
add esp, 0xc
push eax
push 0x400
lea eax, [esp + 0x30]
push eax
push 0x47ee18
push str.exitway
push str.SetInfo
call esi
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x14]
mov dword [esp + 0x534], ebx
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x28]
push ecx
mov ecx, 0x494074
call dword [sym.imp.mfc90.dll_Ordinal_820]
push 0x47ee18
mov ecx, 0x494074
call dword [sym.imp.mfc90.dll_Ordinal_1603]
test eax, eax
jne 0x405611
push 0x48068c
mov ecx, 0x494074
call dword [sym.imp.mfc90.dll_Ordinal_820]
lea edx, [esp + 0x14]
push edx
call sub.HZDKernel.dll_public:_static_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______cdecl_HZD::Kernel::Helper::CBaseHelper::BinPath_void_
push eax
lea eax, [esp + 0x20]
push eax
mov edi, str.Config.ini
mov dword [esp + 0x540], 2
call fcn.00407810
mov eax, dword [eax]
add esp, 0xc
push eax
push 0x400
lea ecx, [esp + 0x30]
push ecx
push 0x47ee18
push str.closewarn
push str.SetInfo
call esi
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x14]
mov dword [esp + 0x534], ebx
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea edx, [esp + 0x28]
push edx
mov ecx, 0x49407c
call dword [sym.imp.mfc90.dll_Ordinal_820]
push 0x47ee18
mov ecx, 0x49407c
call dword [sym.imp.mfc90.dll_Ordinal_1603]
test eax, eax
jne 0x4056a6
push 0x48068c
mov ecx, 0x49407c
call dword [sym.imp.mfc90.dll_Ordinal_820]
lea eax, [esp + 0x14]
push eax
call sub.HZDKernel.dll_public:_static_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______cdecl_HZD::Kernel::Helper::CBaseHelper::BinPath_void_
push eax
lea ecx, [esp + 0x20]
push ecx
mov edi, str.Config.ini
mov dword [esp + 0x540], 3
call fcn.00407810
mov eax, dword [eax]
add esp, 0xc
push eax
push 0x400
lea edx, [esp + 0x30]
push edx
push 0x47ee18
push 0x480b34
push str.SetInfo
call esi
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x14]
mov dword [esp + 0x534], ebx
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea eax, [esp + 0x28]
push eax
mov ecx, 0x494078
call dword [sym.imp.mfc90.dll_Ordinal_820]
push 0x47ee18
mov ecx, 0x494078
call dword [sym.imp.mfc90.dll_Ordinal_1603]
test eax, eax
jne 0x40573b
push 0x480718
mov ecx, 0x494078
call dword [sym.imp.mfc90.dll_Ordinal_820]
lea ecx, [esp + 0x14]
push ecx
call sub.HZDKernel.dll_public:_static_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______cdecl_HZD::Kernel::Helper::CBaseHelper::BinPath_void_
push eax
lea edx, [esp + 0x20]
push edx
mov edi, str.Config.ini
mov dword [esp + 0x540], 4
call fcn.00407810
mov eax, dword [eax]
add esp, 0xc
push eax
push 0x400
lea eax, [esp + 0x30]
push eax
push 0x47ee18
push str.RMWP
push str.SetInfo
call esi
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x14]
mov dword [esp + 0x534], ebx
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x28]
push ecx
mov ecx, 0x494080
call dword [sym.imp.mfc90.dll_Ordinal_820]
push 0x47ee18
mov ecx, 0x494080
call dword [sym.imp.mfc90.dll_Ordinal_1603]
test eax, eax
jne 0x4057d0
push 0x480718
mov ecx, 0x494080
call dword [sym.imp.mfc90.dll_Ordinal_820]
push 0x480718
mov ecx, 0x494080
call dword [sym.imp.mfc90.dll_Ordinal_1603]
test eax, eax
jne 0x405832
mov ecx, 0x49403c
call sub.HZDKernel.dll_public:_bool___thiscall_HZD::Kernel::OS::CBaseOS::isRegRM_void_
test al, al
jne 0x405832
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x480b40
call dword [sym.imp.mfc90.dll_Ordinal_310]
push ecx
mov dword [esp + 0x53c], 5
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x480b44
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov ecx, 0x49403c
mov dword [esp + 0x53c], ebx
call sub.HZDKernel.dll_public:_void___thiscall_HZD::Kernel::OS::CBaseOS::RegDesk_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char_____class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char____
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_316]
lea edx, [esp + 0x14]
mov ebx, 6
push edx
mov dword [esp + 0x538], ebx
call sub.HZDKernel.dll_public:_static_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______cdecl_HZD::Kernel::Helper::CBaseHelper::BinPath_void_
push eax
lea eax, [esp + 0x20]
push eax
mov edi, str.Config.ini
mov byte [esp + 0x540], 7
call fcn.00407810
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea ecx, [esp + 0x18]
mov edi, eax
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x14]
mov byte [esp + 0x534], bl
call dword [sym.imp.mfc90.dll_Ordinal_601]
test edi, edi
je 0x405924
lea ecx, [esp + 0x24]
push ecx
call sub.HZDKernel.dll_public:_static_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______cdecl_HZD::Kernel::Helper::CBaseHelper::BinPath_void_
push eax
lea edx, [esp + 0x28]
push edx
mov edi, str.Config.ini
mov byte [esp + 0x540], 8
call fcn.00407810
mov eax, dword [eax]
add esp, 0xc
push eax
push 0x100
lea eax, [esp + 0x430]
push eax
push 0x47ee18
push str.default
push str.Skins
call esi
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x24]
mov byte [esp + 0x534], bl
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x428]
push ecx
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.MSVCR90.dll_atoi]
add esp, 4
mov dword [ebp + 0xb50], eax
jmp 0x40592e
mov dword [ebp + 0xb50], 0
mov eax, dword [ebp + 0xb50]
cmp eax, 5
ja 0x40593f
push eax
call fcn.00404330
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x52c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x514]
xor ecx, esp
call fcn.0046d6fc
add esp, 0x524
ret 4