Function at 0x402d53
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408767
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x4cc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x498], ecx
mov dword [ebp - 4], 1
push 0
push 0
push 0
push 0
push 1
push 0
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CInternetSession::CInternetSession
mov byte [ebp - 4], 2
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 4
mov dword [ebp - 0x44], 0x7d0
push 0
push 0x7d0
push 2
lea ecx, [ebp - 0x28]
call fcn.004052d0
push 0
push 1
push 3
lea ecx, [ebp - 0x28]
call fcn.004052d0
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 5
lea ecx, [ebp + 8]
call fcn.00401920
mov dword [ebp - 0x49c], eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x49c]
push ecx
call sub.MFC42.DLL_AfxParseURL
lea ecx, [ebp - 0x38]
call fcn.00401920
mov dword [ebp - 0x4a0], eax
push 0
push 0
mov dx, word [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x4a0]
push eax
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CInternetSession::GetHttpConnection
mov dword [ebp - 0x4a4], eax
mov ecx, dword [ebp - 0x4a4]
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x14]
call fcn.00401920
mov dword [ebp - 0x4a8], eax
push 0x20000000
push 0
push 0
push 1
push 0
mov edx, dword [ebp - 0x4a8]
push edx
push 1
mov ecx, dword [ebp - 0x3c]
call sub.MFC42.DLL_CHttpConnection::OpenRequest
mov dword [ebp - 0x4ac], eax
mov eax, dword [ebp - 0x4ac]
mov dword [ebp - 0x30], eax
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x30]
call sub.MFC42.DLL_CHttpFile::SendRequest
mov dword [ebp - 0x4b0], eax
cmp dword [ebp - 0x4b0], 0
jne 0x402f01
mov dword [ebp - 0x454], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00407f3a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.00407f3a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004080f0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00407f3a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00407f3a
mov eax, dword [ebp - 0x454]
jmp 0x40342a
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x30]
call sub.MFC42.DLL_CHttpFile::QueryInfoStatusCode
cmp dword [ebp - 0x48], 0xc8
jne 0x403125
lea ecx, [ebp + 0xc]
call fcn.00401920
mov dword [ebp - 0x4b4], eax
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov edx, dword [ebp - 0x4b4]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x450], 0xffffffff
jne 0x402fc8
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 0x54]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + 0x14]
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CInternetSession::Close
mov dword [ebp - 0x458], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00407f3a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.00407f3a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004080f0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00407f3a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00407f3a
mov eax, dword [ebp - 0x458]
jmp 0x40342a
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x438], 0x3e8
mov dword [ebp - 0x448], 0
push 0
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x434]
push ecx
push 5
mov ecx, dword [ebp - 0x30]
call sub.MFC42.DLL_CHttpFile::QueryInfo
mov dword [ebp - 0x4b8], eax
mov edx, dword [ebp - 0x4b8]
mov dword [ebp - 0x448], edx
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x44c], 0x2800
push 0x2800
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x4bc], eax
mov ecx, dword [ebp - 0x4bc]
mov dword [ebp - 0x45c], ecx
mov edx, dword [ebp - 0x45c]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x43c], 0
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x440], eax
push 0x2800
mov ecx, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
call dword [eax + 0x3c]
mov dword [ebp - 0x4c0], eax
mov ecx, dword [ebp - 0x4c0]
mov dword [ebp - 0x444], ecx
cmp dword [ebp - 0x444], 0
jbe 0x4030f4
push 0
lea edx, [ebp - 0x440]
push edx
mov eax, dword [ebp - 0x444]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x450]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x43c]
add eax, dword [ebp - 0x440]
mov dword [ebp - 0x43c], eax
push 0x2800
mov ecx, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
call dword [eax + 0x3c]
mov dword [ebp - 0x4c4], eax
mov ecx, dword [ebp - 0x4c4]
mov dword [ebp - 0x444], ecx
jmp 0x403090
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x460], edx
mov eax, dword [ebp - 0x460]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0x450]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40326e
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x464], edx
mov eax, dword [ebp - 0x464]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp - 0x40], 0
cmp dword [ebp - 0x30], 0
je 0x4031ab
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
call dword [eax + 0x54]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x46c], ecx
mov edx, dword [ebp - 0x46c]
mov dword [ebp - 0x468], edx
cmp dword [ebp - 0x468], 0
je 0x40319a
push 1
mov ecx, dword [ebp - 0x468]
mov eax, dword [ebp - 0x468]
mov edx, dword [eax]
call dword [edx + 4]
mov dword [ebp - 0x4c8], eax
mov eax, dword [ebp - 0x4c8]
mov dword [ebp - 0x4cc], eax
jmp 0x4031a4
mov dword [ebp - 0x4cc], 0
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x3c], 0
je 0x403212
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
call dword [eax + 0x14]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x474], ecx
mov edx, dword [ebp - 0x474]
mov dword [ebp - 0x470], edx
cmp dword [ebp - 0x470], 0
je 0x403201
push 1
mov ecx, dword [ebp - 0x470]
mov eax, dword [ebp - 0x470]
mov edx, dword [eax]
call dword [edx + 4]
mov dword [ebp - 0x4d0], eax
mov eax, dword [ebp - 0x4d0]
mov dword [ebp - 0x4d4], eax
jmp 0x40320b
mov dword [ebp - 0x4d4], 0
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CInternetSession::Close
mov dword [ebp - 0x478], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00407f3a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.00407f3a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004080f0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00407f3a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00407f3a
mov eax, dword [ebp - 0x478]
jmp 0x40342a
jmp 0x4033aa
mov dword [ebp - 4], 4
cmp dword [ebp - 0x30], 0
je 0x4033c2
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 0x54]
cmp dword [ebp - 0x3c], 0
je 0x4033d3
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + 0x14]
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CInternetSession::Close
mov dword [ebp - 0x494], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00407f3a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.00407f3a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004080f0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00407f3a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00407f3a
mov eax, dword [ebp - 0x494]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8