Function at 0x401fd0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d01f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x848
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], 0
mov eax, dword [edi + 0x114]
mov ecx, dword [ebp + 0xc]
push eax
mov ebx, 1
push 0
push 0
push ebx
push 0
push ecx
mov ecx, dword [edi + 0x110]
push ebx
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CHttpConnection::OpenRequest
mov esi, eax
test esi, esi
mov dword [ebp - 0x24], esi
jne 0x40205f
mov esi, dword [ebp + 8]
push 0x41284c
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x18], ebx
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0
call fcn.0040c754
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push 0
push 0
mov ecx, esi
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CHttpFile::SendRequest
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString
lea edx, [ebp - 0x14]
push 0
push edx
push 0x13
mov ecx, esi
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CHttpFile::QueryInfo
mov eax, dword [ebp - 0x14]
push 0x4111dc
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
mov ecx, esi
test eax, eax
jne 0x402111
mov edx, dword [esi]
call dword [edx + 0x54]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 4]
push 0x4111c4
push 0x3f5
mov ecx, edi
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
lea ecx, [edi + 0x11c]
lea edx, [ebp - 0x1c]
push ecx
push str.http:__
push edx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
mov ecx, edi
push eax
push 0x3f9
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0040c754
mov esi, dword [ebp + 8]
push 0x41113c
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x18], ebx
jmp 0x402312
lea eax, [ebp - 0x14]
push 0
push eax
push 5
call sub.MFC42.DLL_CHttpFile::QueryInfo
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
mov ecx, edi
mov dword [ebp - 0x1c], eax
push eax
call fcn.004023c0
lea edx, [edi + 0x60]
lea eax, [edi + 0x74]
push edx
lea ecx, [ebp - 0x20]
push eax
push ecx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.0040c86e
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.0040c754
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CStdioFile::CStdioFile
mov edx, dword [ebp - 0x14]
push 0
push 0x9021
push edx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
jne 0x4021ba
push 0x4111b4
push 0x3f5
mov ecx, edi
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x54]
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 4]
mov esi, dword [ebp + 8]
push str.Open
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x18], ebx
jmp 0x402306
mov eax, dword [edi + 0x20]
xor ebx, ebx
test eax, eax
je 0x402270
mov eax, dword [edi + 0x70]
test eax, eax
jne 0x402270
mov eax, dword [esi]
lea ecx, [ebp - 0x854]
push 0x800
push ecx
mov ecx, esi
call dword [eax + 0x3c]
test eax, eax
mov dword [ebp - 0x24], eax
jle 0x402270
add ebx, eax
xor edx, edx
push 0
lea eax, [ebx + ebx*4]
lea eax, [eax + eax*4]
shl eax, 2
div dword [ebp - 0x1c]
mov edx, dword [edi + 0xd8]
push eax
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x20], 0
push 1
push 0
push 0
lea eax, [ebp - 0x54]
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x402246
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x54]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [ebp - 0x20]
inc eax
cmp eax, 0xa
mov dword [ebp - 0x20], eax
jl 0x40221c
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x854]
push eax
push ecx
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CStdioFile::Write
mov eax, dword [edi + 0x20]
test eax, eax
jne 0x4021c7
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
cmp ebx, dword [ebp - 0x1c]
je 0x4022f0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x41119c
push 0x3f5
mov ecx, edi
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
mov esi, dword [ebp + 8]
push 0x41113c
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x38]
or al, 1
mov byte [ebp - 4], 4
mov dword [ebp - 0x18], eax
call fcn.0040c922
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040c754
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0
call fcn.0040c754
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x14]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [ebp - 0x18]
or al, 1
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.0040c922
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040c754
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0
call fcn.0040c754
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8