Function at 0x40ba30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c8
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
mov ebx, ecx
push esi
push esi
mov eax, dword [ebx + 8]
push esi
push esi
push 1
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
call fcn.0041f9ac
mov eax, dword [ebx + 0x18]
push esi
lea ecx, [ebp - 0x14]
push 4
lea eax, [eax + eax*4]
push ecx
push 6
lea ecx, [ebp - 0x50]
lea eax, [eax + eax*4]
mov dword [ebp - 4], esi
lea eax, [eax + eax*4]
shl eax, 3
mov dword [ebp - 0x14], eax
call sub.MFC42.DLL_CInternetSession::SetOption
mov eax, dword [ebx + 0x18]
push esi
push 4
lea ecx, [ebp - 0x50]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
lea eax, [ebp - 0x14]
shl edx, 3
push eax
push 5
mov dword [ebp - 0x14], edx
call sub.MFC42.DLL_CInternetSession::SetOption
mov eax, dword [ebx + 0x14]
push esi
lea edx, [ebp - 0x14]
push 4
lea eax, [eax + eax*4]
push edx
push 2
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
shl ecx, 3
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x50]
call sub.MFC42.DLL_CInternetSession::SetOption
mov eax, dword [str.Accept:]
mov ecx, dword [0x43d21c]
mov dl, byte [0x43d220]
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], ecx
mov ecx, 0x1d
xor eax, eax
lea edi, [ebp - 0xcb]
mov byte [ebp - 0xcc], dl
lea edx, [ebp - 0xd4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebx + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0xd4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str._r_nUser_Agent:
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0xd4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0xd4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42b110
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebx]
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x30]
push ecx
push edx
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x38]
push ecx
mov byte [ebp - 4], 2
push edx
push eax
call sub.MFC42.DLL_AfxParseURL
test eax, eax
je 0x40bf5c
cmp dword [ebp - 0x38], 3
jne 0x40bf5c
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x2c]
push 0
push 0
push eax
push ecx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CInternetSession::GetHttpConnection
mov edi, eax
test edi, edi
mov dword [ebp - 0x1c], edi
je 0x40bf64
cmp dword [ebx + 0x1c], 0xffffffff
jne 0x40bc41
mov dword [ebx + 0x1c], 1
mov ecx, dword [ebx + 4]
mov edx, dword [ebp - 0x30]
push 0xa4000000
push 0
mov eax, dword [ecx - 8]
push 0
neg eax
sbb eax, eax
push 1
and eax, ecx
mov ecx, edi
push eax
mov eax, dword [ebx + 0x1c]
push edx
push eax
call sub.MFC42.DLL_CHttpConnection::OpenRequest
mov esi, eax
test esi, esi
mov dword [ebp - 0x24], esi
je 0x40bf67
push 0xffffffffffffffff
push 0x80000000
push str.Accept_Encoding:_identity
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::AddRequestHeaders
test eax, eax
jne 0x40bc92
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xffffffffffffffff
lea ecx, [ebp - 0xd4]
push 0x10000000
push ecx
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::AddRequestHeaders
mov edx, dword [ebx + 0xc]
mov eax, dword [edx - 8]
test eax, eax
je 0x40bd2a
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x40bd2a
push 0xffffffffffffffff
push 0x10000000
push str.Content_Type:_application_x_www_form_urlencoded_r_n
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::AddRequestHeaders
mov ecx, ebx
call fcn.0040b6f0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebx + 0x54]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
mov eax, dword [eax - 8]
push eax
push str.Content_Length:__d_r_n
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [ebp - 0x18]
mov ecx, esi
push 0x10000000
push edx
call sub.MFC42.DLL_CHttpFile::AddRequestHeaders_1
mov eax, dword [ebx + 0x54]
mov ecx, dword [eax - 8]
push ecx
push eax
push 0
push 0
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::SendRequest
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
jmp 0x40bdd3
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40bdc4
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x40bdc4
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebx + 0x58]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x14]
push str.Content_Type:_multipart_form_data__boundary_s_r_n
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x14]
push 0x10000000
push ecx
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::AddRequestHeaders_1
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [ebx + 0x4c]
lea eax, [ebp - 0x18]
push edx
push str.Content_Length:__d_r_n
push eax
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x18]
push 0x10000000
push ecx
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::AddRequestHeaders_1
push esi
mov ecx, ebx
call fcn.0040b960
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
jmp 0x40bdd3
push 0
push 0
push 0
push 0
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::SendRequest
lea eax, [ebx + 0x3c]
mov ecx, esi
push eax
call sub.MFC42.DLL_CHttpFile::QueryInfoStatusCode
lea edi, [ebx + 0x38]
push 0
push edi
push 0x16
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::QueryInfo
mov edi, dword [edi]
lea edx, [ebp - 0x50]
push edi
push edx
mov ecx, ebx
call fcn.0040b5f0
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString_3
lea eax, [ebp - 0x20]
push 0
push eax
push 0x1d
mov ecx, esi
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CHttpFile::QueryInfo
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx - 8]
test eax, eax
je 0x40be5e
push 0xffffffffffffffff
push 0x80000000
push str.Accept_Encoding:_identity
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::AddRequestHeaders
lea edx, [ebp - 0x20]
push 0
push edx
push 0x1d
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::QueryInfo
push 0
push 0
push 0
push 0
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::SendRequest
lea eax, [ebx + 0x3c]
mov ecx, esi
push eax
call sub.MFC42.DLL_CHttpFile::QueryInfoStatusCode
jmp 0x40be16
mov eax, dword [ebx + 0x3c]
cmp eax, 0xc8
je 0x40be70
mov dword [ebp - 0x28], eax
jmp 0x40bf0d
mov eax, dword [ebx + 0x44]
test eax, eax
jne 0x40be86
mov eax, dword [ebx + 0x50]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebx + 0x44], eax
mov eax, dword [ebp + 8]
xor edi, edi
test eax, eax
mov dword [ebp - 0x14], edi
jne 0x40beba
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x44]
mov edx, dword [esi]
sub eax, edi
add ecx, edi
push eax
push ecx
mov ecx, esi
call dword [edx + 0x3c]
test eax, eax
jle 0x40bead
add edi, eax
jmp 0x40be92
mov edx, dword [ebx + 0x44]
mov byte [edx + edi], 0
mov eax, dword [ebx + 0x44]
push eax
jmp 0x40bf05
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x44]
mov edx, dword [esi]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x3c]
mov edi, eax
test edi, edi
jle 0x40bf00
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x44]
push edx
push edi
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ecx, dword [ebp - 0x14]
add esp, 0x10
add ecx, edi
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx + 0x5c]
test ecx, ecx
je 0x40beba
mov eax, dword [ebx + 0x60]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [edx]
jmp 0x40beba
push 0x43ee00
lea ecx, [ebx + 0x34]
call fcn.0041f8a4
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
mov edi, dword [ebp - 0x1c]
jmp 0x40bf67
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x1c]
jmp 0x40bf67
mov esi, dword [ebp - 0x24]
test esi, esi
mov dword [ebp - 4], 2
je 0x40bf82
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x54]
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
test edi, edi
je 0x40bf96
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
lea ecx, [ebp - 0x50]
call sub.MFC42.DLL_CInternetSession::Close
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CInternetSession::CInternetSession
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4