Function at 0x40782d
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_f0cmd30gift0
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 - 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.004013b6
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4078cd
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4078dd
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4078ed
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4078fd
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40790d
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40791d
push ebx
call fcn.0040ae52
add esp, 4
lea eax, [ebp - 0x24]
push eax
call fcn.00402893
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x407939
push ebx
call fcn.0040ae52
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40794d
push ebx
call fcn.0040ae52
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, 0x48a96b
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov eax, 0x48a970
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00403156
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x407985
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x407995
push ebx
call fcn.0040ae52
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4079a9
push ebx
call fcn.0040ae52
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x48a981
push dword [ebp - 8]
call fcn.004010d7
add esp, 8
cmp eax, 0
jne 0x407ad9
push str.g_f0cmd30day1gift0gift_get1
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 - 0xc], eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 1
mov eax, 0x48a9aa
mov dword [ebp - 0x14], eax
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.004013b6
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x407a50
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x407a60
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x407a70
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x407a80
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x407a90
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x407aa0
push ebx
call fcn.0040ae52
add esp, 4
lea eax, [ebp - 0x24]
push eax
call fcn.00402893
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x407abc
push ebx
call fcn.0040ae52
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x407ad0
push ebx
call fcn.0040ae52
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x407d2c
push 0x48a9ae
push dword [ebp - 8]
call fcn.004010d7
add esp, 8
cmp eax, 0
jne 0x407c05
push str.g_f0cmd30day2gift0gift_get1
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 - 0xc], eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 1
mov eax, 0x48a9aa
mov dword [ebp - 0x14], eax
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.004013b6
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x407b7c
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x407b8c
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x407b9c
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x407bac
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x407bbc
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x407bcc
push ebx
call fcn.0040ae52
add esp, 4
lea eax, [ebp - 0x24]
push eax
call fcn.00402893
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x407be8
push ebx
call fcn.0040ae52
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x407bfc
push ebx
call fcn.0040ae52
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x407d2c
push 0x48a9d7
push dword [ebp - 8]
call fcn.004010d7
add esp, 8
cmp eax, 0
jne 0x407d2c
push str.g_f0cmd30day3gift0gift_get1
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 - 0xc], eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 1
mov eax, 0x48a9aa
mov dword [ebp - 0x14], eax
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.004013b6
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x407ca8
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x407cb8
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x407cc8
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x407cd8
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x407ce8
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x407cf8
push ebx
call fcn.0040ae52
add esp, 4
lea eax, [ebp - 0x24]
push eax
call fcn.00402893
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x407d14
push ebx
call fcn.0040ae52
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x407d28
push ebx
call fcn.0040ae52
add esp, 4
pop eax
mov dword [ebp - 4], eax
push closesocket
push 0
push 0
push 0
push 0
push 0
push getpeername
push 0
push 0x48aa00
push getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x407d5d
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 0x407dcf
push 0
push 0
push 0xffffffffffffffff
push 0x12
push 0x16011564
push 0x52010001
call fcn.0040ae64
add esp, 0x18
push 0
push 0
push 0
push 0x80000301
push 0
push 0x30
push getpeername
push 0
push 0x48aa15
push 3
mov ebx, 0x40c250
call fcn.0040ae58
add esp, 0x28
jmp 0x407e1c
push 0
push 0
push 0
push 0x80000301
push 0
push 0x40
push getpeername
push 0
push 0x48aa20
push 3
mov ebx, 0x40c250
call fcn.0040ae58
add esp, 0x28
push 0
push 0
push 0xffffffffffffffff
push 0x12
push 0x16011564
push 0x52010001
call fcn.0040ae64
add esp, 0x18
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x407e2c
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x407e3c
push ebx
call fcn.0040ae52
add esp, 4
mov esp, ebp
pop ebp
ret