Function at 0x10005020
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004cb0b
mov eax, dword fs:[0]
push eax
mov eax, 0x2850
call fcn.1002c7c0
mov eax, dword [0x100662bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x285c], esi
mov dword [ebp - 0x2858], esi
mov dword [ebp - 0x2850], eax
mov dword [ebp - 0x283c], 0
test eax, eax
je 0x100053b2
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005080
sub ecx, edx
je 0x100053b2
xorps xmm0, xmm0
mov dword [ebp - 0x2824], 0
movups xmmword [ebp - 0x2834], xmm0
mov dword [ebp - 0x2820], 0
mov dword [ebp - 0x281c], 0
mov dword [ebp - 0x2818], 1
mov dword [ebp - 0x2814], 3
mov dword [ebp - 0x2824], 0
mov dword [ebp - 0x2820], 0xf
mov byte [ebp - 0x2834], al
mov dword [ebp - 4], 1
mov byte [ebp - 0x2834], al
xor eax, eax
mov dword [ebp - 0x2824], 0
mov dword [ebp - 0x2838], eax
push 0
push 0
push 0
push dword [ebp + eax*4 - 0x281c]
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
mov dword [ebp - 0x2848], edi
test edi, edi
je 0x10005181
push 4
lea eax, [ebp - 0x284c]
mov dword [ebp - 0x284c], 0x2710
push eax
push 2
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 0
push 0x80000000
push 0
push 0
push dword [ebp - 0x2850]
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
inc dword [ebp - 0x2838]
mov dword [ebp - 0x2840], eax
test eax, eax
jne 0x100051d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x2838]
cmp eax, 3
jl 0x10005104
xorps xmm0, xmm0
mov dword [ebp - 0x283c], 1
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov byte [ebp - 4], 0
mov dword [ebp - 0x2824], 0
mov dword [ebp - 0x2820], 0xf
mov byte [ebp - 0x2834], 0
jmp 0x100053e8
push 0
lea ecx, [ebp - 0x2854]
mov dword [ebp - 0x2844], 0
push ecx
lea ecx, [ebp - 0x2844]
mov dword [ebp - 0x2854], 4
push ecx
push 0x13
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov ecx, 0x100512f8
lea eax, [ebp - 0x2844]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10005230
test dl, dl
je 0x1000522c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10005230
add eax, 2
add ecx, 2
test dl, dl
jne 0x10005210
xor eax, eax
jmp 0x10005235
sbb eax, eax
or eax, 1
test eax, eax
je 0x1000529f
push dword [ebp - 0x2840]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xorps xmm0, xmm0
mov dword [ebp - 0x283c], 1
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov byte [ebp - 4], 0
mov dword [ebp - 0x2824], 0
mov dword [ebp - 0x2820], 0xf
mov byte [ebp - 0x2834], 0
jmp 0x100053e8
push 0x2800
lea eax, [ebp - 0x2810]
push 0
push eax
call fcn.1002de40
add esp, 0xc
mov dword [ebp - 0x2838], 0
lea eax, [ebp - 0x2838]
push eax
push 0x2800
lea eax, [ebp - 0x2810]
push eax
push dword [ebp - 0x2840]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x2838]
test eax, eax
je 0x10005344
mov esi, dword [ebp - 0x2840]
xor edi, edi
push eax
lea eax, [ebp - 0x2810]
push eax
push edi
lea ecx, [ebp - 0x2834]
call fcn.10011210
add edi, dword [ebp - 0x2838]
lea eax, [ebp - 0x2838]
push eax
push 0x2800
lea eax, [ebp - 0x2810]
mov dword [ebp - 0x2838], 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x2838]
test eax, eax
jne 0x100052f0
mov esi, dword [ebp - 0x2858]
mov edi, dword [ebp - 0x2848]
push dword [ebp - 0x2840]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [ebp - 0x2834]
mov ecx, esi
push eax
call fcn.10008ca0
mov dword [ebp - 0x283c], 1
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2820]
cmp ecx, 0x10
jb 0x100051b4
mov edx, dword [ebp - 0x2834]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100053a3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005405
push ecx
push edx
call fcn.1002c24b
add esp, 8
jmp 0x100051b4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x283c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002c259
mov esp, ebp
pop ebp
ret
call fcn.1003111f
int3