Function at 0x416bd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42398f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x460
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x78]
mov ecx, 0x42ec40
push eax
mov dword [ebp - 4], 2
call fcn.00402260
lea ecx, [ebp + 0x10]
lea edx, [ebp - 0x20]
push ecx
push eax
push edx
mov byte [ebp - 4], 3
call sub.MFC42.DLL_operator
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
push 0xfde9
lea eax, [ebp + 0x10]
push ebx
lea ecx, [ebp - 0x2c]
push eax
push ecx
call fcn.004065f0
add esp, 0xc
lea edx, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x48], esp
push edx
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString_3
lea eax, [ebp - 0x70]
push eax
call fcn.00406480
add esp, 8
mov esi, eax
lea ecx, [ebp + 0xc]
push 0x42c020
lea edx, [ebp - 0x60]
push ecx
push edx
mov byte [ebp - 4], 7
call sub.MFC42.DLL_operator_2
push esi
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
call sub.MFC42.DLL_operator
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString
push ebx
push ebx
push ebx
push ebx
push 1
push ebx
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CInternetSession::CInternetSession
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], ebx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::CString_1
push ebx
lea ecx, [ebp - 0x24]
push 4
push ecx
push 2
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x24], 0x7d0
call sub.MFC42.DLL_CInternetSession::SetOption
push ebx
lea edx, [ebp - 0x24]
push 4
push edx
push 3
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x24], 1
call sub.MFC42.DLL_CInternetSession::SetOption
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x14]
push eax
lea edx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x84]
push edx
push eax
push ecx
mov dword [ebp - 0x34], ebx
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_AfxParseURL
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x18]
push ebx
push ebx
push edx
push eax
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CInternetSession::GetHttpConnection
mov ecx, dword [ebp - 0x14]
push SysReAllocStringLen
push ebx
push ebx
push 1
mov edi, eax
push ebx
push ecx
push 1
mov ecx, edi
mov dword [ebp - 0x30], edi
call sub.MFC42.DLL_CHttpConnection::OpenRequest
push ebx
mov esi, eax
push ebx
push ebx
push ebx
mov ecx, esi
mov dword [ebp - 0x38], esi
call sub.MFC42.DLL_CHttpFile::SendRequest
cmp eax, ebx
jne 0x416d8f
push ebx
push ebx
push 0x42e578
call sub.MFC42.DLL_AfxMessageBox
mov esi, dword [ebp + 8]
push 0x42ec3c
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x1c], 1
jmp 0x416f28
lea edx, [ebp - 0x6c]
mov ecx, esi
push edx
call sub.MFC42.DLL_CHttpFile::QueryInfoStatusCode
mov eax, dword [ebp - 0x6c]
push ebx
cmp eax, 0xc8
jne 0x416f9d
mov eax, dword [ebp - 0x20]
push 0x80
push 2
push ebx
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
jne 0x416e07
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CInternetSession::Close
push ebx
push ebx
push 0x42e578
call sub.MFC42.DLL_AfxMessageBox
mov esi, dword [ebp + 8]
push 0x42ec3c
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x1c], 1
jmp 0x416f28
lea ecx, [ebp - 0x74]
push ebx
lea edx, [ebp - 0x46c]
push ecx
push edx
push 5
mov ecx, esi
mov dword [ebp - 0x74], 0x3e8
call sub.MFC42.DLL_CHttpFile::QueryInfo
lea eax, [ebp - 0x46c]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
push 0x2800
mov dword [ebp - 0x48], eax
call sub.MFC42.DLL_operatornew
mov edx, dword [esi]
add esp, 8
mov edi, eax
mov ecx, esi
push 0x2800
push edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x44], 0
call dword [edx + 0x3c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 1
mov eax, dword [ebp - 0x40]
test eax, eax
jbe 0x416ed9
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x64]
fild qword [ebp - 0x80]
sub esp, 8
add ecx, 0x8c
fdivr qword [0x424988]
fimul dword [ebp - 0x3c]
fmul qword [0x424980]
fstp qword [esp]
push str._.2f
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x24]
add esp, 0x10
lea edx, [ebp - 0x44]
push 0
push edx
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x44]
push 0x2800
add ebx, edx
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
jmp 0x416e63
push edi
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp - 0x24]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
mov dword [ebp - 4], 0xe
je 0x416efe
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x416f0a
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CInternetSession::Close
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebp - 0x1c]
or al, 1
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xa
call fcn.0041edd0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
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 0xc
call sub.MFC42.DLL_operatordelete
add esp, 4
cmp esi, ebx
mov dword [ebp - 0x34], ebx
je 0x416fbf
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 - 0x38], ebx
cmp edi, ebx
je 0x416fd6
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 - 0x30], ebx
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CInternetSession::Close
push ebx
push ebx
push 0x42e560
call sub.MFC42.DLL_AfxMessageBox
mov esi, dword [ebp + 8]
push 0x42ec3c
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xa
call fcn.0041edd0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
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 0xc