Function at 0x10002af0
Capabilities:
Check http status code
Create http request
Get http content length
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10019f40
mov eax, dword [0x1005bbb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x101c], eax
mov dword [eax], 0
test edi, edi
jne 0x10002b2f
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019adf
mov esp, ebp
pop ebp
ret
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002b34
sub ecx, edx
xor eax, eax
sar ecx, 1
cmp ecx, 0xa
jb 0x10002d84
push ebx
push 0xffe
push eax
mov dword [ebp - 0x1008], eax
mov dword [ebp - 0x1014], eax
mov dword [ebp - 0x1010], eax
mov word [ebp - 0x1004], ax
lea eax, [ebp - 0x1002]
push eax
call fcn.1001a5c0
push edi
lea eax, [ebp - 0x1004]
push 0x800
push eax
call fcn.100195d0
add esp, 0x18
push 0
push 0
push 0
push 0
push str.Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__WOW64__Trident_5.0_
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
mov dword [ebp - 0x1018], ebx
test ebx, ebx
je 0x10002d7d
push esi
push 4
lea eax, [ebp - 0x100c]
mov dword [ebp - 0x100c], 0xbb8
push eax
push 2
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push SysReAllocString
push 0
push 0
lea eax, [ebp - 0x1004]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
je 0x10002d6f
push 0
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1010], 4
push eax
lea eax, [ebp - 0x1008]
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x10002d64
mov eax, dword [ebp - 0x1008]
cmp eax, 0xc8
je 0x10002cd1
cmp eax, 0x12d
je 0x10002c43
cmp eax, 0x12e
jne 0x10002d64
push 0x1000
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.1001a5c0
add esp, 0xc
mov dword [ebp - 0x1010], 0x800
lea eax, [ebp - 0x1010]
push 0
push eax
lea eax, [ebp - 0x1004]
push eax
push 0x21
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x10002d64
push edi
lea eax, [ebp - 0x1004]
push 0x800
push eax
call fcn.100195d0
add esp, 0xc
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0
push 0
push 0
push 0
push str.Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__WOW64__Trident_5.0_
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
mov dword [ebp - 0x1018], eax
test ebx, ebx
jne 0x10002bb3
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x10002d75
push 0
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1010], 4
push eax
lea eax, [ebp - 0x1014]
push eax
push 0x20000005
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x10002d64
push dword [ebp - 0x1014]
call fcn.1001859b
mov edi, eax
add esp, 4
mov eax, dword [ebp - 0x101c]
mov dword [eax], edi
lea eax, [ebp - 0x1010]
push eax
push 0x5dc
push edi
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10002d64
xor ebx, ebx
lea ecx, [ecx]
mov eax, dword [ebp - 0x1010]
test eax, eax
je 0x10002d5e
cmp ebx, dword [ebp - 0x1014]
je 0x10002d5e
add edi, eax
add ebx, eax
lea eax, [ebp - 0x1010]
push eax
push 0x5dc
push edi
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x10002d30
mov ebx, dword [ebp - 0x1018]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x10002d75
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test ebx, ebx
je 0x10002d7c
push ebx
call esi
pop esi
mov eax, dword [ebp - 0x1014]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10019adf
mov esp, ebp
pop ebp
ret