Function at 0x4023e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fbe7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x458
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ebx
mov esi, 1
lea eax, [ebp - 0x60]
mov dword [ebp - 4], esi
push eax
mov ecx, 0x42ec40
mov byte [ebp - 4], 2
call fcn.00402260
push str.temp.txt
lea ecx, [ebp - 0x18]
push eax
push ecx
mov byte [ebp - 4], 3
call sub.MFC42.DLL_operator_2
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CInternetSession::CInternetSession
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], ebx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString_1
push ebx
lea edx, [ebp - 0x24]
push 4
push edx
push 2
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 8
mov dword [ebp - 0x24], 0x7d0
call sub.MFC42.DLL_CInternetSession::SetOption
push ebx
lea eax, [ebp - 0x24]
push 4
push eax
push 3
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x24], esi
call sub.MFC42.DLL_CInternetSession::SetOption
lea ecx, [ebp - 0x64]
lea edx, [ebp - 0x1c]
push ecx
lea eax, [ebp - 0x20]
push edx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x68]
push eax
push ecx
push edx
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 9
call sub.MFC42.DLL_AfxParseURL
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x20]
push ebx
push ebx
push eax
push ecx
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CInternetSession::GetHttpConnection
mov edx, dword [ebp - 0x1c]
push SysReAllocStringLen
push ebx
push ebx
push esi
mov edi, eax
push ebx
push edx
push esi
mov ecx, edi
mov dword [ebp - 0x28], edi
call sub.MFC42.DLL_CHttpConnection::OpenRequest
push ebx
mov esi, eax
push ebx
push ebx
push ebx
mov ecx, esi
mov dword [ebp - 0x30], esi
call sub.MFC42.DLL_CHttpFile::SendRequest
cmp eax, ebx
jne 0x402519
mov esi, dword [ebp + 8]
push 0x42ec3c
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x14], 1
jmp 0x40276a
lea eax, [ebp - 0x5c]
mov ecx, esi
push eax
call sub.MFC42.DLL_CHttpFile::QueryInfoStatusCode
mov eax, dword [ebp - 0x5c]
push ebx
cmp eax, 0xc8
jne 0x402713
mov ecx, dword [ebp - 0x18]
push 0x80
push 2
push ebx
push 2
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
jne 0x402567
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
jmp 0x40274c
lea ecx, [ebp - 0x34]
push ebx
lea edx, [ebp - 0x464]
push ecx
push edx
push 5
mov ecx, esi
mov dword [ebp - 0x34], 0x3e8
call sub.MFC42.DLL_CHttpFile::QueryInfo
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
push 0x2800
call sub.MFC42.DLL_operatornew
mov edx, dword [esi]
add esp, 8
mov edi, eax
xor ebx, ebx
push 0x2800
push edi
mov ecx, esi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x40], ebx
call dword [edx + 0x3c]
mov dword [ebp - 0x44], 1
test eax, eax
jbe 0x4025e8
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x40]
push 0
push ecx
push eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x40]
push 0x2800
add ebx, eax
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x3c]
inc dword [ebp - 0x44]
jmp 0x4025bb
push edi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [ebp - 0x24]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
mov dword [ebp - 4], 8
je 0x40260d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x402619
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CInternetSession::Close
lea ecx, [ebp - 0x7c]
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [ebp - 0x18]
push 0
push 0
push ecx
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CStdioFile::Open
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 0xd
mov bl, 0xe
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x7c]
push edx
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x402693
lea eax, [ebp - 0x2c]
push 0x42c278
lea ecx, [ebp - 0x34]
push eax
push ecx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::CString
jmp 0x402657
lea ecx, [ebp - 0x7c]
call sub.MFC42.DLL_CStdioFile::Close
mov edx, dword [ebp - 0x18]
push edx
call sub.MFC42.DLL_CFile::Remove
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
or al, 1
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x14], eax
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 8
call fcn.0041edd6
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.0041edd0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
jmp 0x40286e
call sub.MFC42.DLL_operatordelete
add esp, 4
cmp esi, ebx
mov dword [ebp - 0x38], ebx
je 0x402735
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 0x30], ebx
cmp edi, ebx
je 0x40274c
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x14]
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 4]
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CInternetSession::Close
mov esi, dword [ebp + 8]
push 0x42ec3c
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.0041edd0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
jmp 0x40286e
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8