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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4a89a3
push eax
mov eax, 0x186e0
mov dword fs:[0], esp
call fcn.00488a40
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x186f8], 2
call fcn.00457cf0
test eax, eax
jne 0x45c064
push eax
push eax
push eax
push 1
push str.HTTP
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
je 0x45c064
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
push 0x4c9c48
push 2
push esi
call edi
push 4
push 0x4c9c48
push 5
push esi
call edi
push 4
push 0x4c9c48
push 6
push esi
call edi
push 4
push 0x4c9c48
push 7
push esi
call edi
push 4
push 0x4c9c48
push 8
push esi
call edi
mov eax, dword [esp + 0x18700]
mov edi, dword [sym.imp.WININET.dll_InternetOpenUrlA]
push 0
push 0x84000000
push 0
push 0
push eax
push esi
call edi
mov ebp, eax
test ebp, ebp
jne 0x45bed9
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.00457cf0
test eax, eax
je 0x45beb1
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x45c064
mov ecx, dword [esp + 0x18700]
push 0
push 0x84000000
push 0
push 0
push ecx
push esi
call edi
mov ebp, eax
test ebp, ebp
jne 0x45bed9
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x45c064
mov ecx, ebx
call fcn.00457cf0
test eax, eax
je 0x45bef5
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call edi
push esi
call edi
jmp 0x45c064
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0x24]
push 0
lea eax, [esp + 0x34]
push edx
push eax
push 5
push ebp
mov dword [esp + 0x38], 0x20
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x45bf3e
lea ecx, [esp + 0x30]
push ecx
call fcn.00488a6f
add esp, 4
mov dword [esp + 0x18], eax
jmp 0x45bf46
mov dword [esp + 0x18], 0x3e8
mov edx, dword [esp + 0x18704]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45c064
xor eax, eax
mov ecx, 0x61a7
lea edi, [esp + 0x51]
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], eax
mov byte [esp + 0x50], al
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00457cf0
test eax, eax
jne 0x45c051
mov edi, dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
push 0
lea eax, [esp + 0x24]
push 0
push eax
push ebp
call edi
test eax, eax
je 0x45c051
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
lea eax, [esp + 0x54]
push edx
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x45c051
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push 0
push ecx
lea eax, [esp + 0x58]
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45c051
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
add eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x18708]
shr eax, 0xa
shr ecx, 0xa
push eax
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.0049d78b
mov byte [esp + 0x18704], 2
call fcn.00439c00
mov ecx, eax
call fcn.0045bd60
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45c0a7
mov ecx, dword [esp + 0x14]
call fcn.00457cf0
test eax, eax
je 0x45bfac
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call edi
push esi
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18700]
mov byte [esp + 0x186f8], 1
call fcn.0049da16
lea ecx, [esp + 0x18704]
mov byte [esp + 0x186f8], 0
call fcn.0049da16
lea ecx, [esp + 0x18708]
mov dword [esp + 0x186f8], 0xffffffff
call fcn.0049da16
xor eax, eax
jmp 0x45c0fe
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call edi
push esi
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18700]
mov byte [esp + 0x186f8], 1
call fcn.0049da16
lea ecx, [esp + 0x18704]
mov byte [esp + 0x186f8], 0
call fcn.0049da16
lea ecx, [esp + 0x18708]
mov dword [esp + 0x186f8], 0xffffffff
call fcn.0049da16
mov eax, 1
mov ecx, dword [esp + 0x186f0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x186ec
ret 0xc