Function at 0x40adb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4193df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1054
call fcn.00404a20
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x28], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp esi, eax
mov dword [ebp - 0x44], eax
je 0x40af96
mov ecx, esi
call fcn.0040a880
test eax, eax
je 0x40af96
push str.User_Agent
mov ecx, esi
call fcn.0040a620
test eax, eax
jge 0x40ae3a
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.0040b270
mov eax, dword [eax]
mov ecx, esi
push eax
push str.User_Agent
mov byte [ebp - 4], 1
call fcn.0040a550
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
push str.If_Modified_Since
mov ecx, esi
call fcn.0040a620
test eax, eax
jge 0x40ae5d
mov ecx, dword [0x4246f0]
push ecx
push str.If_Modified_Since
mov ecx, esi
call fcn.0040a550
push str.Content_Type
mov ecx, esi
call fcn.0040a620
test eax, eax
jge 0x40ae80
mov edx, dword [str.application_x_www_form_urlencoded]
mov ecx, esi
push edx
push str.Content_Type
call fcn.0040a550
mov edi, dword [esi + 4]
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.00403370
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
push ecx
mov ecx, esi
call fcn.00403390
lea edx, [ebp - 0x14]
mov ecx, esi
push edx
mov byte [ebp - 4], 3
call fcn.0040a6d0
cmp edi, 2
mov byte [ebp - 4], 4
jae 0x40af72
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040bbc0
add esp, 4
test eax, eax
je 0x40af72
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString_1
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x40]
lea edx, [ebp + 8]
push ecx
lea eax, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x3c]
push eax
xor ebx, ebx
push ecx
push esi
mov byte [ebp - 4], 6
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
call sub.MFC42.DLL_AfxParseURL
test eax, eax
jne 0x40af54
mov edx, str.http:__
test edx, edx
je 0x40af5a
push esi
push edx
lea eax, [ebp - 0x24]
push 0x4222c0
push eax
call fcn.00402d40
add esp, 0x10
mov eax, dword [eax]
lea ecx, [ebp - 0x40]
lea edx, [ebp + 8]
push ecx
push edx
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x3c]
push ecx
push edx
push eax
mov byte [ebp - 4], 7
call sub.MFC42.DLL_AfxParseURL
lea ecx, [ebp - 0x24]
mov esi, eax
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
je 0x40af5a
cmp dword [ebp - 0x3c], 3
je 0x40afba
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push ebx
push ebx
push ebx
push ebx
push 1
push ebx
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CInternetSession::CInternetSession
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x20]
push 0
push 0
push eax
push ecx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CInternetSession::GetHttpConnection
mov esi, eax
test esi, esi
mov dword [ebp - 0x2c], esi
je 0x40b1bf
cmp edi, 1
jne 0x40b07e
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x40b026
mov edx, dword [ebp + 8]
push eax
push edx
lea eax, [ebp - 0x48]
push str._s__s
push eax
call fcn.00402d40
add esp, 0x10
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 0xa
jmp 0x40b029
lea eax, [ebp + 8]
mov eax, dword [eax]
push 0x20000000
push 0
push 0
push 1
push 0
push eax
push 1
mov ecx, esi
call sub.MFC42.DLL_CHttpConnection::OpenRequest
mov ebx, eax
mov al, byte [ebp - 0x28]
test al, 1
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 9
je 0x40b05d
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CString::CString
test ebx, ebx
je 0x40b1bf
push 0
lea ecx, [ebp - 0x14]
push 0
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CHttpFile::SendRequest
test eax, eax
je 0x40b1bf
jmp 0x40b0c4
test edi, edi
jne 0x40b1bf
mov edx, dword [ebp + 8]
push 0x20000000
push edi
push edi
push 1
push edi
push edx
push edi
mov ecx, esi
call sub.MFC42.DLL_CHttpConnection::OpenRequest
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x38], ebx
je 0x40b1bf
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax - 8]
push ecx
push eax
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call sub.MFC42.DLL_CHttpFile::SendRequest
test eax, eax
je 0x40b1bf
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CHttpFile::QueryInfoStatusCode
cmp dword [ebp - 0x24], 0xc8
jne 0x40b1bf
mov edx, dword [ebp + 0xc]
push 0x4229c4
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x28], eax
test eax, eax
je 0x40b1bf
push 0x1000
mov ecx, ebx
call sub.MFC42.DLL_CInternetFile::SetReadBufferSize
mov ecx, 0x400
xor eax, eax
lea edi, [ebp - 0x1064]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
xor eax, eax
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x1064]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx]
push 0x1000
push ecx
mov ecx, ebx
call dword [eax + 0x3c]
mov esi, eax
test esi, esi
jle 0x40b176
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x1064]
push edx
push 1
push esi
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ecx, 0x400
xor eax, eax
lea edi, [ebp - 0x1064]
add esp, 0x10
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x34]
stosb byte es:[edi], al
mov eax, esi
cdq
add ecx, eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], ecx
adc eax, edx
jmp 0x40b121
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [ebp - 0x30]
add esp, 4
test ecx, ecx
jl 0x40b1bc
jg 0x40b193
mov eax, dword [ebp - 0x34]
test eax, eax
jbe 0x40b1bc
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], 1
test eax, eax
je 0x40b1bc
mov edx, dword [ebp - 0x34]
mov dword [eax], edx
mov dword [eax + 4], ecx
jmp 0x40b1bc
mov esi, dword [ebp - 0x2c]
test ebx, ebx
mov dword [ebp - 4], 8
je 0x40b1da
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x54]
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx + 4]
test esi, esi
je 0x40b1ee
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CInternetSession::Close
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 6
call fcn.00417ef0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x44]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10