Function at 0x47eb5c
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 ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404980
mov eax, dword [ebp - 0xc]
call fcn.00404980
xor eax, eax
push ebp
push 0x47ef68
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor ecx, ecx
push ebp
push 0x47ef2f
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp dword [ebp - 8], 0
je 0x47ebb5
cmp dword [ebp - 0xc], 0
jne 0x47ebda
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x47ebcd
mov ebx, dword [ebp - 4]
mov cl, 4
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x3c]
call dword [ebx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47ef40
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0xc]
call fcn.00409008
cmp dword [ebp - 0x30], 0
jne 0x47ec59
mov edx, dword [ebp - 8]
mov eax, 0x47ef84
call fcn.00408f4c
mov ebx, eax
test ebx, ebx
jle 0x47ec34
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 8]
call fcn.00404798
mov ecx, eax
sub ecx, ebx
lea edx, [ebx + 1]
mov eax, dword [ebp - 8]
call fcn.004049f0
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0xc]
call fcn.0040c3e4
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0x2c]
call fcn.004047e4
jmp 0x47ec59
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x47ec4c
mov ebx, dword [ebp - 4]
mov cl, 4
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x3c]
call dword [ebx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47ef40
mov eax, dword [ebp - 4]
mov word [eax + 0x32], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x31], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x30], 0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x34], edx
xor eax, eax
mov dword [ebp - 0x28], eax
push 0
push 0
push 0
push 0
push 0
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x47ecc1
mov eax, dword [ebp - 4]
mov byte [eax + 0x31], 0
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x47ecb4
mov ebx, dword [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x3c]
call dword [ebx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47ef40
push 0
push 0x84000000
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00404990
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov esi, eax
test esi, esi
jne 0x47ed19
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 4]
mov byte [eax + 0x31], 0
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x47ed0c
mov ebx, dword [ebp - 4]
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x3c]
call dword [ebx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47ef40
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0047ea4c
test al, al
jne 0x47ed4d
push esi
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 4]
mov byte [eax + 0x31], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47ef40
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 0xc]
call fcn.00404990
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x47edb1
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x47ed8e
mov ebx, dword [ebp - 4]
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x3c]
call dword [ebx + 0x38]
push esi
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 4]
mov byte [eax + 0x31], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47ef40
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
test eax, eax
jbe 0x47ede9
mov edx, dword [ebp - 4]
cmp word [edx + 0x42], 0
je 0x47ede9
mov edx, dword [ebp - 0x28]
push edx
mov edx, dword [ebp - 4]
mov dx, word [edx + 0x32]
push edx
mov ecx, eax
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x44]
call dword [ebx + 0x40]
mov eax, dword [0x484bfc]
mov eax, dword [eax]
call fcn.00456320
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 0
jne 0x47ef02
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push esi
call sub.wininet.dll_InternetQueryDataAvailable
test eax, eax
je 0x47ef02
cmp dword [ebp - 0x1c], 0
je 0x47ef02
mov eax, dword [ebp - 0x1c]
call fcn.004027b0
mov ebx, eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push ebx
push esi
call sub.wininet.dll_InternetReadFile
cmp dword [ebp - 0x20], 0
jne 0x47ee54
mov eax, ebx
call fcn.004027d0
mov eax, dword [ebp - 4]
mov byte [eax + 0x30], 1
jmp 0x47ef02
push 0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
push ebx
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_WriteFile_1
cmp dword [ebp - 0x24], 0
jne 0x47ee81
mov eax, ebx
call fcn.004027d0
mov eax, dword [ebp - 4]
mov byte [eax + 0x30], 1
jmp 0x47ef02
mov eax, ebx
call fcn.004027d0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
test ebx, ebx
jbe 0x47ede9
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x38], eax
fild qword [ebp - 0x3c]
mov dword [ebp - 0x44], ebx
xor eax, eax
mov dword [ebp - 0x40], eax
fild qword [ebp - 0x44]
fdivp st(1)
fmul dword [0x47ef88]
call fcn.00402b34
mov edx, dword [ebp - 4]
cmp ax, word [edx + 0x32]
je 0x47ede9
mov ecx, dword [ebp - 4]
mov edx, eax
mov word [ecx + 0x32], dx
mov eax, dword [ebp - 4]
cmp word [eax + 0x42], 0
je 0x47ede9
mov eax, dword [ebp - 0x28]
push eax
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x34]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x44]
call dword [ebx + 0x40]
jmp 0x47ede9
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
push esi
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x30]
xor al, 1
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47ef39
mov eax, dword [ebp - 4]
mov byte [eax + 0x31], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ef6f
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404504
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404504
ret