Function at 0x54296c
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x542ba4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], 4
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x20000013
mov edi, ebx
push edi
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
je 0x542a57
cmp dword [ebp - 0x10], 0x12c
jb 0x542a57
cmp dword [ebp - 0x10], 0x1f4
je 0x542a57
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0x1000
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.0040521c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
call fcn.004050e8
push eax
push 0x14
push edi
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
je 0x542a57
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.0040521c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0xb
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea eax, [ebp - 0x38]
push eax
push 2
mov ecx, 0x542bbc
mov dl, 1
mov eax, dword [0x4088b4]
call fcn.0040e0e4
call fcn.00404530
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 0x20]
mov edx, pe_nt_image_headers32
call fcn.0040521c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
call fcn.004050e8
push eax
push 1
push edi
call sub.wininet.dll_HttpQueryInfoA
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 8]
call fcn.0040521c
xor eax, eax
mov dword [ebp - 0x14], eax
push 0
push 0
lea eax, [ebp - 8]
push eax
mov edi, ebx
push edi
call sub.wininet.dll_InternetQueryDataAvailable
mov edx, eax
cmp edx, 1
sbb edx, edx
neg edx
xor ecx, ecx
mov eax, esi
call fcn.00541f68
cmp dword [ebp - 8], 0
jbe 0x542b05
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.0040521c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
call fcn.004050e8
push eax
push edi
call sub.wininet.dll_InternetReadFile
mov edx, eax
cmp edx, 1
sbb edx, edx
neg edx
xor ecx, ecx
mov eax, esi
call fcn.00541f68
lea eax, [ebp - 0x1c]
call fcn.004050e8
mov edx, eax
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0x10]
cmp dword [ebp - 8], 0
jne 0x542a94
lea edx, [ebp - 0x3c]
mov eax, 0x541ac4
call fcn.00407080
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x20]
call fcn.004096c0
test al, al
jne 0x542b43
lea edx, [ebp - 0x40]
mov eax, 0x541acc
call fcn.00407080
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x20]
call fcn.004096c0
test al, al
je 0x542b74
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0xb
lea eax, [ebp - 0x48]
push eax
push 0
lea edx, [ebp - 0x4c]
mov eax, 0x541ad4
call fcn.00407080
mov ecx, dword [ebp - 0x4c]
mov dl, 1
mov eax, dword [0x4088b4]
call fcn.0040e0e4
call fcn.00404530
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x542bab
lea eax, [ebp - 0x4c]
call fcn.00404bb4
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.00404bd8
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404bd8
ret