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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004e24c
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 dword [ebp - 0x830], edx
mov esi, ecx
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x834], esi
push 0
push 0
push 0
push 1
push str.Mozilla_5.0
mov dword [ebp - 0x834], esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
mov dword [ebp - 0x7fc], 0
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x7ec], 0
mov dword [ebp - 0x7e8], 0xf
mov byte [ebp - 0x7fc], 0
mov dword [ebp - 4], 1
test edi, edi
je 0x10049b85
push 0
push 0
push 0
push 0
push dword [ebp - 0x830]
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ecx, eax
mov dword [ebp - 0x830], ecx
test ecx, ecx
je 0x10049b85
xor esi, esi
nop dword [eax]
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 0x10049990
lea eax, [esi + edi]
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 0x100499a9
lea eax, [ebp - 0x7e0]
push eax
push dword [ebp - 0x838]
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 0x100499d9
mov esi, dword [ebp - 0x7ec]
mov ecx, dword [ebp - 0x830]
jmp 0x10049930
push dword [ebp - 0x834]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x830]
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], 2
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], 3
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 0x10049abf
mov edx, dword [ebp - 0x850]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10049ab5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10049b7f
push ecx
push edx
call fcn.1004c556
add esp, 8
mov ecx, dword [ebp - 0x854]
cmp ecx, 0x10
jb 0x10049af9
mov edx, dword [ebp - 0x868]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10049aef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10049b7f
push ecx
push edx
call fcn.1004c556
add esp, 8
mov esi, dword [ebp - 0x838]
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 dword [ebp - 0x804], 0
mov dword [ebp - 0x800], 0xf
mov byte [ebp - 0x814], 0
mov ecx, dword [ebp - 0x7e8]
cmp ecx, 0x10
jb 0x10049ced
mov edx, dword [ebp - 0x7fc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10049ce3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10049ce3
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], 6
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], 7
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 0x10049c5c
mov edx, dword [ebp - 0x868]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10049c52
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10049b7f
push ecx
push edx
call fcn.1004c556
add esp, 8
mov ecx, dword [ebp - 0x83c]
cmp ecx, 0x10
jb 0x10049c96
mov edx, dword [ebp - 0x850]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10049c8c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10049b7f
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 dword [ebp - 0x81c], 0
mov dword [ebp - 0x818], 0xf
mov byte [ebp - 0x82c], 0
jmp 0x10049b47
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