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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0xc
call fcn.00422101
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx], 0x4b675c
push ebx
add ebx, 4
push ebx
push 8
call fcn.00422101
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
pop ebx
pop ebx
push ebx
mov eax, esp
push eax
call fcn.0040e735
pop ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push dword [0x4f6354]
push 0x4b652b
push dword [0x4f6358]
push 0x4b6532
push dword [0x4f6350]
push 0x4b655a
mov ecx, 6
call fcn.00401102
add esp, 0x18
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40dfc3
push ebx
call fcn.004220fb
add esp, 4
pop eax
mov dword [ebp - 4], eax
push dword [0x4f6350]
push str.g_tk
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.modnoticeactagreefriendapplyu
mov ecx, 4
call fcn.00401102
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40e000
push ebx
call fcn.004220fb
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 1
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov eax, str.application_javascript____q0.8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, str.Accept
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x20]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40e053
push ebx
call fcn.004220fb
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40e063
push ebx
call fcn.004220fb
add esp, 4
push str.adtagapplist_touxiang
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.http:__profile.pengyou.com_index.php_modprofileu
mov ecx, 3
call fcn.00401102
add esp, 0xc
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, str.Referer
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x20]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40e0b0
push ebx
call fcn.004220fb
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40e0c0
push ebx
call fcn.004220fb
add esp, 4
mov eax, str.zh_cn
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, str.Accept_Language
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x20]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40e0f6
push ebx
call fcn.004220fb
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40e106
push ebx
call fcn.004220fb
add esp, 4
mov eax, str.Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__WOW64__Trident_5.0_
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, str.User_Agent
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x20]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40e13c
push ebx
call fcn.004220fb
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40e14c
push ebx
call fcn.004220fb
add esp, 4
mov eax, str.gzip__deflate
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, str.Accept_Encoding
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x20]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40e182
push ebx
call fcn.004220fb
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40e192
push ebx
call fcn.004220fb
add esp, 4
mov eax, str.api.pengyou.com
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, str.Host
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x20]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40e1c8
push ebx
call fcn.004220fb
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40e1d8
push ebx
call fcn.004220fb
add esp, 4
mov eax, str.Keep_Alive
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, str.Connection
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x20]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40e20e
push ebx
call fcn.004220fb
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40e21e
push ebx
call fcn.004220fb
add esp, 4
mov eax, str.no_cache
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, str.Cache_Control
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x20]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40e254
push ebx
call fcn.004220fb
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40e264
push ebx
call fcn.004220fb
add esp, 4
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov eax, 0x4b63e2
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov eax, str.uino
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 0x4f6348
call fcn.004030d5
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40e2b1
push ebx
call fcn.004220fb
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40e2c1
push ebx
call fcn.004220fb
add esp, 4
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov eax, 0x4b63e2
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
mov eax, str.__skey
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push 0x4f6348
call fcn.004030d5
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40e30e
push ebx
call fcn.004220fb
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40e31e
push ebx
call fcn.004220fb
add esp, 4
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
mov eax, 0x4b63e2
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
mov eax, str.__ptispctc__pst
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push eax
push 0x4f6348
call fcn.004030d5
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x40e36b
push ebx
call fcn.004220fb
add esp, 4
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x40e37b
push ebx
call fcn.004220fb
add esp, 4
mov dword [ebp - 0x58], 0
push 0
push dword [ebp - 0x58]
mov dword [ebp - 0x5c], 0
push 0
push dword [ebp - 0x5c]
mov eax, 0x4b4978
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push eax
mov eax, str.__pvid
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
push 0x4f6348
call fcn.004030d5
mov dword [ebp - 0x68], eax
mov ebx, dword [ebp - 0x64]
test ebx, ebx
je 0x40e3c8
push ebx
call fcn.004220fb
add esp, 4
mov ebx, dword [ebp - 0x60]
test ebx, ebx
je 0x40e3d8
push ebx
call fcn.004220fb
add esp, 4
push dword [ebp - 0x68]
push str.__pvid
push dword [ebp - 0x54]
push str.__ptispctc__pst
push dword [ebp - 0x40]
push str.__skey
push dword [ebp - 0x2c]
push str.uino
mov ecx, 8
call fcn.00401102
add esp, 0x20
mov dword [ebp - 0x6c], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40e418
push ebx
call fcn.004220fb
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40e428
push ebx
call fcn.004220fb
add esp, 4
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x40e438
push ebx
call fcn.004220fb
add esp, 4
mov ebx, dword [ebp - 0x68]
test ebx, ebx
je 0x40e448
push ebx
call fcn.004220fb
add esp, 4
mov eax, dword [ebp - 0x6c]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40e45c
push ebx
call fcn.004220fb
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x60]
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x18]
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x54]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40e4ab
push ebx
call fcn.004220fb
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40e4c2
mov eax, 0x4b4a1a
push eax
push 1
mov ebx, 0x4238e0
call fcn.00422107
add esp, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00404afa
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40e4f4
push ebx
call fcn.004220fb
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40e508
push ebx
call fcn.004220fb
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4b66f8
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40e53d
mov eax, 0x4b4978
push eax
push 4
mov ebx, 0x422980
call fcn.00422107
add esp, 0x34
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x40e5b2
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str._code_:0__subcode_:0__msg_:_u6210u529fu5efau7acbu597du53cbu5173u7cfb_
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40e58e
mov eax, 0x4b4978
push eax
push 4
mov ebx, 0x422980
call fcn.00422107
add esp, 0x34
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x40e5b2
xor eax, eax
jmp 0x40e5b7
mov eax, 1
test eax, eax
je 0x40e6cf
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [0x4f635c]
test eax, eax
jne 0x40e5d4
mov eax, 0x4b4978
push eax
push 1
mov ebx, 0x422b70
call fcn.00422107
add esp, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
fld qword [ebp - 0x20]
fadd qword [0x4b4bc6]
fstp qword [ebp - 0x28]
push 0x80000601
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push 1
mov ebx, 0x4238e0
call fcn.00422107
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [0x4f635c]
test ebx, ebx
je 0x40e630
push ebx
call fcn.004220fb
add esp, 4
pop eax
mov dword [0x4f635c], eax
push dword [0x4f635c]
push 0x4b6750
mov ecx, 2
call fcn.00401102
add esp, 8
mov dword [ebp - 0x1c], eax
push 0xffffffffffffffff
push 0x23
push 0x160132f7
push 0x52010001
call fcn.0042212b
add esp, 0x10
mov dword [ebp - 0x20], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40e67d
mov eax, 0x4b4978
push eax
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 0x20]
push 0x40004
push 0x160132f7
push 0x52010001
push 4
mov eax, 3
mov ebx, 0x476090
call fcn.0042211f
add esp, 0x34
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40e6ca
push ebx
call fcn.004220fb
add esp, 4
jmp 0x40e6cf
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40e6df
push ebx
call fcn.004220fb
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40e6ef
push ebx
call fcn.004220fb
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.004220fb
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40e70f
push ebx
call fcn.004220fb
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40e71f
push ebx
call fcn.004220fb
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40e72f
push ebx
call fcn.004220fb
add esp, 4
mov esp, ebp
pop ebp
ret 4