Function at 0x403530
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410948
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x424
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
nop
nop
nop
nop
nop
xor ebx, ebx
lea ecx, [ebp - 0x3c]
push ebx
push ebx
push ebx
push ebx
push 1
push ebx
call fcn.0040fbc2
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], ebx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_1
push ebx
lea eax, [ebp - 0x28]
push 4
push eax
push 2
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], 0x7d0
call sub.MFC42.DLL_CInternetSession::SetOption
push ebx
lea ecx, [ebp - 0x28]
push 4
push ecx
push 3
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], 1
call sub.MFC42.DLL_CInternetSession::SetOption
mov dword [ebp - 0x48], ebx
nop
nop
nop
nop
nop
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x20]
push ecx
push edx
push eax
mov byte [ebp - 4], 3
call sub.MFC42.DLL_AfxParseURL
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
push ebx
push ebx
push eax
push ecx
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CInternetSession::GetHttpConnection
mov edx, dword [ebp - 0x18]
push 0x20000000
push ebx
push ebx
push 1
mov edi, eax
push ebx
push edx
push 1
mov ecx, edi
mov dword [ebp - 0x40], edi
call sub.MFC42.DLL_CHttpConnection::OpenRequest
mov esi, eax
push ebx
mov dword [ebp - 0x44], esi
push ebx
push ebx
push ebx
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::SendRequest
cmp eax, ebx
je 0x40367b
nop
nop
nop
nop
nop
lea eax, [ebp + 8]
mov ecx, esi
push eax
call sub.MFC42.DLL_CHttpFile::QueryInfoStatusCode
cmp dword [ebp + 8], 0xc8
jne 0x4037b0
mov ecx, dword [ebp + 0xc]
push ebx
push 0x80
push 2
mov eax, dword [ecx]
push ebx
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x28], eax
jne 0x4036b5
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 - 0x3c]
call sub.MFC42.DLL_CInternetSession::Close
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CInternetSession::CInternetSession
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
nop
nop
nop
nop
nop
lea ecx, [ebp - 0x24]
push ebx
lea edx, [ebp - 0x430]
push ecx
push edx
push 5
mov ecx, esi
mov dword [ebp - 0x24], 0x3e8
call sub.MFC42.DLL_CHttpFile::QueryInfo
lea eax, [ebp - 0x430]
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
mov ecx, esi
push 0x2800
push edi
mov dword [ebp - 0x48], edi
mov dword [ebp + 0xc], 0
call dword [edx + 0x3c]
nop
nop
nop
nop
nop
test eax, eax
jbe 0x403738
mov edx, dword [ebp - 0x28]
lea ecx, [ebp + 0xc]
push 0
push ecx
push eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0xc]
push 0x2800
add ebx, eax
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x3c]
jmp 0x40370e
nop
nop
nop
nop
nop
push edi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [ebp - 0x28]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
mov dword [ebp - 4], 2
je 0x403762
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x40376e
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CInternetSession::Close
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CInternetSession::CInternetSession
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
nop
nop
nop
nop
nop
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
cmp esi, ebx
mov dword [ebp - 0x48], ebx
je 0x4037d8
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 - 0x44], ebx
cmp edi, ebx
je 0x4037ef
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 - 0x40], ebx
nop
nop
nop
nop
nop
jmp 0x403673