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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push str.g_f160cmd10field0subcmd10
push dword [0x551308]
push 0x4883cd
push dword [0x551304]
push str.http:__qqpet.wapsns.3g.qq.com_qqpet_fcgi_bin_farm_sid
mov ecx, 5
call fcn.00401096
add esp, 0x14
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
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 - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00401eed
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40a35f
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40a36f
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40a37f
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40a38f
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40a39f
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40a3af
push ebx
call fcn.0040f0f3
add esp, 4
lea eax, [ebp - 0x24]
push eax
call fcn.004033a3
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40a3cb
push ebx
call fcn.0040f0f3
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40a3df
push ebx
call fcn.0040f0f3
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov eax, 0x528585
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, 0x52858c
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00403c66
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40a42f
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40a43f
push ebx
call fcn.0040f0f3
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40a453
push ebx
call fcn.0040f0f3
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x80000002
push 0
push 0
push 0
push 0
push 0
push 0x80000004
push 0
push 0x528597
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40a488
mov eax, 0x487fe4
push eax
push 4
mov ebx, 0x40f7b0
call fcn.0040f0ff
add esp, 0x34
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x40a512
push 0x5285b7
push dword [ebp - 8]
push 0x5285bf
mov ecx, 3
call fcn.00401096
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 0
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40a4ea
mov eax, 0x487fe4
push eax
push 3
mov ebx, 0x410910
call fcn.0040f0ff
add esp, 0x28
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40a50d
push ebx
call fcn.0040f0f3
add esp, 4
jmp 0x40a542
push 0
push 0
push 0
push 0x80000301
push 0
push 0
push 0x80000004
push 0
push 0x5285ea
push 3
mov ebx, 0x410910
call fcn.0040f0ff
add esp, 0x28
call fcn.00409145
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40a557
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40a567
push ebx
call fcn.0040f0f3
add esp, 4
mov esp, ebp
pop ebp
ret