Function at 0x401960
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 0x405057
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x838
mov eax, dword [0x4c2040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x810], eax
mov dword [ebp - 0x808], eax
mov dword [ebp - 0x808], eax
mov dword [ebp - 0x808], 1
push 0
push 0
push 0
push 1
push 0x406368
mov dword [ebp - 4], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
xorps xmm0, xmm0
mov dword [ebp - 0x7f0], 0xf
mov edi, eax
xor esi, esi
movups xmmword [ebp - 0x804], xmm0
mov dword [ebp - 0x808], edi
mov dword [ebp - 0x7f4], esi
mov byte [ebp - 0x804], 0
mov byte [ebp - 4], 1
test edi, edi
je 0x401c3c
cmp dword [ebx + 0x1c], 0xf
lea eax, [ebx + 8]
push esi
cmova eax, dword [ebx + 8]
push esi
push esi
push esi
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x80c], eax
test eax, eax
je 0x401c3c
nop word [eax + eax]
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 0x401aa0
lea eax, [edi + esi]
cmp ecx, 0xf
mov dword [ebp - 0x7f4], eax
lea eax, [ebp - 0x804]
cmova 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 0x401ac0
lea eax, [ebp - 0x7e8]
mov byte [ebp - 0x814], 0
push eax
push dword [ebp - 0x814]
lea ecx, [ebp - 0x804]
push edi
call fcn.00403a10
push 0x7d0
lea eax, [ebp - 0x7e8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [ebp - 0x7ec], 0
je 0x401af0
mov esi, dword [ebp - 0x7f4]
mov eax, dword [ebp - 0x80c]
jmp 0x401a40
push dword [ebp - 0x808]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x80c]
call esi
push 0x406374
lea ecx, [ebp - 0x844]
call fcn.00403360
push 0x406378
lea ecx, [ebp - 0x82c]
mov byte [ebp - 4], 2
call fcn.00403360
lea eax, [ebp - 0x844]
mov byte [ebp - 4], 3
push eax
sub esp, 0x18
lea eax, [ebp - 0x804]
mov ecx, esp
lea esi, [ebp - 0x82c]
push eax
call fcn.00403470
mov edx, esi
mov esi, dword [ebp - 0x810]
mov ecx, esi
call fcn.00401890
mov ecx, dword [ebp - 0x818]
add esp, 0x1c
cmp ecx, 0xf
jbe 0x401b98
mov edx, dword [ebp - 0x82c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401b8e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401c36
push ecx
push edx
call fcn.004045c4
add esp, 8
mov ecx, dword [ebp - 0x830]
cmp ecx, 0xf
jbe 0x401bce
mov edx, dword [ebp - 0x844]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401bc4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401c36
push ecx
push edx
call fcn.004045c4
add esp, 8
mov ecx, dword [ebp - 0x7f0]
cmp ecx, 0xf
jbe 0x401c04
mov edx, dword [ebp - 0x804]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401bfa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401c36
push ecx
push edx
call fcn.004045c4
add esp, 8
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0xf
jbe 0x401d56
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401d4c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401d4c
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 0x406374
lea ecx, [ebp - 0x82c]
call fcn.00403360
push 0x406378
lea ecx, [ebp - 0x844]
mov byte [ebp - 4], 4
call fcn.00403360
lea eax, [ebp - 0x82c]
mov byte [ebp - 4], 5
push eax
sub esp, 0x18
lea eax, [ebp - 0x804]
mov ecx, esp
lea esi, [ebp - 0x844]
push eax
call fcn.00403470
mov edx, esi
mov esi, dword [ebp - 0x810]
mov ecx, esi
call fcn.00401890
mov ecx, dword [ebp - 0x830]
add esp, 0x1c
cmp ecx, 0xf
jbe 0x401cd5
mov edx, dword [ebp - 0x844]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401ccb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401c36
push ecx
push edx
call fcn.004045c4
add esp, 8
mov ecx, dword [ebp - 0x818]
cmp ecx, 0xf
jbe 0x401d0f
mov edx, dword [ebp - 0x82c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401d05
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401c36
push ecx
push edx
call fcn.004045c4
add esp, 8
mov ecx, dword [ebp - 0x7f0]
cmp ecx, 0xf
jbe 0x401c04
mov edx, dword [ebp - 0x804]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401bfa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401c36
jmp 0x401bfa
push ecx
push edx
call fcn.004045c4
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.00404058
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret