Function at 0x4048ac
Capabilities:
Get file size

Disassembly:
mov eax, 0x441648
call fcn.00440d70
sub esp, 0x48
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov ecx, dword [esi + 0x40]
xor edi, edi
cmp ecx, edi
mov dword [ebp - 4], edi
je 0x404c2b
mov ebx, dword [ebp + 0xc]
cmp ebx, edi
je 0x404c2b
push dword [ebp + 8]
call fcn.00405c0d
mov word [ebp - 0x44], di
mov byte [ebp - 4], 1
mov word [ebp - 0x34], di
push 0x4497d4
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00405639
mov ecx, dword [esi + 0x40]
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.00405ba3
push dword [eax]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.00405639
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
sub esp, 0x10
lea esi, [ebp - 0x34]
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x44]
mov edi, esp
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx]
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x24]
test eax, eax
jl 0x404bc7
lea eax, [ebp + 0xc]
push 1
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x40]
call fcn.00405ba3
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_4
push 0x65
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::LoadStringA
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
jne 0x4049f0
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call sub.MFC42.DLL_CString::CString_3
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 5
push eax
call fcn.004294e5
add esp, 4
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString_3
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 7
push eax
call fcn.00429554
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 9
call fcn.004407be
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
push 0x4497f4
lea ecx, [ebp - 0x44]
call fcn.00405639
push dword [ebp + 0xc]
lea ecx, [ebp - 0x34]
call fcn.00405639
sub esp, 0x10
lea esi, [ebp - 0x34]
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x44]
mov edi, esp
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx]
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x24]
test eax, eax
jl 0x404baf
push 0x449814
lea ecx, [ebp - 0x44]
call fcn.00405639
lea eax, [ebp - 0x1c]
push 2
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x40]
call fcn.00405ba3
push dword [eax]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xa
call fcn.00405639
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
sub esp, 0x10
lea esi, [ebp - 0x34]
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x44]
mov edi, esp
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx]
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x24]
test eax, eax
jl 0x404baf
push 0x449834
lea ecx, [ebp - 0x44]
call fcn.00405639
lea eax, [ebp - 0x1c]
push 3
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x40]
call fcn.00405ba3
push dword [eax]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xb
call fcn.00405639
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
sub esp, 0x10
lea esi, [ebp - 0x34]
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x44]
mov edi, esp
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx]
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x24]
test eax, eax
jl 0x404baf
push 0x449870
lea ecx, [ebp - 0x44]
call fcn.00405639
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x40]
call fcn.00405c48
push ecx
push ecx
lea ecx, [ebp - 0x34]
fstp qword [esp]
call fcn.004056ba
sub esp, 0x10
lea esi, [ebp - 0x34]
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x44]
mov edi, esp
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx]
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x24]
test eax, eax
jl 0x404baf
push 0x40
lea ecx, [ebp - 0x54]
push dword [ebp + 8]
xor edi, edi
xor esi, esi
call fcn.004409b6
cmp dword [ebp - 0x50], edi
mov byte [ebp - 4], 0xc
je 0x404b5e
push edi
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404b5e
xor esi, esi
push 0x449854
lea ecx, [ebp - 0x44]
call fcn.00405639
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
fild qword [ebp - 0x24]
push ecx
push ecx
lea ecx, [ebp - 0x34]
fstp qword [esp]
call fcn.004056ba
sub esp, 0x10
lea esi, [ebp - 0x34]
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x44]
mov edi, esp
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx]
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x24]
test eax, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x54]
jge 0x404bf1
call sub.MFC42.DLL_CFile::CFile
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 1
call esi
and byte [ebp - 4], 0
lea eax, [ebp - 0x44]
push eax
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x404c39
call sub.MFC42.DLL_CFile::CFile
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 1
call esi
and byte [ebp - 4], 0
lea eax, [ebp - 0x44]
push eax
call esi
push 1
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8