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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0x48aef7
push dword [0x4ada28]
push str.petid
push dword [0x4ada24]
push str.http:__qqpet.wapsns.3g.qq.com_qqpet_fcgi_bin_phone_pet_sid
mov ecx, 5
call fcn.0040107b
add esp, 0x14
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
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 - 0x20], eax
lea eax, [ebp - 0x20]
push eax
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
lea eax, [ebp - 0x14]
push eax
call fcn.004013b6
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40a480
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40a490
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40a4a0
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40a4b0
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40a4c0
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40a4d0
push ebx
call fcn.0040ae52
add esp, 4
lea eax, [ebp - 0x2c]
push eax
call fcn.00402893
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40a4ec
push ebx
call fcn.0040ae52
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40a500
push ebx
call fcn.0040ae52
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, 0x48af26
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, str.goodid
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00403156
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40a538
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40a548
push ebx
call fcn.0040ae52
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40a55c
push ebx
call fcn.0040ae52
add esp, 4
pop eax
mov dword [ebp - 8], eax
push dword [ebp - 8]
push str.g_f0cmd3eatwash0feed3goodid
push dword [0x4ada28]
push str.petid
push dword [0x4ada24]
push str.http:__qqpet.wapsns.3g.qq.com_qqpet_fcgi_bin_phone_pet_sid
mov ecx, 6
call fcn.0040107b
add esp, 0x18
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
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 - 0x20], eax
lea eax, [ebp - 0x20]
push eax
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
lea eax, [ebp - 0x14]
push eax
call fcn.004013b6
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40a5ec
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40a5fc
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40a60c
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40a61c
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40a62c
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40a63c
push ebx
call fcn.0040ae52
add esp, 4
lea eax, [ebp - 0x2c]
push eax
call fcn.00402893
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40a658
push ebx
call fcn.0040ae52
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40a66c
push ebx
call fcn.0040ae52
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push closesocket
push 0
push 0
push 0
push 0
push 0
push getpeername
push 0
push 0x48af57
push getpeername
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40a6a1
mov eax, 0x487dfd
push eax
push 4
mov ebx, 0x40b450
call fcn.0040ae58
add esp, 0x34
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x40a6c6
jmp 0x40a6f6
push 0
push 0
push 0
push 0x80000301
push 0
push 0x40
push getpeername
push 0
push 0x48af60
push 3
mov ebx, 0x40c250
call fcn.0040ae58
add esp, 0x28
call fcn.00403599
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40a70b
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40a71b
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40a72b
push ebx
call fcn.0040ae52
add esp, 4
mov esp, ebp
pop ebp
ret