Function at 0x443c50
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x569fb6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1e0
mov eax, dword [0x5c58d0]
push ebx
push ebp
push esi
mov dword [esp + 0x1e8], eax
push edi
mov ebp, ecx
lea eax, [esp + 0x200]
mov edi, 1
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x1fc], edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_10]
mov byte [esp + 0x1f8], 2
mov ecx, dword [esp + 0x200]
mov eax, dword [ecx - 0xc]
test eax, eax
jne 0x443e14
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_9]
mov bl, 3
push 0x520f
lea ecx, [esp + 0x14]
mov byte [esp + 0x1fc], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::LoadStringA_1]
mov edx, dword [esp + 0x208]
mov eax, dword [esp + 0x10]
push 0
push edx
push eax
push 0x1004
push 0
push 0
push edi
lea ecx, [esp + 0x40]
call fcn.00547816
mov byte [esp + 0x1f8], 4
mov eax, dword [esp + 0x204]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x443d1d
lea ecx, [esp + 0x24]
mov esi, eax
call sub.MFC71.DLL_CFileDialog::GetOFN_1
mov dword [eax + 0x2c], esi
lea ecx, [esp + 0x24]
call sub.MFC71.DLL_CFileDialog::DoModal
cmp eax, edi
je 0x443d91
lea ecx, [esp + 0x24]
mov byte [esp + 0x1f8], bl
call sub.MFC71.DLL_CFileDialog::CFileDialog
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x200]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x204]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
xor al, al
mov ecx, dword [esp + 0x1f0]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1ec]
call fcn.0054939e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1ec
ret 0xc
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x28]
call sub.MFC71.DLL_CFileDialog::GetPathName
push eax
lea ecx, [esp + 0x204]
mov byte [esp + 0x1fc], 5
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_5]
lea ecx, [esp + 0x14]
mov byte [esp + 0x1f8], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x28]
call sub.MFC71.DLL_CFileDialog::GetFileName
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1fc], 6
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_5]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x24]
mov byte [esp + 0x1f8], bl
call sub.MFC71.DLL_CFileDialog::CFileDialog
lea ecx, [esp + 0x10]
mov byte [esp + 0x1f8], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
cmp ecx, edi
jle 0x443e53
mov ebx, ecx
dec ebx
push 0x18
mov dword [eax + 0x14], ebx
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x1f8], 7
je 0x443e46
push eax
call fcn.00442a90
jmp 0x443e48
xor eax, eax
mov byte [esp + 0x1f8], 2
mov dword [ebp + 8], eax
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 8]
mov ecx, dword [ebp + 8]
push 0
push ecx
call fcn.00443960
add esp, 8
test al, al
je 0x443d44
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x443e88
push 0x80004003
call fcn.0054a810
mov esi, dword [esi]
mov edx, dword [esi]
push edi
push esi
call dword [edx + 0x8c8]
test eax, eax
jge 0x443ea4
push 0x583cfc
push esi
push eax
call fcn.0054a820
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x443ebb
push 0x80004003
call fcn.0054a810
mov esi, dword [esi]
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push ecx
push esi
mov dword [esp + 0x1c], 0
call dword [eax + 0x708]
test eax, eax
jge 0x443ee3
push 0x583cfc
push esi
push eax
call fcn.0054a820
push 0
lea ecx, [esp + 0x204]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer_2]
push ecx
mov ebx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00426f50
mov byte [esp + 0x1fc], 8
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x443f1e
push 0x80004003
call fcn.0054a810
mov esi, dword [esi]
mov edi, esi
mov byte [esp + 0x1fc], 2
call fcn.00446c90
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
add esi, 4
xor edi, edi
cmp eax, edi
jne 0x443f48
push 0x80004003
call fcn.0054a810
mov esi, dword [esi]
mov edx, dword [esi]
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], edi
call dword [edx + 0x708]
cmp eax, edi
jge 0x443f6c
push 0x583cfc
push esi
push eax
call fcn.0054a820
movsx eax, word [esp + 0x10]
cmp eax, 0xfffffffe
jne 0x443f95
push 0x5a6944
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], vtable.CFormatException.0
mov dword [esp + 0x24], 0x5247
call sub.MSVCR71.dll__CxxThrowException
cmp eax, edi
jne 0x444107
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
add esi, 4
cmp eax, edi
jne 0x443fb4
push 0x80004003
call fcn.0054a810
mov esi, dword [esi]
call fcn.00446f70
test eax, eax
je 0x444107
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
add esi, 4
cmp eax, edi
jne 0x443fda
push 0x80004003
call fcn.0054a810
mov esi, dword [esi]
call fcn.00446ec0
movsx eax, ax
call fcn.00443930
test al, al
je 0x4440b0
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push edi
lea ecx, [esp + 0x21c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer_2]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, edi
mov dword [esp + 0x10], esi
je 0x4440b0
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 1
push edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
push edi
push eax
call fcn.005495f0
mov edi, eax
mov eax, dword [esp + 0x18]
xor ecx, ecx
add edi, eax
mov ebx, edx
adc ebx, ecx
test ebx, ebx
jg 0x4440a9
jl 0x44405e
cmp edi, 0x4c4b40
jae 0x4440a9
cmp eax, 0xffffffff
je 0x4440a9
mov esi, dword [ebp + 8]
add esi, 8
call fcn.00441cc0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x1c]
push ecx
push edi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44409a
mov eax, dword [esp + 0x18]
xor ecx, ecx
cmp eax, edi
jne 0x44409a
cmp ecx, ebx
je 0x4440a5
mov esi, dword [ebp + 8]
add esi, 8
call fcn.00441c90
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
lea esi, [eax + 4]
cmp dword [esi], 0
je 0x4440dc
call fcn.00446450
mov esi, eax
call fcn.00446f70
test eax, eax
je 0x4440dc
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x20]
push eax
add ecx, 0x10
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_5]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x200]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x204]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov al, 1
jmp 0x443d6a
push 0x5a697c
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], vtable.CStreamException.0
mov dword [esp + 0x24], edi
call sub.MSVCR71.dll__CxxThrowException
int3