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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 8
call fcn.0040f0ac
add esp, 4
mov dword [ebp - 0x14], eax
mov edi, eax
mov esi, 0x485c4d
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push 8
call fcn.0040f0ac
add esp, 4
mov dword [ebp - 0x18], eax
mov edi, eax
mov esi, 0x485c4d
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
push 0x40004
push 0x16011364
push 0x52011363
push 1
mov eax, 3
mov ebx, 0x45d020
call fcn.0040f0be
add esp, 0x10
push str.g_f160cmd3eatwash0feed0page1storage0
push dword [0x574614]
push 0x485924
push dword [0x574610]
push str.http:__qqpet.wapsns.3g.qq.com_qqpet_fcgi_bin_phone_pet_sid
mov ecx, 5
call fcn.00401277
add esp, 0x14
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
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 - 0x30], eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x38], 0
push 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00401921
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x409626
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x409636
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x409646
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x409656
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x409666
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x409676
push ebx
call fcn.0040f0b2
add esp, 4
lea eax, [ebp - 0x3c]
push eax
call fcn.00402dfe
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x409692
push ebx
call fcn.0040f0b2
add esp, 4
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4096a6
push ebx
call fcn.0040f0b2
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, 0x54d607
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov eax, 0x54d60d
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004036c1
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4096de
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4096ee
push ebx
call fcn.0040f0b2
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x409702
push ebx
call fcn.0040f0b2
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov eax, 0x48590c
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40971c
push ebx
call fcn.0040f0b2
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0x48590c
push dword [ebp - 8]
call fcn.00401004
add esp, 8
cmp eax, 0
jne 0x409795
mov eax, str._a_href
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov eax, 0x54d60d
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004036c1
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40976d
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40977d
push ebx
call fcn.0040f0b2
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x409791
push ebx
call fcn.0040f0b2
add esp, 4
pop eax
mov dword [ebp - 8], eax
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4097a8
mov eax, 0x48590c
push eax
push 1
mov ebx, 0x40fd70
call fcn.0040f0b8
add esp, 0x10
mov dword [ebp - 0x24], eax
push getpeername
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4097d1
mov eax, 0x48590c
push eax
push 1
mov ebx, 0x40fa70
call fcn.0040f0b8
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4097f7
push ebx
call fcn.0040f0b2
add esp, 4
mov eax, dword [ebp - 0x28]
xor ecx, ecx
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x409be0
push 0x80000301
push 0
push dword [ebp - 0x10]
push 1
mov ebx, 0x410600
call fcn.0040f0b8
add esp, 0x10
mov dword [ebp - 0x24], eax
push str.storage0
push dword [ebp - 0x24]
push str.g_f160cmd3eatwash0feed0page
push dword [0x574614]
push 0x485924
push dword [0x574610]
push str.http:__qqpet.wapsns.3g.qq.com_qqpet_fcgi_bin_phone_pet_sid
mov ecx, 7
call fcn.00401277
add esp, 0x1c
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x409873
push ebx
call fcn.0040f0b2
add esp, 4
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
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 - 0x34], eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x38], 0
push 0
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x3c], 0
push 0
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00401921
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4098d1
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4098e1
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4098f1
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x409901
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x409911
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x409921
push ebx
call fcn.0040f0b2
add esp, 4
lea eax, [ebp - 0x40]
push eax
call fcn.00402dfe
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40993d
push ebx
call fcn.0040f0b2
add esp, 4
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x409951
push ebx
call fcn.0040f0b2
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
push 1
lea eax, [ebp - 0x14]
push eax
mov eax, 0x54d64f
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x54d5ce
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004045dd
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x4099d6
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4099e6
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4099f6
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x409a06
push ebx
call fcn.0040f0b2
add esp, 4
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
push 1
lea eax, [ebp - 0x18]
push eax
mov eax, str._br___a
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
mov eax, str.__P_
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004045dd
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x409a87
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x409a97
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x409aa7
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x409ab7
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x18]
call fcn.004045c4
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x2c]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fsub qword [0x485c5f]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.004023ec
xor ecx, ecx
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x409bd5
mov ebx, dword [ebp - 0x18]
call fcn.00403c66
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x409b10
push 4
call fcn.0040f0ca
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x409b23
push 1
call fcn.0040f0ca
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
push 0x485bdc
mov ebx, dword [ebp - 0x24]
push dword [ebx]
push dword [ebp - 0xc]
mov ecx, 3
call fcn.00401277
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x409b5c
push ebx
call fcn.0040f0b2
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0x14]
call fcn.00403c66
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x409b7d
push 4
call fcn.0040f0ca
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x409b90
push 1
call fcn.0040f0ca
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
push 0x485bdc
mov ebx, dword [ebp - 0x24]
push dword [ebx]
push dword [ebp - 0x1c]
mov ecx, 3
call fcn.00401277
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x409bc9
push ebx
call fcn.0040f0b2
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
pop eax
pop ebx
pop ecx
jmp 0x409ae5
add esp, 0xc
pop eax
pop ebx
pop ecx
jmp 0x409803
add esp, 0xc
push 0
push 0
push 0
push getpeername
push 0
push 0x485bdc
push getpeername
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x409c08
mov eax, 0x48590c
push eax
push 3
mov ebx, 0x410030
call fcn.0040f0b8
add esp, 0x28
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x18]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x409c40
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x409c3c
imul eax, dword [ebx]
jmp 0x409c31
mov ecx, eax
test ecx, ecx
je 0x409c5f
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x409c58
push ebx
push eax
call fcn.0040f0b2
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x409c46
call fcn.0040f0b2
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push getpeername
push 0
push 0x485bdc
push getpeername
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x409c90
mov eax, 0x48590c
push eax
push 3
mov ebx, 0x410030
call fcn.0040f0b8
add esp, 0x28
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x14]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x409cc8
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x409cc4
imul eax, dword [ebx]
jmp 0x409cb9
mov ecx, eax
test ecx, ecx
je 0x409ce7
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x409ce0
push ebx
push eax
call fcn.0040f0b2
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x409cce
call fcn.0040f0b2
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x18]
call fcn.004045c4
xor ecx, ecx
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x409e2b
mov ebx, dword [ebp - 0x18]
call fcn.00403c66
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x409d2f
push 4
call fcn.0040f0ca
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x409d42
push 1
call fcn.0040f0ca
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
mov ebx, 0xc
call fcn.00403c0d
push getpeername
push 0
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x409d69
mov eax, 0x48590c
push eax
push 0
push 0
push 0
push 0x40004
push 0x16011364
push 0x52011363
push 7
mov eax, 3
mov ebx, 0x45cf30
call fcn.0040f0be
add esp, 0x58
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x14]
call fcn.00403c66
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x409db6
push 4
call fcn.0040f0ca
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x409dc9
push 1
call fcn.0040f0ca
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
push getpeername
push 0
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x409de6
mov eax, 0x48590c
push eax
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 0x20]
push 0x40004
push 0x16011364
push 0x52011363
push 4
mov eax, 3
mov ebx, 0x45cf10
call fcn.0040f0be
add esp, 0x34
pop eax
pop ebx
pop ecx
jmp 0x409d04
add esp, 0xc
mov eax, 0x54db1e
push eax
mov ebx, dword [0x574630]
test ebx, ebx
je 0x409e47
push ebx
call fcn.0040f0b2
add esp, 4
pop eax
mov dword [0x574630], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x409e5d
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x409e6d
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x409e7d
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x409e9b
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x409e97
imul eax, dword [ebx]
jmp 0x409e8c
mov ecx, eax
test ecx, ecx
je 0x409eba
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x409eb3
push ebx
push eax
call fcn.0040f0b2
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x409ea1
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x409ee0
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x409edc
imul eax, dword [ebx]
jmp 0x409ed1
mov ecx, eax
test ecx, ecx
je 0x409eff
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x409ef8
push ebx
push eax
call fcn.0040f0b2
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x409ee6
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x409f17
push ebx
call fcn.0040f0b2
add esp, 4
mov esp, ebp
pop ebp
ret