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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push 0xc
call fcn.004188fc
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx], 0x4ec478
push ebx
add ebx, 4
push ebx
push 8
call fcn.004188fc
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x4ec120
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
add ebx, 4
push ebx
push 8
call fcn.004188fc
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x4ec120
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
pop ebx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov eax, str.cap_ctu.changyou.com
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, str.Host
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40f5b0
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40f5c0
push ebx
call fcn.00418902
add esp, 4
mov eax, str.Mozilla_5.0__Windows_NT_6.2__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_49.0.2623.87_Safari_537.36
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, str.User_Agent
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40f5f6
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40f606
push ebx
call fcn.00418902
add esp, 4
mov eax, str.en_US_en_q0.8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, str.Accept_Language
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40f63c
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40f64c
push ebx
call fcn.00418902
add esp, 4
mov eax, str.keep_alive
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, str.Connection
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40f682
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40f692
push ebx
call fcn.00418902
add esp, 4
mov eax, str.text_html_application_xhtmlxml_application_xml_q0.9_image_webp___q0.8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, str.Accept
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40f6c8
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40f6d8
push ebx
call fcn.00418902
add esp, 4
mov eax, 0x4ec786
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, str.Upgrade_Insecure_Requests
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40f70e
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40f71e
push ebx
call fcn.00418902
add esp, 4
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
lea eax, [ebp - 4]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f74f
push ebx
call fcn.00418902
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
push 1
push 1
push 8
call fcn.004188fc
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x40], 0
push 0
lea eax, [ebp - 0x40]
push eax
push 1
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x44], 0
push 0
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x48], 0
push 0
lea eax, [ebp - 0x48]
push eax
push 1
push 0
push dword [ebp + 8]
call fcn.004070cb
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x40f851
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x40f861
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40f871
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40f881
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40f891
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40f8a1
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40f8b1
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x41c460
call fcn.00418908
add esp, 0x10
call fcn.00418902
add esp, 4
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40f8e8
push ebx
call fcn.00418902
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov eax, 0x4ec120
xor ecx, ecx
test eax, eax
je 0x40f8fa
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0xc]
xor ebx, ebx
test eax, eax
je 0x40f90b
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x40f922
dec eax
test ecx, ecx
je 0x40f922
call fcn.0040701f
add esp, 0xc
test eax, eax
jne 0x40f947
mov eax, 0x4ec04f
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40f943
push ebx
call fcn.00418902
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40f963
push eax
mov ebx, eax
call fcn.00401094
inc eax
push eax
call fcn.004188fc
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40f968
push eax
mov ebx, dword [ebp - 4]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f989
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40f999
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40f9a9
push ebx
call fcn.00418902
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4