Function at 0x4d2880
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b555
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x5058
call fcn.004f9330
push esi
push edi
lea edi, [ebp - 0x5064]
mov ecx, 0x1416
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x55370c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], 0
push 0x5000
push 0
lea eax, [ebp - 0x5020]
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
mov esi, esp
push 0
push 0
push 0
push 0
push str.Download
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 0x5028], eax
cmp dword [ebp - 0x5028], 0
jne 0x4d2951
mov dword [ebp - 0x5054], 0
mov byte [ebp - 4], 0
mov esi, esp
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 4], 0xffffffff
mov esi, esp
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
mov eax, dword [ebp - 0x5054]
jmp 0x4d2c58
mov esi, esp
push 0
push connect
push 0
push 0
mov edi, esp
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
cmp edi, esp
call fcn.004f90e1
push eax
mov ecx, dword [ebp - 0x5028]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 0x502c], eax
cmp dword [ebp - 0x502c], 0
jne 0x4d29ee
mov esi, esp
mov edx, dword [ebp - 0x5028]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 0x5058], 0
mov byte [ebp - 4], 0
mov esi, esp
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 4], 0xffffffff
mov esi, esp
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
mov eax, dword [ebp - 0x5058]
jmp 0x4d2c58
mov esi, esp
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov edi, esp
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
cmp edi, esp
call fcn.004f90e1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 0x5040], eax
cmp dword [ebp - 0x5040], 0xffffffff
jne 0x4d2a8b
mov esi, esp
mov eax, dword [ebp - 0x502c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 0x505c], 0
mov byte [ebp - 4], 0
mov esi, esp
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 4], 0xffffffff
mov esi, esp
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
mov eax, dword [ebp - 0x505c]
jmp 0x4d2c58
mov esi, esp
lea ecx, [ebp - 0x504c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_5]
cmp esi, esp
call fcn.004f90e1
mov byte [ebp - 4], 2
mov ecx, 1
test ecx, ecx
je 0x4d2bea
mov esi, esp
lea edx, [ebp - 0x18]
push edx
push 0x5000
lea eax, [ebp - 0x5020]
push eax
mov ecx, dword [ebp - 0x502c]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 0x5044], eax
cmp dword [ebp - 0x18], 0
jne 0x4d2ae8
jmp 0x4d2bea
mov esi, esp
lea edx, [ebp - 0x5020]
push edx
lea ecx, [ebp - 0x504c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
cmp esi, esp
call fcn.004f90e1
mov esi, esp
lea ecx, [ebp - 0x504c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Trim]
cmp esi, esp
call fcn.004f90e1
mov esi, esp
push 0
lea eax, [ebp - 0x5038]
push eax
mov edi, esp
lea ecx, [ebp - 0x504c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
cmp edi, esp
call fcn.004f90e1
push eax
mov edi, esp
push 0
lea ecx, [ebp - 0x504c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer_1]
cmp edi, esp
call fcn.004f90e1
push eax
mov ecx, dword [ebp - 0x5040]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 0x5030], eax
cmp dword [ebp - 0x5030], 0
jne 0x4d2be5
mov esi, esp
mov edx, dword [ebp - 0x5040]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 0x5060], 0
mov byte [ebp - 4], 1
mov esi, esp
lea ecx, [ebp - 0x504c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
mov byte [ebp - 4], 0
mov esi, esp
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 4], 0xffffffff
mov esi, esp
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
mov eax, dword [ebp - 0x5060]
jmp 0x4d2c58
jmp 0x4d2aa4
mov esi, esp
mov eax, dword [ebp - 0x5040]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 0x5064], 1
mov byte [ebp - 4], 1
mov esi, esp
lea ecx, [ebp - 0x504c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
mov byte [ebp - 4], 0
mov esi, esp
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 4], 0xffffffff
mov esi, esp
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
mov eax, dword [ebp - 0x5064]
push edx
mov ecx, ebp
push eax
lea edx, [0x4d2c8e]
call fcn.004f9104
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004f90d3
pop edi
pop esi
add esp, 0x5064
cmp ebp, esp
call fcn.004f90e1
mov esp, ebp
pop ebp
ret