Function at 0x415ac0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x423b95
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
mov eax, dword [0x4306a0]
push ebx
push esi
mov dword [esp + 0x218], eax
push edi
mov esi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x228], 1
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x100]
push ecx
call fcn.004098b0
add esp, 8
mov byte [esp + 0x228], 2
lea ecx, [esp + 0xe0]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov byte [esp + 0x228], 3
mov byte [esp + 0x118], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x119]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x434f18
lea ecx, [esp + 0xac]
stosb byte es:[edi], al
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov bl, 4
mov byte [esp + 0x228], bl
lea edx, [esp + 0xa8]
push edx
lea eax, [esp + 0xc8]
push eax
call fcn.004098b0
add esp, 8
mov byte [esp + 0x228], 5
cmp dword [eax + 0x18], 0x10
jb 0x415b95
mov ecx, dword [eax + 4]
jmp 0x415b98
lea ecx, [eax + 4]
lea edx, [esp + 0x118]
nop
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x415ba0
mov byte [esp + 0x228], bl
lea ecx, [esp + 0xc4]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0x228], 3
lea ecx, [esp + 0xa8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea edi, [esp + 0x118]
dec edi
jmp 0x415be0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x415be0
mov ecx, dword [str.AppIcon_appicon_]
mov edx, dword [0x429500]
mov eax, dword [0x429504]
mov dword [edi], ecx
mov ecx, dword [0x429508]
mov dword [edi + 4], edx
mov dx, word [0x42950c]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
lea ecx, [esi + 0x334]
mov word [edi + 0x10], dx
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
lea ecx, [esp + 0xac]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov bl, 6
mov byte [esp + 0x228], bl
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0xc8]
push ecx
call fcn.004098b0
add esp, 8
mov byte [esp + 0x228], 7
cmp dword [eax + 0x18], 0x10
jb 0x415c63
mov eax, dword [eax + 4]
jmp 0x415c66
add eax, 4
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415c68
lea edi, [esp + 0x118]
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x415c80
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0x228], bl
lea ecx, [esp + 0xc4]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0x228], 3
lea ecx, [esp + 0xa8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea edi, [esp + 0x118]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x415cd0
mov edx, dword [str._appicon.ini]
mov eax, dword [0x4294f0]
mov ecx, dword [0x4294f4]
mov dword [edi], edx
mov dl, byte [0x4294f8]
mov dword [edi + 4], eax
lea eax, [esp + 0x118]
mov dword [edi + 8], ecx
push eax
mov byte [edi + 0xc], dl
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x415e4a
push 1
push 0x1b6
push 1
lea ecx, [esp + 0x124]
push ecx
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::constructor_char_const___int__int_]
mov byte [esp + 0x228], 8
lea ecx, [esp + 0xa8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov bl, 9
mov byte [esp + 0x228], bl
lea ecx, [esp + 0xc4]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov byte [esp + 0x228], 0xa
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
test byte [esp + eax + 0x18], 1
jne 0x415e0f
mov esi, dword [sym.imp.MSVCP71.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
jmp 0x415d80
push 0xa
lea ecx, [esp + eax + 0x14]
call dword [sym.imp.MSVCP71.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0xac]
push eax
push ecx
call fcn.00401a50
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
mov cl, byte [esp + eax + 0x24]
add esp, 0xc
test cl, 1
jne 0x415e0f
push 0xa
lea ecx, [esp + eax + 0x14]
call dword [sym.imp.MSVCP71.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0xc8]
push eax
push ecx
call fcn.00401a50
lea edx, [esp + 0x108]
push edx
lea eax, [esp + 0xb8]
push eax
call esi
add esp, 0x14
test al, al
jne 0x415dfa
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
test byte [esp + eax + 0x18], 1
je 0x415d80
jmp 0x415e0f
lea edx, [esp + 0xc4]
push edx
lea ecx, [esp + 0xe4]
call dword [0x426438]
mov byte [esp + 0x228], bl
lea ecx, [esp + 0xc4]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0x228], 8
lea ecx, [esp + 0xa8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0x228], 3
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::vbase_dtor_void_]
mov esi, dword [esp + 0x230]
lea eax, [esp + 0xe0]
push eax
push esi
call fcn.004098b0
add esp, 8
mov dword [esp + 0xc], 1
mov byte [esp + 0x228], 2
lea ecx, [esp + 0xe0]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0x228], 1
lea ecx, [esp + 0xfc]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0x228], 0
lea ecx, [esp + 0x234]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x220]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x214]
pop ebx
call fcn.00421871
add esp, 0x220
ret 0x20