Function at 0x401d40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404b9a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x540
push ebx
push esi
push edi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x14]
push 0x407268
push eax
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp - 0x14]
add esp, 8
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x14
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
mov byte [ebp - 4], 4
je 0x401dc9
mov edx, dword [ebp + 8]
push 0x80000002
push edx
push 0
push 3
push 1
push 0
mov ecx, eax
call sub.MFC42.DLL_CInternetSession::CInternetSession
mov ebx, eax
mov dword [ebp - 0x20], ebx
jmp 0x401dd3
mov dword [ebp - 0x20], 0
mov ebx, dword [ebp - 0x20]
push 1
lea eax, [ebp - 0x18]
push 4
mov esi, 0x3e8
push eax
push 2
mov ecx, ebx
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], esi
call sub.MFC42.DLL_CInternetSession::SetOption
push 0
lea ecx, [ebp - 0x18]
push 4
push ecx
push 4
mov ecx, ebx
mov dword [ebp - 0x18], esi
call sub.MFC42.DLL_CInternetSession::SetOption
push 0
lea edx, [ebp - 0x18]
push 4
push edx
push 3
mov ecx, ebx
mov dword [ebp - 0x18], 1
call sub.MFC42.DLL_CInternetSession::SetOption
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x148]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x44]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0xc
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x148]
push 0x26
mov dword [ebp - 0x40], ecx
mov ecx, ebx
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x3c], 0
call sub.MFC42.DLL_CInternetSession::SetOption
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push eax
push str.UpdateMyProgram:szUrl_s
push ecx
mov dword [ebp - 0x24], 0x1f95f0
call sub.MFC42.DLL_CString::Format
mov edx, dword [ebp - 0x14]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 0xc]
push 0
push 0
push 1
push 1
push eax
mov ecx, ebx
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CInternetSession::OpenURL
mov ebx, eax
lea ecx, [ebp - 0x14]
push ebx
push str.UpdateMyProgram:pSFile_d
push ecx
mov dword [ebp - 4], 3
call sub.MFC42.DLL_CString::Format
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edx
call esi
test ebx, ebx
jne 0x401f32
lea eax, [ebp - 0x14]
push 0x407228
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp - 0x14]
add esp, 8
push ecx
call esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00404476
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00404476
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0
call fcn.00404476
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.00404476
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
lea edx, [ebp - 0x1c]
push 0
push edx
push 0x13
mov ecx, ebx
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CHttpFile::QueryInfo
mov eax, dword [ebp - 0x1c]
push 0x407184
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x401f99
lea ecx, [ebp - 0x1c]
push eax
push ecx
push 5
mov ecx, ebx
call sub.MFC42.DLL_CHttpFile::QueryInfo
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0x14]
push str.UpdateMyProgram:lFileSize_d
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push ecx
call esi
mov edi, dword [ebp - 0x28]
push 0x3e8
mov ecx, dword [edi + 0x20]
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [ebp - 0x24]
mov dword [edi + 0xc4], eax
mov eax, dword [eax + 0x20]
push edx
push 0
push 0x406
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, dword [edi + 0xc4]
push 0
push 1
push 0x402
mov ecx, dword [edi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x547]
mov byte [ebp - 0x548], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], 0
stosb byte es:[edi], al
call sub.MFC42.DLL_CFile::CFile_1
mov edx, dword [ebp + 0x10]
push 0
push 0x9001
push edx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CFile::Open
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
push eax
push 0x4071e0
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [ebp - 0x14]
add esp, 0xc
push edx
call esi
lea eax, [ebp - 0x14]
push 0x407268
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp - 0x14]
add esp, 8
push ecx
call esi
mov edx, dword [ebx]
lea eax, [ebp - 0x548]
push 0x400
push eax
mov ecx, ebx
call dword [edx + 0x3c]
mov esi, eax
test esi, esi
je 0x4020de
push esi
lea ecx, [ebp - 0x14]
push str.UpdateMyProgram:bytesread_d
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [ebp - 0x14]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x38]
push 2
push 0
lea ecx, [ebp - 0x38]
call dword [eax + 0x30]
lea ecx, [ebp - 0x548]
push esi
push ecx
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CFile::Write
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
add eax, esi
push 0
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0xc4]
push esi
push 0x403
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebx]
lea eax, [ebp - 0x548]
push 0x400
push eax
mov ecx, ebx
call dword [edx + 0x3c]
mov esi, eax
test esi, esi
jne 0x402069
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CFile::Close
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x54]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
push 0
push ecx
mov eax, dword [eax + 0xc4]
push 0x402
mov edx, dword [eax + 0x20]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x402119
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
cmp eax, 0x401
jge 0x402140
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 7
call fcn.00404638
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00404476
jmp 0x401ee9
push eax
lea ecx, [ebp - 0x14]
push str.UpdateMyProgram:iCount_d
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [ebp - 0x14]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 7
call fcn.00404638
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00404476
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00404476
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00404476
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0
call fcn.00404476
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.00404476
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc