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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 4], 0
push 8
call fcn.0040f0f9
add esp, 4
mov dword [ebp - 8], eax
mov edi, eax
mov esi, 0x487fe5
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
push 0xffffffffffffffff
push 8
push 0x16012556
push 0x52010001
call fcn.0040f111
add esp, 0x10
mov dword [ebp - 0x28], eax
push dword [0x551304]
push 0x487fed
push dword [ebp - 0x28]
push str.http:__qqpet.wapsns.3g.qq.com_qqpet_fcgi_bin_phone_pet_petid0cmd1g_f160B_UID
mov ecx, 4
call fcn.00401096
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4014e8
push ebx
call fcn.0040f0f3
add esp, 4
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
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 - 0x38], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x3c], 0
push 0
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x40], 0
push 0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00401eed
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x401546
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x401556
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x401566
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x401576
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x401586
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x401596
push ebx
call fcn.0040f0f3
add esp, 4
lea eax, [ebp - 0x44]
push eax
call fcn.004033a3
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x4015b2
push ebx
call fcn.0040f0f3
add esp, 4
mov eax, dword [ebp - 0x48]
push eax
mov ebx, dword [0x551300]
test ebx, ebx
je 0x4015c9
push ebx
call fcn.0040f0f3
add esp, 4
pop eax
mov dword [0x551300], eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov eax, str.g_f
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
mov eax, 0x4880e0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
push 0x551300
call fcn.00403c66
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40161c
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40162c
push ebx
call fcn.0040f0f3
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [0x551308]
test ebx, ebx
je 0x401643
push ebx
call fcn.0040f0f3
add esp, 4
pop eax
mov dword [0x551308], eax
push 0x80000002
push 0
push 0
push 0
push 0
push 0
push 0x80000004
push 0
push 0x4880e7
push 0x80000004
push 0
mov eax, dword [0x551300]
test eax, eax
jne 0x40167c
mov eax, 0x487fe4
push eax
push 4
mov ebx, 0x40f7b0
call fcn.0040f0ff
add esp, 0x34
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x4016d7
push 0x80000004
push 0
push 0x4880fc
push 0x80000301
push 0
push 0x40
push 0x80000004
push 0
push 0x488107
push 3
mov ebx, 0x410910
call fcn.0040f0ff
add esp, 0x28
jmp 0x401d60
push 0x80000002
push 0
push 0
push 0
push 0
push 0
push 0x80000004
push 0
push 0x488122
push 0x80000004
push 0
mov eax, dword [0x551300]
test eax, eax
jne 0x40170a
mov eax, 0x487fe4
push eax
push 4
mov ebx, 0x40f7b0
call fcn.0040f0ff
add esp, 0x34
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x401798
push 0x80000004
push 0
push 0x4880fc
push 0x80000301
push 0
push 0x40
push 0x80000004
push 0
push 0x488139
push 3
mov ebx, 0x410910
call fcn.0040f0ff
add esp, 0x28
push 0x80000002
push 0
push 0
push 0
push 0
push 0
push 0x10001
push 0x6011acc
push 0x52011acd
push 3
mov ebx, 0x40f410
call fcn.0040f0ff
add esp, 0x28
jmp 0x401d60
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov eax, str.__html_
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
mov eax, 0x488166
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
push 0x551300
call fcn.00403c66
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x4017e5
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4017f5
push ebx
call fcn.0040f0f3
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x401809
push ebx
call fcn.0040f0f3
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
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
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
push 1
lea eax, [ebp - 8]
push eax
mov eax, str._br__
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
mov eax, 0x488177
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00403f40
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x40189a
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x4018aa
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4018ba
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x4018ca
push ebx
call fcn.0040f0f3
add esp, 4
xor ecx, ecx
lea eax, [ebp - 0xc]
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 5
jg 0x40199b
push 0x80000301
push 0
push dword [ebp - 0xc]
push 0x10001
push 0x6010000
push 0x52010001
push 2
mov ebx, 0x410ee0
call fcn.0040f0ff
add esp, 0x1c
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x1000a
je 0x40192b
push 5
call fcn.0040f10b
add esp, 4
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], edx
mov ebx, dword [ebp - 8]
call fcn.00401418
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x401960
push 4
call fcn.0040f10b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x401973
push 1
call fcn.0040f10b
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x30], ebx
push 0
mov ebx, dword [ebp - 0x30]
push dword [ebx]
push 0xffffffffffffffff
push 8
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0040f117
add esp, 0x18
pop ebx
pop ecx
jmp 0x4018d1
add esp, 8
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov eax, str.__img
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
mov eax, 0x488180
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
push 0x551300
call fcn.00403c66
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x4019eb
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4019fb
push ebx
call fcn.0040f0f3
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x401a0f
push ebx
call fcn.0040f0f3
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push 0
push dword [ebp - 0x18]
push 0xffffffffffffffff
push 8
push 0x16012545
push 0x52010001
call fcn.0040f117
add esp, 0x18
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov eax, str._br__
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
mov eax, 0x488187
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
push 0x551300
call fcn.00403c66
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x401a7b
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x401a8b
push ebx
call fcn.0040f0f3
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x401a9f
push ebx
call fcn.0040f0f3
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
push 0
push dword [ebp - 0x1c]
push 0xffffffffffffffff
push 8
push 0x1601253d
push 0x52010001
call fcn.0040f117
add esp, 0x18
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov eax, str._P___P__a
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
mov eax, 0x488198
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
push 0x551300
call fcn.00403c66
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x401b0b
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x401b1b
push ebx
call fcn.0040f0f3
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x401b2f
push ebx
call fcn.0040f0f3
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
push 0
push dword [ebp - 0x20]
push 0xffffffffffffffff
push 8
push 0x1601253f
push 0x52010001
call fcn.0040f117
add esp, 0x18
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov eax, 0x48819f
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
mov eax, 0x4881a4
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
push 0x551300
call fcn.00403c66
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x401b9b
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x401bab
push ebx
call fcn.0040f0f3
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x401bbf
push ebx
call fcn.0040f0f3
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
push 0
push dword [ebp - 0x24]
push 0xffffffffffffffff
push 8
push 0x1601253e
push 0x52010001
call fcn.0040f117
add esp, 0x18
push 0x80000002
push 0
push 0
push 0
push 0
push 0
push 0x80000004
push 0
push 0x4881af
push 0x80000004
push 0
mov eax, dword [0x551300]
test eax, eax
jne 0x401c11
mov eax, 0x487fe4
push eax
push 4
mov ebx, 0x40f7b0
call fcn.0040f0ff
add esp, 0x34
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x401d43
push 0
push 0
push 0xffffffffffffffff
push 6
push 0x16012537
push 0x52010001
call fcn.0040f117
add esp, 0x18
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov eax, 0x4881b8
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
mov eax, 0x4881c0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
push 0x551300
call fcn.00403c66
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x401c9b
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x401cab
push ebx
call fcn.0040f0f3
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [0x55130c]
test ebx, ebx
je 0x401cc2
push ebx
call fcn.0040f0f3
add esp, 4
pop eax
mov dword [0x55130c], eax
push 0x80000002
push 0
push 1
mov ebx, 6
call fcn.00401438
push 0x80000004
push 0
push 0x4881cf
push 0x80000004
push 0
push str.amp_
push 0x80000004
push 0
mov eax, dword [0x55130c]
test eax, eax
jne 0x401d0b
mov eax, 0x487fe4
push eax
push 6
mov ebx, 0x40fed0
call fcn.0040f0ff
add esp, 0x4c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [0x55130c]
test ebx, ebx
je 0x401d38
push ebx
call fcn.0040f0f3
add esp, 4
pop eax
mov dword [0x55130c], eax
jmp 0x401d60
push 0
push 1
push 0xffffffffffffffff
push 6
push 0x16012537
push 0x52010001
call fcn.0040f117
add esp, 0x18
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x401d70
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x401d8e
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x401d8a
imul eax, dword [ebx]
jmp 0x401d7f
mov ecx, eax
test ecx, ecx
je 0x401dad
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x401da6
push ebx
push eax
call fcn.0040f0f3
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x401d94
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x401dc5
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x401dd5
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x401de5
push ebx
call fcn.0040f0f3
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x401df5
push ebx
call fcn.0040f0f3
add esp, 4
mov esp, ebp
pop ebp
ret