Function at 0x402ca0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x429c47
push eax
mov eax, 0x19038
mov dword fs:[0], esp
call fcn.004293a0
push esi
push edi
lea eax, [esp + 0x19050]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x1904c], 1
call fcn.00428f24
lea ecx, [esp + 8]
mov byte [esp + 0x19048], 2
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0xc]
mov byte [esp + 0x19048], 3
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x14]
mov byte [esp + 0x19048], 4
call sub.MFC42.DLL_CString::CString_4
push 0
push 0
push 0
push 0
push 1
push str.My_Sesssion
lea ecx, [esp + 0x40]
mov byte [esp + 0x19060], 5
call sub.MFC42.DLL_CInternetSession::CInternetSession
lea ecx, [esp + 0x20]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x44]
push eax
push ecx
push edx
mov byte [esp + 0x1905c], 6
call sub.MFC42.DLL_AfxParseURL
cmp eax, 1
jne 0x402de3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 8]
push 0
push 0
push eax
push ecx
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CInternetSession::GetHttpConnection
mov edx, dword [esp + 0xc]
push 0x20000000
push 0
push 0
push 1
mov edi, eax
push 0
push edx
push 1
mov ecx, edi
mov dword [esp + 0x38], edi
call sub.MFC42.DLL_CHttpConnection::OpenRequest
push 0
mov esi, eax
push 0
push 0
push 0
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::SendRequest
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call sub.MFC42.DLL_CHttpFile::QueryInfoStatusCode
cmp dword [esp + 0x18], 0xc8
jne 0x402ed0
mov ecx, 0x6400
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x38]
cmp dword [esp + 0x19058], eax
jne 0x402e6a
lea ecx, [esp + 0x28]
mov byte [esp + 0x19048], 5
call fcn.00428f60
lea ecx, [esp + 0x14]
mov byte [esp + 0x19048], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x19048], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x19048], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x19048], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x19050]
mov byte [esp + 0x19048], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x19054]
mov dword [esp + 0x19048], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x402f78
mov eax, dword [esp + 0x19054]
push ebx
push ebp
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
mov dword [esp + 0x48], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, eax
mov edx, dword [esi]
lea eax, [esp + 0x48]
push 0x18fff
push eax
mov ecx, esi
call dword [edx + 0x3c]
lea ecx, [esp + 0x2c]
mov edi, eax
push 0
push ecx
lea edx, [esp + 0x50]
push edi
push edx
push ebp
call ebx
test edi, edi
ja 0x402e9c
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x24]
pop ebp
pop ebx
test esi, esi
je 0x402edd
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
test edi, edi
je 0x402eea
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CInternetSession::Close
lea ecx, [esp + 0x28]
mov byte [esp + 0x19048], 5
call fcn.00428f60
lea ecx, [esp + 0x14]
mov byte [esp + 0x19048], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x19048], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x19048], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x19048], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x19050]
mov byte [esp + 0x19048], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x19054]
mov dword [esp + 0x19048], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x19040]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x19044
ret 0xc