Function at 0x40a72f
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 str.g_f0cmd3eatwash1feed0page1storage0
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 0x40a7dd
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40a7ed
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40a7fd
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40a80d
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40a81d
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40a82d
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 0x40a849
push ebx
call fcn.0040ae52
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40a85d
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 0x40a895
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40a8a5
push ebx
call fcn.0040ae52
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40a8b9
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 0x40a949
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40a959
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40a969
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40a979
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40a989
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40a999
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 0x40a9b5
push ebx
call fcn.0040ae52
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40a9c9
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 0x40a9fe
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 0x40aa23
jmp 0x40aa53
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 0x40aa68
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40aa78
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40aa88
push ebx
call fcn.0040ae52
add esp, 4
mov esp, ebp
pop ebp
ret