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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0xffffffffffffffff
push 0x23
push 0x160120ca
push 0x520120ba
call fcn.0040f111
add esp, 0x10
mov dword [ebp - 0x10], eax
push 0x80000301
push 0
push 0
push 0x80000301
push 0
push dword [ebp - 0x10]
push 0x20004
push 0x160120ca
push 0x520120ba
push 3
mov eax, 1
mov ebx, 0x45e660
call fcn.0040f105
add esp, 0x28
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40df53
push ebx
call fcn.0040f0f3
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0xffffffffffffffff
push 0x23
push 0x160120ca
push 0x520120ba
call fcn.0040f111
add esp, 0x10
mov dword [ebp - 0x10], eax
push 0x80000301
push 0
push 8
push 0x80000301
push 0
push dword [ebp - 0x10]
push 0x20004
push 0x160120ca
push 0x520120ba
push 3
mov eax, 1
mov ebx, 0x45e660
call fcn.0040f105
add esp, 0x28
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40dfc3
push ebx
call fcn.0040f0f3
add esp, 4
pop eax
mov dword [ebp - 8], eax
push dword [ebp - 8]
push str.subcmd5sname
push dword [ebp - 4]
push str.g_f160cmd10prc0seedid
push dword [0x551308]
push 0x4883cd
push dword [0x551304]
push str.http:__qqpet.wapsns.3g.qq.com_qqpet_fcgi_bin_farm_sid
mov ecx, 8
call fcn.00401096
add esp, 0x20
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
push 1
mov eax, str.Connection:_keep_alive
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 1
mov eax, str.User_Agent:Mozilla_5.0__iPhone__U__CPU_OS_4_2_1_like_Mac_OS_X__AppleWebKit_532.9__KHTML__like_Gecko__Version_5.0.3_Mobile_8B5097d_Safari_6531.22.7
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401eed
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40e05c
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40e06c
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40e07c
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40e08c
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40e09c
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40e0ac
push ebx
call fcn.0040f0f3
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.004033a3
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40e0c8
push ebx
call fcn.0040f0f3
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40e0dc
push ebx
call fcn.0040f0f3
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0x80000002
push 0
push 0
push 0
push 0
push 0
push 0x80000004
push 0
push 0x528b56
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40e111
mov eax, 0x487fe4
push eax
push 4
mov ebx, 0x40f7b0
call fcn.0040f0ff
add esp, 0x34
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x40e166
push 0
push 0
push 0
push 0x80000301
push 0
push 0
push 0x80000004
push 0
push 0x528b83
push 3
mov ebx, 0x410910
call fcn.0040f0ff
add esp, 0x28
jmp 0x40e19b
push 0
push 0
push 0
push 0x80000301
push 0
push 0
push 0x80000004
push 0
push 0x528bb2
push 3
mov ebx, 0x410910
call fcn.0040f0ff
add esp, 0x28
call fcn.00409145
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40e1ab
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40e1bb
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40e1cb
push ebx
call fcn.0040f0f3
add esp, 4
mov esp, ebp
pop ebp
ret