Function at 0x40ef20
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x449133
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x20], ecx
xor ebx, ebx
push 0x450998
push 0x450994
lea ecx, [esp + 0x80]
mov dword [esp + 0x74], 2
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Replace]
push 0x450998
push 0x450994
lea ecx, [esp + 0x84]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Replace]
mov edx, dword [esp + 0x78]
push ebx
push 0x80
push 3
push ebx
push 7
xor eax, eax
xor ecx, ecx
push 0x80000000
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], ecx
push edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, ebx
je 0x40efeb
cmp esi, 0xffffffff
je 0x40efeb
push ebx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x38]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea edx, [esp + 0x1c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x30], ebx
mov ebp, dword [sym.imp.MSVCR71.dll__localtime64]
jne 0x40effd
cmp dword [esp + 0x34], ebx
je 0x40f03a
push 0xffffffffffffffff
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x30]
call fcn.0040e910
lea ecx, [esp + 0x28]
push ecx
call ebp
add esp, 4
cmp eax, ebx
je 0x40f028
mov ecx, 9
mov esi, eax
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.MSVCR71.dll_mktime]
add esp, 4
mov dword [esp + 0x10], eax
cmp dword [esp + 0x38], ebx
jne 0x40f046
cmp dword [esp + 0x3c], ebx
je 0x40f083
push 0xffffffffffffffff
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x30]
call fcn.0040e910
lea ecx, [esp + 0x28]
push ecx
call ebp
add esp, 4
cmp eax, ebx
je 0x40f071
mov ecx, 9
mov esi, eax
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.MSVCR71.dll_mktime]
add esp, 4
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov ecx, dword [ecx - 0xc]
mov edx, dword [edx - 0xc]
mov eax, dword [eax - 0xc]
add edx, ecx
lea eax, [edx + eax + 0x31]
push eax
mov dword [esp + 0x28], eax
call sub.MFC71U.DLL_SerializeElements
mov ebp, eax
add esp, 4
mov dword [esp + 0x28], ebp
mov ecx, dword [str.HSFILE]
mov dword [eax], ecx
mov dx, word [0x450990]
mov word [eax + 4], dx
mov eax, dword [esp + 0x80]
mov dword [ebp + 6], eax
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx - 0xc]
lea ebx, [ebp + 6]
add ebx, 4
mov dword [ebx], eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0x6c], 3
mov dword [esp + 0x80], eax
add ebx, 4
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::GetBuffer]
mov esi, eax
mov eax, dword [esp + 0x80]
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add ebx, eax
mov eax, dword [esp + 0x74]
mov eax, dword [eax - 0xc]
mov dword [ebx], eax
lea ecx, [esp + 0x74]
mov dword [esp + 0x80], eax
add ebx, 4
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::GetBuffer]
mov esi, eax
mov eax, dword [esp + 0x80]
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add ebx, eax
mov eax, dword [esp + 0x78]
mov eax, dword [eax - 0xc]
mov dword [ebx], eax
lea ecx, [esp + 0x78]
mov dword [esp + 0x80], eax
add ebx, 4
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::GetBuffer]
mov esi, eax
mov eax, dword [esp + 0x80]
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
add ebx, eax
call dword [sym.imp.MSVCR71.dll_time]
add esp, 4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
mov dword [ebx + 4], eax
add ebx, 4
mov dword [ebx + 4], ecx
add ebx, 4
mov dword [ebx + 4], edx
mov eax, dword [esp + 0x1c]
add ebx, 4
mov dword [ebx + 4], eax
add ebx, 4
mov dword [ebx + 4], 1
mov cx, word [0x450988]
add ebx, 4
add ebx, 4
mov word [ebx], cx
mov dl, byte [0x45098a]
add esi, 0x518
mov byte [ebx + 2], dl
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov eax, dword [esp + 0x24]
mov edx, dword [esi]
push eax
push ebp
mov ecx, esi
call dword [edx + 0x20]
push ebp
call sub.MFC71U.DLL_CNoTrackObject::operator_new
add esp, 4
lea ecx, [esp + 0x74]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x78]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x7c]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 0x10