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

Disassembly:
mov eax, 0x41c7df
call fcn.0041baa0
sub esp, 0x4f8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov esi, 0x42bca8
lea eax, [edi + 0xec]
push eax
lea eax, [ebp - 0x18]
push esi
push eax
call sub.MFC42.DLL_operator_2
push dword [ebp - 0x18]
and dword [ebp - 4], 0
call fcn.004183bb
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
pop ecx
movzx eax, al
mov dword [ebp - 0x64], eax
call ebx
push dword [ebp - 0x18]
mov ecx, dword [edi + 0x118]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x28]
push 0x42762c
push eax
call fcn.0040e43d
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 1
cmp dword [eax - 8], 0
jne 0x4061c1
push 0x4281b4
lea ecx, [ebp - 0x28]
call fcn.0041b4e4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push esi
push eax
call sub.MFC42.DLL_operator_2
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 2
call fcn.0040f576
push dword [ebp - 0x34]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.0040f825
push dword [ebp - 0x18]
mov ecx, dword [edi + 0x118]
lea eax, [ebp - 0x20]
push 0x4281a4
push eax
call fcn.0040e43d
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 4
cmp dword [eax - 8], 0
jne 0x406221
push str.SelectRebatesUninstall_.exe
lea ecx, [ebp - 0x20]
call fcn.0041b4e4
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push esi
push eax
call sub.MFC42.DLL_operator_2
push dword [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.004183bb
movzx eax, al
pop ecx
mov dword [ebp - 0x58], eax
call ebx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x60], eax
call fcn.0040f576
push dword [ebp - 0x30]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 6
call fcn.0040f825
push dword [ebp - 0x18]
mov ecx, dword [edi + 0x118]
lea eax, [ebp - 0x2c]
push 0x428180
push eax
call fcn.0040e43d
mov eax, dword [ebp - 0x2c]
xor ebx, ebx
mov byte [ebp - 4], 7
cmp dword [eax - 8], ebx
jne 0x406290
push 0x428168
lea ecx, [ebp - 0x2c]
call fcn.0041b4e4
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push esi
push eax
call sub.MFC42.DLL_operator_2
push dword [ebp - 0x18]
mov ecx, dword [edi + 0x118]
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 8
push 0x428160
push eax
call fcn.0040e43d
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 9
cmp dword [eax - 8], ebx
jne 0x4062d2
push 0x428150
lea ecx, [ebp - 0x24]
call fcn.0041b4e4
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x40]
push esi
push eax
call sub.MFC42.DLL_operator_2
lea esi, [edi + 0x1c]
push str.ShopAtHomeToolbar_.dll
lea eax, [ebp - 0x3c]
push esi
push eax
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_operator_1
push str.FFToolbarinstall.rdf
lea eax, [ebp - 0x44]
push esi
push eax
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_operator_1
mov eax, dword [edi + 0x164]
lea esi, [edi + 0x15c]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xc
push ecx
push eax
mov ecx, esi
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x34]
push ecx
push eax
mov ecx, esi
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x40]
push ecx
push eax
mov ecx, esi
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x30]
push ecx
push eax
mov ecx, esi
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x48]
push ecx
push eax
mov ecx, esi
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
cmp byte [0x42bd0c], 0
je 0x406393
cmp byte [0x42bd0d], 0
jne 0x406393
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x3c]
push ecx
push eax
mov ecx, esi
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x44]
push ecx
push eax
mov ecx, esi
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
jmp 0x4063b3
mov eax, dword [esi + 8]
push 0x429ea8
push eax
mov ecx, esi
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov eax, dword [esi + 8]
push 0x429ea8
push eax
mov ecx, esi
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea eax, [ebp - 0x4c]
push ebx
push eax
lea eax, [ebp - 0x50]
push eax
push esi
mov ecx, edi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
call fcn.00406089
cmp eax, ebx
jne 0x406498
lea eax, [ebp - 0x1c]
mov byte [edi + 0x124], 1
or dword [0x42bd24], 2
push eax
call dword [sym.imp.MSVCRT.dll_time]
pop ecx
mov ecx, dword [ebp - 0x1c]
lea ebx, [ecx + 0x3c]
mov eax, ebx
sub eax, ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x5c], eax
call sub.MFC42.DLL_CString::CString_2
push dword [ebp - 0x5c]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0xd
push str.Install_blocked:_Waiting_for_permission___d_
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [edi + 0x174]
push 2
push dword [ebp - 0x14]
call fcn.0040bf3b
and dword [ebp - 0x38], 0
and dword [ebp - 0x68], 0
cmp dword [ebp - 0x1c], ebx
jge 0x40648a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x68]
push 1
push eax
lea eax, [ebp - 0x38]
push eax
push esi
mov ecx, edi
call fcn.00406089
test eax, eax
jne 0x40648a
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_time]
mov eax, ebx
pop ecx
sub eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push str.Install_blocked:_Waiting_for_permission___d_
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [edi + 0x174]
push 2
push dword [ebp - 0x14]
call fcn.0040bf3b
jmp 0x406430
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
xor ebx, ebx
push 2
push ebx
lea ecx, [edi + 0x174]
call fcn.0040bf3b
push dword [0x42bca8]
mov byte [ebp - 4], 0xe
call fcn.004183bb
pop ecx
push 0x429ea8
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocStringLen
push dword [ebp - 0x18]
mov byte [ebp - 4], 0xf
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40656e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, 0x400
lea eax, [ebp - 0x504]
push esi
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
and dword [ebp - 0x38], 0
lea eax, [ebp - 0x38]
push 0
push eax
lea eax, [ebp - 0x504]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea eax, [ebp - 0x504]
push 0x4280e0
push eax
call esi
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
jne 0x40654c
lea ebx, [ebp - 0x504]
push 0x4280dc
push ebx
call esi
pop ecx
test eax, eax
pop ecx
je 0x40655d
and byte [eax], 0
push ebx
lea ecx, [ebp - 0x14]
call fcn.0041b4e4
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::TrimRight
lea eax, [ebp - 0x104]
push eax
call fcn.004184ee
movzx eax, byte [ebp - 0x93]
pop ecx
lea esi, [edi + 0x154]
push eax
push dword [0x42bd24]
call fcn.004033b9
pop ecx
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x64]
push dword [ebp - 0x60]
push dword [ebp - 0x58]
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
push dword [edi + 0x120]
push dword [edi + 0x148]
push dword [edi + 0x14c]
push str._d__d__d_e_dr_d___de_d__di_d_l2f_d_nfi__d_
push esi
call sub.MFC42.DLL_CString::Format
add esp, 0x34
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::operator
mov edi, 0x4280ac
mov ecx, esi
push edi
call sub.MFC42.DLL_CString::operator_1
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::operator
push edi
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 0x6c], 0
je 0x406659
push dword [ebp - 0x6c]
call sub.MFC42.DLL_operatordelete
pop ecx
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 0x80], 0
je 0x406680
push dword [ebp - 0x80]
call sub.MFC42.DLL_operatordelete
pop ecx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret