Function at 0x10049d10
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004e2c4
mov eax, dword fs:[0]
push eax
sub esp, 0x860
mov eax, dword [0x1005b008]
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, ecx
mov dword [ebp - 0x834], esi
mov dword [ebp - 0x830], esi
mov dword [ebp - 0x830], esi
push 0
push 0
push 0
push 1
push str.Mozilla_5.0
mov dword [ebp - 4], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
mov dword [ebp - 0x7fc], 0
mov dword [ebp - 0x830], edi
mov dword [ebp - 0x7ec], 0
mov dword [ebp - 0x7e8], 0xf
mov byte [ebp - 0x7fc], 0
mov byte [ebp - 4], 2
test edi, edi
je 0x1004a056
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push 0
push 0
push 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ecx, eax
mov dword [ebp - 0x838], ecx
test ecx, ecx
je 0x1004a056
xor esi, esi
lea eax, [ebp - 0x7e4]
push eax
push 0x7d0
lea eax, [ebp - 0x7e0]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [ebp - 0x7e8]
mov eax, ecx
mov edi, dword [ebp - 0x7e4]
sub eax, esi
push edi
cmp edi, eax
ja 0x10049e31
lea eax, [edi + esi]
cmp ecx, 0x10
mov dword [ebp - 0x7ec], eax
lea eax, [ebp - 0x7fc]
cmovae eax, dword [ebp - 0x7fc]
add esi, eax
lea eax, [ebp - 0x7e0]
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x10049e4a
lea eax, [ebp - 0x7e0]
push eax
push dword [ebp - 0x834]
lea ecx, [ebp - 0x7fc]
push edi
call fcn.10002250
push 0x7d0
lea eax, [ebp - 0x7e0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [ebp - 0x7e4], 0
je 0x10049e7a
mov esi, dword [ebp - 0x7ec]
mov ecx, dword [ebp - 0x838]
jmp 0x10049dd1
push dword [ebp - 0x830]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x838]
call esi
push 2
push 0x10055458
lea ecx, [ebp - 0x868]
mov dword [ebp - 0x868], 0
mov dword [ebp - 0x858], 0
mov dword [ebp - 0x854], 0
call fcn.10002160
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x850]
push 2
push 0x100557c0
mov dword [ebp - 0x850], 0
mov dword [ebp - 0x840], 0
mov dword [ebp - 0x83c], 0
call fcn.10002160
lea eax, [ebp - 0x868]
mov byte [ebp - 4], 4
push eax
sub esp, 0x18
lea eax, [ebp - 0x7fc]
mov ecx, esp
lea esi, [ebp - 0x850]
push eax
call fcn.10002050
mov edx, esi
lea ecx, [ebp - 0x814]
call fcn.10049790
mov ecx, dword [ebp - 0x83c]
add esp, 0x1c
cmp ecx, 0x10
jb 0x10049f60
mov edx, dword [ebp - 0x850]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10049f56
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004a050
push ecx
push edx
call fcn.1004c556
add esp, 8
mov ecx, dword [ebp - 0x854]
cmp ecx, 0x10
jb 0x10049f9a
mov edx, dword [ebp - 0x868]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10049f90
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004a050
push ecx
push edx
call fcn.1004c556
add esp, 8
mov esi, dword [ebp - 0x834]
vmovdqu xmm0, xmmword [ebp - 0x814]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
vmovdqu xmmword [esi], xmm0
vmovq xmm0, qword [ebp - 0x804]
vmovq qword [esi + 0x10], xmm0
mov ecx, dword [ebp - 0x7e8]
mov dword [ebp - 0x804], 0
mov dword [ebp - 0x800], 0xf
mov byte [ebp - 0x814], 0
cmp ecx, 0x10
jb 0x1004a01e
mov edx, dword [ebp - 0x7fc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004a014
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004a050
push ecx
push edx
call fcn.1004c556
add esp, 8
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x1004a1f6
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004a1ec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1004a1ec
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 2
push 0x10055458
lea ecx, [ebp - 0x850]
mov dword [ebp - 0x850], 0
mov dword [ebp - 0x840], 0
mov dword [ebp - 0x83c], 0
call fcn.10002160
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x868]
push 2
push 0x100557c0
mov dword [ebp - 0x868], 0
mov dword [ebp - 0x858], 0
mov dword [ebp - 0x854], 0
call fcn.10002160
lea eax, [ebp - 0x850]
mov byte [ebp - 4], 8
push eax
sub esp, 0x18
lea eax, [ebp - 0x7fc]
mov ecx, esp
lea edi, [ebp - 0x868]
push eax
call fcn.10002050
mov edx, edi
lea ecx, [ebp - 0x82c]
call fcn.10049790
mov ecx, dword [ebp - 0x854]
add esp, 0x1c
cmp ecx, 0x10
jb 0x1004a12d
mov edx, dword [ebp - 0x868]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004a123
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004a050
push ecx
push edx
call fcn.1004c556
add esp, 8
mov ecx, dword [ebp - 0x83c]
cmp ecx, 0x10
jb 0x1004a167
mov edx, dword [ebp - 0x850]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004a15d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004a050
push ecx
push edx
call fcn.1004c556
add esp, 8
vmovdqu xmm0, xmmword [ebp - 0x82c]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
vmovdqu xmmword [esi], xmm0
vmovq xmm0, qword [ebp - 0x81c]
vmovq qword [esi + 0x10], xmm0
mov ecx, dword [ebp - 0x7e8]
mov dword [ebp - 0x81c], 0
mov dword [ebp - 0x818], 0xf
mov byte [ebp - 0x82c], 0
cmp ecx, 0x10
jb 0x1004a01e
mov edx, dword [ebp - 0x7fc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004a014
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004a050
jmp 0x1004a014
push ecx
push edx
call fcn.1004c556
add esp, 8
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.1004c44e
mov esp, ebp
pop ebp
ret