Function at 0x401890
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40cc30
mov eax, dword fs:[0]
push eax
sub esp, 0x810
mov eax, dword [0x410040]
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 - 0x80c], edx
mov edi, ecx
mov dword [ebp - 0x808], edi
push str.wininet.dll
mov dword [ebp - 0x808], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x800], eax
test eax, eax
je 0x4019b2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InternetOpenA
push eax
call esi
push str.InternetOpenUrlA
push dword [ebp - 0x800]
mov dword [ebp - 0x808], eax
call esi
push str.InternetReadFile
push dword [ebp - 0x800]
mov dword [ebp - 0x804], eax
call esi
push str.InternetCloseHandle
push dword [ebp - 0x800]
mov dword [ebp - 0x818], eax
call esi
mov esi, eax
mov eax, dword [ebp - 0x808]
mov dword [ebp - 0x814], esi
test eax, eax
je 0x4019a6
cmp dword [ebp - 0x804], 0
je 0x4019a6
cmp dword [ebp - 0x818], 0
je 0x4019a6
test esi, esi
je 0x4019a6
push 0
push 0
push 0
push 1
push str.Mozilla_5.0
call eax
mov ecx, eax
mov dword [ebp - 0x810], ecx
test ecx, ecx
je 0x4019a6
mov eax, dword [ebp - 0x80c]
cmp dword [eax + 0x14], 0xf
jbe 0x401982
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
push ecx
call dword [ebp - 0x804]
mov ecx, eax
mov dword [ebp - 0x804], ecx
test ecx, ecx
jne 0x4019db
push dword [ebp - 0x810]
call esi
push dword [ebp - 0x800]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x40d332
mov ecx, edi
call fcn.00404c70
mov eax, edi
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.0040bba7
mov esp, ebp
pop ebp
ret
xor eax, eax
xorps xmm0, xmm0
mov esi, 0xf
mov dword [ebp - 0x808], eax
movups xmmword [ebp - 0x7fc], xmm0
mov dword [ebp - 0x7ec], eax
mov dword [ebp - 0x7e8], esi
mov byte [ebp - 0x7fc], al
mov dword [ebp - 4], eax
nop word [eax + eax]
lea eax, [ebp - 0x7e4]
push eax
push 0x7d0
lea eax, [ebp - 0x7e0]
push eax
push ecx
call dword [ebp - 0x818]
test eax, eax
je 0x401b2c
mov ecx, dword [ebp - 0x7e4]
mov eax, esi
mov edx, dword [ebp - 0x808]
sub eax, edx
mov dword [ebp - 0x80c], ecx
push ecx
cmp ecx, eax
ja 0x401a85
lea eax, [ecx + edx]
cmp esi, 0xf
mov dword [ebp - 0x7ec], eax
lea eax, [ebp - 0x7fc]
cmova eax, dword [ebp - 0x7fc]
lea esi, [eax + edx]
lea eax, [ebp - 0x7e0]
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x80c]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x401a9e
lea eax, [ebp - 0x7e0]
push eax
push dword [ebp - 0x80c]
push ecx
lea ecx, [ebp - 0x7fc]
call fcn.00405420
push 0x7d0
lea eax, [ebp - 0x7e0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [ebp - 0x7e4], 0
jbe 0x401ada
mov eax, dword [ebp - 0x7ec]
mov esi, dword [ebp - 0x7e8]
mov ecx, dword [ebp - 0x804]
mov dword [ebp - 0x808], eax
jmp 0x401a10
push dword [ebp - 0x804]
mov esi, dword [ebp - 0x814]
call esi
push dword [ebp - 0x810]
call esi
push dword [ebp - 0x800]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
movups xmm0, xmmword [ebp - 0x7fc]
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x7ec]
movq qword [edi + 0x10], xmm0
jmp 0x4019be
push dword [ebp - 0x804]
call dword [ebp - 0x814]
push dword [ebp - 0x810]
call dword [ebp - 0x814]
push dword [ebp - 0x800]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x40d332
mov ecx, edi
call fcn.00404c70
cmp esi, 0xf
jbe 0x4019be
mov ecx, dword [ebp - 0x7fc]
inc esi
mov eax, ecx
cmp esi, 0x1000
jb 0x401b8c
mov ecx, dword [eax - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401b8c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push esi
push ecx
call fcn.0040bbef
add esp, 8
jmp 0x4019be