Function at 0x40e750
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x422793
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x66c
push ebx
push edi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::CFileFind
mov dword [esp + 0x67c], 0
call fcn.0041e5d0
add eax, 0xc
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0xc]
push 0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x684], 1
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40ea0c
push 1
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
push 0x42d5e8
push ecx
call sub.MFC42.DLL_operator_1
lea eax, [esp + 0x10]
mov byte [esp + 0x684], 2
push eax
call fcn.004156d0
mov ecx, esp
mov dword [esp + 0x20], esp
push str.LogsLancher.txt
push eax
push ecx
mov byte [esp + 0x694], 3
call sub.MFC42.DLL_operator_2
mov byte [esp + 0x688], 4
call fcn.00414ee0
add esp, 0xc
lea ecx, [esp + 8]
mov byte [esp + 0x67c], 1
call sub.MFC42.DLL_CString::CString
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x38]
call fcn.0041f2a0
mov bl, 5
lea ecx, [esp + 0x34]
mov byte [esp + 0x67c], bl
call fcn.0041fde0
test eax, eax
je 0x40e9fb
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x42d5d4
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x10]
mov byte [esp + 0x684], 6
push eax
call fcn.004156d0
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.LogsLancher.txt
push eax
push ecx
mov byte [esp + 0x694], 7
call sub.MFC42.DLL_operator_2
mov byte [esp + 0x688], 8
call fcn.00414ee0
add esp, 0xc
lea ecx, [esp + 8]
mov byte [esp + 0x67c], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x40ea5f
mov dl, byte [0x42e820]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x275]
mov byte [esp + 0x274], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0041e5d0
mov eax, dword [eax + 0x458]
push eax
lea eax, [esp + 0x278]
push 0x400
push eax
push 0
push str.NOT_UPDATE_VERSION
push str.NOT_UPDATE_VERSION
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x274]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 8]
push edx
push eax
mov byte [esp + 0x684], 9
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40e9eb
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_4
mov byte [esp + 0x67c], 0xa
call fcn.0040baa0
mov ecx, dword [esp + 0x48]
mov eax, dword [eax + 0x9c]
push ecx
lea edx, [esp + 0x14]
push eax
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0x43
push eax
call sub.MFC42.DLL_AfxMessageBox
cmp eax, 2
jne 0x40e9d5
mov cl, byte [0x42e820]
xor eax, eax
mov byte [esp + 0x74], cl
mov ecx, 0x7f
lea edi, [esp + 0x75]
mov edx, dword [esp + 0x48]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x78]
push str.NOT_UPDATE_VERSION_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
call fcn.0041e5d0
mov eax, dword [eax + 0x458]
lea ecx, [esp + 0x74]
push eax
push ecx
push str.NOT_UPDATE_VERSION
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
mov byte [esp + 0x67c], 9
lea ecx, [esp + 0x10]
jmp 0x40e9e6
cmp eax, 7
mov byte [esp + 0x67c], 9
lea ecx, [esp + 0x10]
jne 0x40ea4a
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x67c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x67c], 1
call fcn.0041f3e0
lea ecx, [esp + 0xc]
mov byte [esp + 0x67c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x67c], 0xffffffff
call fcn.004204e0
xor eax, eax
mov ecx, dword [esp + 0x674]
mov dword fs:[0], ecx
pop edi
pop ebx
add esp, 0x678
ret
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x67c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x67c], 1
call fcn.0041f3e0
lea ecx, [esp + 0xc]
mov byte [esp + 0x67c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x67c], 0xffffffff
call fcn.004204e0
mov ecx, dword [esp + 0x674]
pop edi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x678
ret