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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480188
mov eax, dword fs:[0]
push eax
mov eax, 0x1194
call fcn.004645f0
mov eax, dword [0x49f56c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1184], 0
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x14], 0xfb
mov byte [ebp - 0x101c], 0
push 0xfff
push 0
lea eax, [ebp - 0x101b]
push eax
call fcn.00464570
add esp, 0xc
mov dword [ebp - 0x1060], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x117c], 0
mov dword [ebp - 0x1180], 0
mov dword [ebp - 0x1068], 0x4875b8
mov dword [ebp - 0x1064], 0
mov dword [ebp - 0x1178], 0x84480000
mov dword [ebp - 0x105c], 0
push 0x38
push 0
lea ecx, [ebp - 0x1058]
push ecx
call fcn.00464570
add esp, 0xc
mov dword [ebp - 0x105c], 0x3c
lea edx, [ebp - 0x116c]
mov dword [ebp - 0x104c], edx
mov dword [ebp - 0x1048], 0xff
mov dword [ebp - 0x102c], 1
lea eax, [ebp - 0x105c]
push eax
push 0
lea ecx, [ebp + 0xc]
call fcn.00409240
push eax
lea ecx, [ebp + 0xc]
call fcn.00406c20
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x41ebe1
mov dword [ebp - 0x1188], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00406bc0
mov eax, dword [ebp - 0x1188]
jmp 0x41ef37
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
mov ecx, dword [ebp + 8]
call fcn.00406c20
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1060], eax
cmp dword [ebp - 0x1060], 0xffffffff
jne 0x41ec3f
mov dword [ebp - 0x1060], 0
mov dword [ebp - 0x118c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00406bc0
mov eax, dword [ebp - 0x118c]
jmp 0x41ef37
push 0
push 0
push 0
push 1
push 0x487573
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x117c], eax
cmp dword [ebp - 0x117c], 0
jne 0x41ec9c
mov ecx, dword [ebp - 0x1060]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1060], 0
mov dword [ebp - 0x1190], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00406bc0
mov eax, dword [ebp - 0x1190]
jmp 0x41ef37
push 1
push 0
push 3
push 0x487595
push 0x487596
movzx edx, word [ebp - 0x1044]
push edx
lea eax, [ebp - 0x116c]
push eax
mov ecx, dword [ebp - 0x117c]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x1180], eax
cmp dword [ebp - 0x1180], 0
jne 0x41ed29
mov edx, dword [ebp - 0x117c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x117c], 0
mov eax, dword [ebp - 0x1060]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1060], 0
mov dword [ebp - 0x1194], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00406bc0
mov eax, dword [ebp - 0x1194]
jmp 0x41ef37
push 1
mov ecx, dword [ebp - 0x1178]
push ecx
lea edx, [ebp - 0x1068]
push edx
push 0
push str.HTTP_1.1
mov eax, dword [ebp - 0x1030]
push eax
push 0x4875c8
mov ecx, dword [ebp - 0x1180]
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41edcb
mov edx, dword [ebp - 0x1180]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x1180], 0
mov eax, dword [ebp - 0x117c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x117c], 0
mov ecx, dword [ebp - 0x1060]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1060], 0
mov dword [ebp - 0x1198], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00406bc0
mov eax, dword [ebp - 0x1198]
jmp 0x41ef37
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov dword [ebp - 0x1174], eax
cmp dword [ebp - 0x1174], 0
jne 0x41ee66
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x1180]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x1180], 0
mov edx, dword [ebp - 0x117c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x117c], 0
mov eax, dword [ebp - 0x1060]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1060], 0
mov dword [ebp - 0x119c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00406bc0
mov eax, dword [ebp - 0x119c]
jmp 0x41ef37
mov dword [ebp - 0x1184], 0x1000
lea ecx, [ebp - 0x1020]
push ecx
mov edx, dword [ebp - 0x1184]
push edx
lea eax, [ebp - 0x101c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41eec2
cmp dword [ebp - 0x1020], 0
je 0x41eec2
push 0
lea edx, [ebp - 0x1170]
push edx
mov eax, dword [ebp - 0x1020]
push eax
lea ecx, [ebp - 0x101c]
push ecx
mov edx, dword [ebp - 0x1060]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x41ee70
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x1180]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x1180], 0
mov edx, dword [ebp - 0x117c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x117c], 0
mov eax, dword [ebp - 0x1060]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1060], 0
mov dword [ebp - 0x11a0], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00406bc0
mov eax, dword [ebp - 0x11a0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00464355
mov esp, ebp
pop ebp
ret