Function at 0x1003a4ca
Capabilities:
Check http status code
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
mov eax, 0x100cfef8
call fcn.100b286c
mov eax, 0x287c
call fcn.100b50b0
mov eax, dword [0x10120240]
push ebx
push esi
mov dword [ebp - 0x2854], ecx
push edi
lea ecx, [ebp - 0x2888]
mov dword [ebp - 0x10], eax
call fcn.100031dc
push 8
pop ecx
xor ebx, ebx
push 0x2800
lea eax, [ebp - 0x2830]
push ebx
mov esi, str.Accept:___r_n_r_n
lea edi, [ebp - 0x30]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x283c], 1
rep movsd dword es:[edi], dword [esi]
call fcn.100b2930
add esp, 0xc
lea ecx, [ebp - 0x2850]
call fcn.1007e247
mov byte [ebp - 4], 1
call fcn.10019855
mov esi, eax
cmp esi, ebx
je 0x1003a636
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x2840], esp
push 0x100df794
call fcn.1007e254
push ebx
lea eax, [ebp - 0x2860]
push eax
mov ecx, esi
call fcn.10020ba4
push eax
lea ecx, [ebp - 0x2850]
mov byte [ebp - 4], 2
call fcn.1007e46a
lea ecx, [ebp - 0x2860]
mov byte [ebp - 4], 1
call fcn.1007e410
lea ecx, [ebp - 0x2850]
call fcn.1007e67a
test eax, eax
je 0x1003a5d0
push 0x100e28c0
lea ecx, [ebp - 0x2860]
call fcn.1007e254
lea eax, [ebp - 0x2860]
push eax
lea ecx, [ebp - 0x2850]
mov byte [ebp - 4], 3
call fcn.1007e46a
lea ecx, [ebp - 0x2860]
mov byte [ebp - 4], 1
call fcn.1007e410
lea ecx, [ebp - 0x287c]
call fcn.1007e247
lea eax, [ebp - 0x287c]
push eax
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.10019be2
cmp eax, ebx
je 0x1003a627
lea ecx, [ebp - 0x287c]
call fcn.1007e67a
test eax, eax
jne 0x1003a627
push 0x100e015c
lea ecx, [ebp - 0x2850]
call fcn.1007ee1f
lea ecx, [ebp - 0x287c]
call fcn.1007e558
push eax
lea ecx, [ebp - 0x2850]
call fcn.1007ee1f
mov ecx, esi
call fcn.1001879a
lea ecx, [ebp - 0x287c]
jmp 0x1003a662
push 0x100e28c0
lea ecx, [ebp - 0x2860]
call fcn.1007e254
lea eax, [ebp - 0x2860]
push eax
lea ecx, [ebp - 0x2850]
mov byte [ebp - 4], 5
call fcn.1007e46a
lea ecx, [ebp - 0x2860]
mov byte [ebp - 4], 1
call fcn.1007e410
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x2850]
call fcn.1007e558
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x2844], eax
mov al, byte [ebp + 8]
and al, 8
neg al
push ebx
sbb eax, eax
and eax, 0x7ffff900
add eax, 0x800
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [ebp - 0x2854]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [edi + 0x18]
call fcn.1007e558
push eax
push dword [ebp - 0x2844]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
cmp eax, ebx
mov dword [ebp - 0x2838], eax
jne 0x1003a6e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x40], eax
mov dword [ebp - 0x283c], ebx
jmp 0x1003a85a
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push 4
pop eax
push ebx
mov dword [ebp - 0x2868], eax
mov dword [ebp - 0x286c], eax
lea eax, [ebp - 0x286c]
push eax
lea eax, [ebp - 0x2864]
push eax
push 0x20000013
push dword [ebp - 0x2838]
mov dword [ebp - 0x2834], ebx
call esi
cmp dword [ebp - 0x2864], 0xc8
jne 0x1003a84e
push ebx
lea eax, [ebp - 0x2868]
push eax
lea eax, [ebp - 0x2870]
push eax
push 0x20000005
push dword [ebp - 0x2838]
call esi
test eax, eax
jne 0x1003a751
mov dword [ebp - 0x2870], ebx
test byte [ebp + 8], 1
je 0x1003a77d
push 0x30
push 0x100e8840
lea ecx, [edi + 0xc]
call fcn.1007e558
push eax
call fcn.100b4e77
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x2834], eax
je 0x1003a815
push 0x2800
lea eax, [ebp - 0x2830]
push ebx
push eax
call fcn.100b2930
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, 0x27ff
jmp 0x1003a7f7
mov eax, dword [ebp - 0x2840]
cmp eax, ebx
je 0x1003a81d
cmp dword [ebp - 0x2834], ebx
mov byte [ebp + eax - 0x2830], bl
je 0x1003a7cd
push dword [ebp - 0x2834]
push eax
lea eax, [ebp - 0x2830]
push 1
push eax
call fcn.100b4fed
add esp, 0x10
test byte [ebp + 8], 6
je 0x1003a7e5
lea eax, [ebp - 0x2830]
push eax
lea ecx, [ebp - 0x2888]
call fcn.100032eb
push 0x2800
lea eax, [ebp - 0x2830]
push ebx
push eax
call fcn.100b2930
add esp, 0xc
lea eax, [ebp - 0x2840]
push eax
push edi
lea eax, [ebp - 0x2830]
push eax
push dword [ebp - 0x2838]
call esi
test eax, eax
jne 0x1003a79c
mov dword [ebp - 0x283c], ebx
jmp 0x1003a84e
cmp dword [ebp - 0x2834], ebx
je 0x1003a831
push dword [ebp - 0x2834]
call fcn.100b4e1e
pop ecx
test byte [ebp + 8], 6
je 0x1003a84e
mov ecx, dword [ebp - 0x2854]
push 0xfde9
lea eax, [ebp - 0x2888]
push eax
call fcn.1007f32e
push dword [ebp - 0x2838]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x2844], ebx
je 0x1003a86e
push dword [ebp - 0x2844]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x2834], ebx
je 0x1003a882
push dword [ebp - 0x2834]
call fcn.100b475f
pop ecx
lea ecx, [ebp - 0x2850]
mov byte [ebp - 4], bl
call fcn.1007e410
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2888]
call fcn.10003276
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x283c]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.100b29c1
pop edi
pop esi
pop ebx
leave
ret 4