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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403c37
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x868
mov eax, dword [0x406008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x840], esi
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x838], 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 - 0x804], 0
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x7f4], 0
mov dword [ebp - 0x7f0], 0xf
mov byte [ebp - 0x804], 0
mov byte [ebp - 4], 1
test edi, edi
je 0x40177b
cmp dword [ebx + 0x1c], 0x10
lea eax, [ebx + 8]
push 0
cmovae eax, dword [ebx + 8]
push 0
push 0
push 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x83c], eax
test eax, eax
je 0x40177b
xor esi, esi
lea ecx, [ebp - 0x7ec]
push ecx
push 0x7d0
lea ecx, [ebp - 0x7e8]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [ebp - 0x7f0]
mov eax, ecx
mov edi, dword [ebp - 0x7ec]
sub eax, esi
push edi
cmp edi, eax
ja 0x401543
lea eax, [esi + edi]
cmp ecx, 0x10
mov dword [ebp - 0x7f4], eax
lea eax, [ebp - 0x804]
cmovae eax, dword [ebp - 0x804]
add esi, eax
lea eax, [ebp - 0x7e8]
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x401563
lea eax, [ebp - 0x7e8]
mov byte [ebp - 0x874], 0
push eax
push dword [ebp - 0x874]
lea ecx, [ebp - 0x804]
push edi
call fcn.00402680
push 0x7d0
lea eax, [ebp - 0x7e8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [ebp - 0x7ec], 0
je 0x401593
mov esi, dword [ebp - 0x7f4]
mov eax, dword [ebp - 0x83c]
jmp 0x4014e3
push dword [ebp - 0x838]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x83c]
call esi
push 2
mov dword [ebp - 0x870], 0
lea ecx, [ebp - 0x870]
push 0x404250
mov dword [ebp - 0x860], 0
mov dword [ebp - 0x85c], 0xf
mov byte [ebp - 0x870], 0
call fcn.00402170
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x858]
push 2
mov dword [ebp - 0x858], 0
push 0x404254
mov dword [ebp - 0x848], 0
mov dword [ebp - 0x844], 0xf
mov byte [ebp - 0x858], 0
call fcn.00402170
lea eax, [ebp - 0x870]
mov byte [ebp - 4], 3
push eax
sub esp, 0x18
lea eax, [ebp - 0x804]
mov ecx, esp
lea esi, [ebp - 0x858]
push eax
call fcn.00401f30
mov edx, esi
lea ecx, [ebp - 0x81c]
call fcn.00401270
mov edx, dword [ebp - 0x844]
add esp, 0x1c
cmp edx, 0x10
jb 0x401687
mov ecx, dword [ebp - 0x858]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40167d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401775
push edx
push ecx
call fcn.004030e4
add esp, 8
mov edx, dword [ebp - 0x85c]
cmp edx, 0x10
jb 0x4016c1
mov ecx, dword [ebp - 0x870]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4016b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401775
push edx
push ecx
call fcn.004030e4
add esp, 8
mov esi, dword [ebp - 0x840]
movups xmm0, xmmword [ebp - 0x81c]
mov edx, dword [ebp - 0x7f0]
mov byte [ebp - 0x81c], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x80c]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x80c], 0
mov dword [ebp - 0x808], 0xf
cmp edx, 0x10
jb 0x401743
mov ecx, dword [ebp - 0x804]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401739
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401775
push edx
push ecx
call fcn.004030e4
add esp, 8
mov edx, dword [ebx + 0x1c]
cmp edx, 0x10
jb 0x401927
mov ecx, dword [ebx + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40191d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40191d
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
mov dword [ebp - 0x858], 0
lea ecx, [ebp - 0x858]
push 0x404250
mov dword [ebp - 0x848], 0
mov dword [ebp - 0x844], 0xf
mov byte [ebp - 0x858], 0
call fcn.00402170
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x870]
push 2
mov dword [ebp - 0x870], 0
push 0x404254
mov dword [ebp - 0x860], 0
mov dword [ebp - 0x85c], 0xf
mov byte [ebp - 0x870], 0
call fcn.00402170
lea eax, [ebp - 0x858]
mov byte [ebp - 4], 5
push eax
sub esp, 0x18
lea eax, [ebp - 0x804]
mov ecx, esp
lea edi, [ebp - 0x870]
push eax
call fcn.00401f30
mov edx, edi
lea ecx, [ebp - 0x834]
call fcn.00401270
mov edx, dword [ebp - 0x85c]
add esp, 0x1c
cmp edx, 0x10
jb 0x401860
mov ecx, dword [ebp - 0x870]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401856
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401775
push edx
push ecx
call fcn.004030e4
add esp, 8
mov edx, dword [ebp - 0x844]
cmp edx, 0x10
jb 0x40189a
mov ecx, dword [ebp - 0x858]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401890
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401775
push edx
push ecx
call fcn.004030e4
add esp, 8
movups xmm0, xmmword [ebp - 0x834]
mov edx, dword [ebp - 0x7f0]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov byte [ebp - 0x834], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x824]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 0xf
cmp edx, 0x10
jb 0x401743
mov ecx, dword [ebp - 0x804]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401739
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401775
jmp 0x401739
push edx
push ecx
call fcn.004030e4
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 - 0x14]
xor ecx, ebp
call fcn.00402e55
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret