Function at 0x10003be0
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1003414a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x29c
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov dword [esp + 0x2b4], 0
call sub.MFC42.DLL_CString::CString_2
push 0
lea ecx, [esp + 0x54]
mov byte [esp + 0x2b8], 1
call sym.EoRezoTools_3.dll_public:_void___thiscall_CLog::constructor_enum_EO_APPLI_
lea ecx, [esp + 0x50]
mov byte [esp + 0x2b4], 2
call sym.EoRezoTools_3.dll_public:_int___thiscall_CLog::IsServerAvailable_void_
test eax, eax
jne 0x10003c86
lea ecx, [esp + 0x50]
mov byte [esp + 0x2b4], 1
call sym.EoRezoTools_3.dll_public_virtual:_void___thiscall_CLog::destructor_void_
lea ecx, [esp + 0x10]
mov byte [esp + 0x2b4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x2b4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xfffffdfc
jmp 0x1000415c
lea ecx, [esp + 0x30]
call sym.EoRezoTools_3.dll_public:_void___thiscall_CRegisterComm::constructor_void_
push 0
lea ecx, [esp + 0x34]
mov byte [esp + 0x2b8], 3
call sym.EoRezoTools_3.dll_public:_struct_HINSTANCE______thiscall_CRegisterComm::LoadDllComm_char_const__
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.TraceComm
push eax
call esi
test eax, eax
je 0x10003cd0
push 0x1005a050
push 0
push 0x9000
call eax
add esp, 0xc
lea ecx, [esp + 0x30]
push 0
call sym.EoRezoTools_3.dll_public:_void___thiscall_CRegisterComm::FreeDllComm_struct_HINSTANCE____
lea ecx, [esp + 0x30]
mov byte [esp + 0x2b4], 2
call sym.EoRezoTools_3.dll_public_virtual:_void___thiscall_CRegisterComm::destructor_void_
push 1
lea eax, [esp + 0x94]
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x10003d39
lea ecx, [esp + 0x50]
mov byte [esp + 0x2b4], 1
call sym.EoRezoTools_3.dll_public_virtual:_void___thiscall_CLog::destructor_void_
lea ecx, [esp + 0x10]
mov byte [esp + 0x2b4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x2b4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xfffffdfd
jmp 0x1000415c
lea ecx, [esp + 0x90]
push str.EoRezocache
push ecx
lea edx, [esp + 0x20]
push str._s_s
push edx
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x28]
add esp, 0x10
lea eax, [esp + 0x194]
push eax
push ecx
call sub.MFC42.DLL_CFile::GetStatus
test eax, eax
je 0x100040cf
mov edx, dword [esp + 0x18]
push 0
push 0x80
push 4
push 0
push 0
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
mov dword [esp + 0x48], edi
jne 0x10003dd9
lea ecx, [esp + 0x50]
mov byte [esp + 0x2b4], 1
call sym.EoRezoTools_3.dll_public_virtual:_void___thiscall_CLog::destructor_void_
lea ecx, [esp + 0x10]
mov byte [esp + 0x2b4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x2b4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xfffffe00
jmp 0x1000415c
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor edx, edx
mov ebp, 0x1a
mov ecx, eax
div ebp
test edx, edx
jne 0x1000406c
test ecx, ecx
jbe 0x10004063
add ecx, 0x19
mov eax, 0x4ec4ec4f
mul ecx
mov ebp, dword [sym.imp.MSVCRT.dll_atoi]
mov bl, 7
shr edx, 3
mov dword [esp + 0x28], edx
push 0x1a
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CString::GetBufferSetLength
lea ecx, [esp + 0x2c]
push 0
push ecx
push 0x1a
push 0
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
mov esi, eax
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1000404e
test esi, esi
je 0x1000404e
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x44]
mov byte [esp + 0x2b4], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x2b4], 5
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2b4], 6
call sub.MFC42.DLL_CString::CString_2
push 0x2f
lea ecx, [esp + 0x14]
mov byte [esp + 0x2b8], bl
call sub.MFC42.DLL_CString::ReverseFind
mov esi, eax
cmp esi, 0xffffffff
je 0x10004005
lea edx, [esi + 1]
lea eax, [esp + 0x40]
push edx
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b8], 8
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x40]
mov byte [esp + 0x2b4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
push esi
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2b8], 9
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2b4], bl
call sub.MFC42.DLL_CString::CString
push 0x2f
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, 0xffffffff
je 0x10004005
inc eax
lea edx, [esp + 0x38]
push eax
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2b8], 0xa
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x38]
mov byte [esp + 0x2b4], bl
call sub.MFC42.DLL_CString::CString
push 0x20
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Remove
push 0xa
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Remove
push 0x20
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Remove
push 0xa
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Remove
mov eax, dword [esp + 0x1c]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov esi, eax
push ecx
call ebp
add esp, 8
lea ecx, [esp + 0x20]
mov edi, eax
call sym.EoRezoTools_3.dll_public:_void___thiscall_CRegisterComm::constructor_void_
push 0
lea ecx, [esp + 0x24]
mov byte [esp + 0x2b8], 0xb
call sym.EoRezoTools_3.dll_public:_struct_HINSTANCE______thiscall_CRegisterComm::LoadDllComm_char_const__
push str.TraceComm
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10003ff1
push 0x1005a050
push esi
push edi
call eax
add esp, 0xc
lea ecx, [esp + 0x20]
push 0
call sym.EoRezoTools_3.dll_public:_void___thiscall_CRegisterComm::FreeDllComm_struct_HINSTANCE____
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b4], bl
call sym.EoRezoTools_3.dll_public_virtual:_void___thiscall_CRegisterComm::destructor_void_
mov edi, dword [esp + 0x48]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2b4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x2b4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x2b4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2b4], 2
call sub.MFC42.DLL_CString::CString
jmp 0x10003e2c
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x28], eax
jne 0x10003e19
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100040cf
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call sym.EoRezoTools_3.dll_public:_int___thiscall_CCache::RemoveCache_void_
lea ecx, [esp + 0x20]
call sym.EoRezoTools_3.dll_public:_void___thiscall_CRegisterComm::constructor_void_
push 0
lea ecx, [esp + 0x24]
mov byte [esp + 0x2b8], 0xc
call sym.EoRezoTools_3.dll_public:_struct_HINSTANCE______thiscall_CRegisterComm::LoadDllComm_char_const__
push str.TraceComm
push eax
call esi
test eax, eax
je 0x100040be
push 0x1005a050
push 0
push 0x9002
call eax
add esp, 0xc
lea ecx, [esp + 0x20]
push 0
call sym.EoRezoTools_3.dll_public:_void___thiscall_CRegisterComm::FreeDllComm_struct_HINSTANCE____
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b4], 2
call sym.EoRezoTools_3.dll_public_virtual:_void___thiscall_CRegisterComm::destructor_void_
lea ecx, [esp + 0x20]
call sym.EoRezoTools_3.dll_public:_void___thiscall_CRegisterComm::constructor_void_
push 0
lea ecx, [esp + 0x24]
mov byte [esp + 0x2b8], 0xd
call sym.EoRezoTools_3.dll_public:_struct_HINSTANCE______thiscall_CRegisterComm::LoadDllComm_char_const__
push str.TraceComm
push eax
call esi
test eax, eax
je 0x10004113
push 0x1005a050
push 0
push 0x9001
call eax
add esp, 0xc
lea ecx, [esp + 0x20]
push 0
call sym.EoRezoTools_3.dll_public:_void___thiscall_CRegisterComm::FreeDllComm_struct_HINSTANCE____
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b4], 2
call sym.EoRezoTools_3.dll_public_virtual:_void___thiscall_CRegisterComm::destructor_void_
lea ecx, [esp + 0x50]
mov byte [esp + 0x2b4], 1
call sym.EoRezoTools_3.dll_public_virtual:_void___thiscall_CLog::destructor_void_
lea ecx, [esp + 0x10]
mov byte [esp + 0x2b4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x2b4], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x2ac]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2a8
ret