Function at 0x401a50
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40276c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [ebx + 0x60]
mov dword [ebp - 0x10], esp
push str.http:__www.esocom.com_download_ipix5_2000_list
mov ecx, esi
mov dword [ebp - 0x2c], ebx
call fcn.004022e4
push 0x404288
lea ecx, [ebx + 0x6c]
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x13c]
xor edi, edi
push eax
push 0xff
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x13c]
push ecx
lea ecx, [ebp - 0x20]
call fcn.004022e4
push 0x404284
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::Find
lea edx, [ebp - 0x18]
push eax
push edx
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.004020f8
push 0x14
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x38], eax
cmp eax, edi
mov byte [ebp - 4], 2
je 0x401b1e
push edi
push edi
push edi
push edi
push 1
push edi
mov ecx, eax
call sub.MFC42.DLL_CInternetSession::CInternetSession
mov dword [ebp - 0x18], eax
jmp 0x401b21
mov dword [ebp - 0x18], edi
mov esi, dword [esi]
mov ecx, dword [ebp - 0x18]
push edi
push edi
push 1
push 1
push esi
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CInternetSession::OpenURL
mov esi, eax
mov dword [ebp - 0x24], esi
jmp 0x401bbf
push 0x1000
mov ecx, esi
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CInternetFile::SetReadBufferSize
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
mov byte [ebp - 4], 7
call dword [eax + 0x60]
push 0x404268
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Find
lea edx, [ebp - 0x2c]
push eax
push edx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.004020f8
push 0x404268
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Find
inc eax
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
push eax
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 7
call fcn.004020f8
mov eax, dword [ebp - 0x14]
mov esi, 0x4046cc
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401c90
test cl, cl
je 0x401c8c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401c90
add eax, 2
add esi, 2
test cl, cl
jne 0x401c6c
xor eax, eax
jmp 0x401c95
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401d00
lea esi, [ebx + 0x60]
push str.http:__www.esocom.com_download_ipix5_2000_
mov ecx, esi
call fcn.004022e4
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00402350
lea ecx, [ebp - 0x20]
lea edi, [ebx + 0x64]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::operator_1
push str.upgrade_
mov ecx, edi
call sub.MFC42.DLL_CString::operator
lea edx, [ebp - 0x1c]
mov ecx, edi
push edx
call fcn.00402350
push 0
push 0
push 0
push 0
push ebx
push 0x401790
call sub.MFC42.DLL_AfxBeginThread
mov eax, dword [eax + 0x2c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [esi]
push esi
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ecx]
call dword [edx + 0x60]
test eax, eax
jne 0x401bfd
mov esi, dword [ebp - 0x18]
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x14]
test esi, esi
je 0x401d2b
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
push 0x404220
lea ecx, [ebx + 0x6c]
call sub.MFC42.DLL_CWnd::SetWindowTextA
push 0x14
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x38], eax
test eax, eax
mov byte [ebp - 4], 0xa
je 0x401d65
push 0
push 0
push 0
push 0
push 1
push 0
mov ecx, eax
call sub.MFC42.DLL_CInternetSession::CInternetSession
mov dword [ebp - 0x18], eax
jmp 0x401d6c
mov dword [ebp - 0x18], 0
lea esi, [ebx + 0x60]
push str.http:__www.esocom.com_download_ipix5_2000_list
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.004022e4
mov esi, dword [esi]
mov ecx, dword [ebp - 0x18]
push 0
push 0
push 1
push 1
push esi
call sub.MFC42.DLL_CInternetSession::OpenURL
mov esi, eax
push 0x1000
mov ecx, esi
mov dword [ebp - 0x24], esi
call sub.MFC42.DLL_CInternetFile::SetReadBufferSize
mov edx, dword [esi]
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call dword [edx + 0x60]
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0xb
lea esi, [ebx + 0x64]
push 0x404268
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Find
lea ecx, [ebp - 0x34]
push eax
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xb
call fcn.004020f8
push 0x404268
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Find
inc eax
lea edx, [ebp - 0x38]
push eax
push edx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xb
call fcn.004020f8
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x28]
push eax
call sub.MFC42.DLL_CString::operator_1
push str.upgrade_
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00402350
lea edx, [ebp - 0x20]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::operator_1
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.00402350
push 0x40421c
mov ecx, esi
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
call fcn.00402350
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi]
mov edx, dword [ebp - 0x28]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 1
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
mov ecx, str.IpixStart.exe
mov dl, byte [ecx]
mov al, dl
cmp dl, byte [edi]
jne 0x401ecc
test al, al
je 0x401ec8
mov dl, byte [ecx + 1]
mov al, dl
cmp dl, byte [edi + 1]
jne 0x401ecc
add ecx, 2
add edi, 2
test al, al
jne 0x401ea8
xor eax, eax
jmp 0x401ed1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401ee3
mov eax, dword [esi]
push str.C:ipix5IpixStart.exe
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ecx]
call dword [eax + 0x60]
test eax, eax
jne 0x401dbd
mov esi, dword [ebp - 0x18]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x14]
test esi, esi
je 0x401f0e
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x401f1c
mov eax, dword [ecx]
push 1
call dword [eax + 4]
push str.http:__www.esocom.com_download_ipix5_2000_list
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CString::CString
push str....._systemipix.ini
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xe
call fcn.004022e4
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebx + 0x68]
push ecx
push eax
push str.v2000
push str.OPTION
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, ebx
call fcn.00401fc0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xb
call fcn.004020f8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.004020f8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.004020f8
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.004020f8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004020f8
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.004020f8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret