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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.0040f0ac
add esp, 4
mov dword [ebp - 0xc], 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 - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
push dword [0x574610]
push str.http:__qqpet.wapsns.3g.qq.com_qqpet_fcgi_bin_phone_pet_petid0cmd1g_f160sid
mov ecx, 2
call fcn.00401277
add esp, 8
mov dword [ebp - 0x2c], eax
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.00401921
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x403d62
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x403d72
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x403d82
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x403d92
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x403da2
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x403db2
push ebx
call fcn.0040f0b2
add esp, 4
lea eax, [ebp - 0x44]
push eax
call fcn.00402dfe
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x403dce
push ebx
call fcn.0040f0b2
add esp, 4
mov eax, dword [ebp - 0x48]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x403de2
push ebx
call fcn.0040f0b2
add esp, 4
pop eax
mov dword [ebp - 4], eax
push getpeername
push 0
push 0
push 0
push 0
push 0
push getpeername
push 0
push 0x485d89
push getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x403e17
mov eax, 0x48590c
push eax
push 4
mov ebx, 0x40f750
call fcn.0040f0b8
add esp, 0x34
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x403ea8
push 0
push 0
push 0
push 0x80000301
push 0
push 0x40
push getpeername
push 0
push 0x485da1
push 3
mov ebx, 0x410ab0
call fcn.0040f0b8
add esp, 0x28
push getpeername
push 0
push 1
push 0x10001
push 0x6010000
push 0x52010001
push 0x10001
push 0x601128b
push 0x5201128c
push 3
mov ebx, 0x40f3a0
call fcn.0040f0b8
add esp, 0x28
jmp 0x40451b
mov eax, str.__html_
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x485dda
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004036c1
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x403edc
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x403eec
push ebx
call fcn.0040f0b2
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403f00
push ebx
call fcn.0040f0b2
add esp, 4
pop eax
mov dword [ebp - 8], eax
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 - 0xc]
push eax
mov eax, str._br__
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
mov eax, 0x485ded
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004045dd
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x403f85
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x403f95
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x403fa5
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x403fb5
push ebx
call fcn.0040f0b2
add esp, 4
xor ecx, ecx
lea eax, [ebp - 0x10]
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 5
jg 0x404086
push 0x80000301
push 0
push dword [ebp - 0x10]
push 0x10001
push 0x6010000
push 0x52010001
push 2
mov ebx, 0x411020
call fcn.0040f0b8
add esp, 0x1c
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x1000a
je 0x404016
push 5
call fcn.0040f0ca
add esp, 4
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edx
mov ebx, dword [ebp - 0xc]
call fcn.00403c66
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x40404b
push 4
call fcn.0040f0ca
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40405e
push 1
call fcn.0040f0ca
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
push 0
mov ebx, dword [ebp - 0x34]
push dword [ebx]
push 0xffffffffffffffff
push 8
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call fcn.0040f0d0
add esp, 0x18
pop ebx
pop ecx
jmp 0x403fbc
add esp, 8
mov eax, str.__img_src
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x485ded
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004036c1
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4040bd
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4040cd
push ebx
call fcn.0040f0b2
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4040e1
push ebx
call fcn.0040f0b2
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
mov eax, 0x485dfb
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x485dfd
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004036c1
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x404119
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x404129
push ebx
call fcn.0040f0b2
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40413d
push ebx
call fcn.0040f0b2
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov eax, str._P___P_
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x485e0c
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004036c1
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x404175
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x404185
push ebx
call fcn.0040f0b2
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x404199
push ebx
call fcn.0040f0b2
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
mov eax, 0x485e13
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x485e18
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004036c1
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4041d1
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4041e1
push ebx
call fcn.0040f0b2
add esp, 4
push 0x485e13
push dword [ebp - 0x34]
mov ecx, 2
call fcn.00401277
add esp, 8
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x404209
push ebx
call fcn.0040f0b2
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40421d
push ebx
call fcn.0040f0b2
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
push 0
push dword [ebp - 0x1c]
push 0xffffffffffffffff
push 8
push 0x16011224
push 0x52010001
call fcn.0040f0d0
add esp, 0x18
push 0
push dword [ebp - 0x20]
push 0xffffffffffffffff
push 8
push 0x16011226
push 0x52010001
call fcn.0040f0d0
add esp, 0x18
push 0
push dword [ebp - 0x24]
push 0xffffffffffffffff
push 8
push 0x16011225
push 0x52010001
call fcn.0040f0d0
add esp, 0x18
push 0
push dword [ebp - 0x28]
push 0xffffffffffffffff
push 8
push 0x1601122c
push 0x52010001
call fcn.0040f0d0
add esp, 0x18
mov eax, str.g_f
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, str.petid
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004036c1
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4042c1
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4042d1
push ebx
call fcn.0040f0b2
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [0x574614]
test ebx, ebx
je 0x4042e8
push ebx
call fcn.0040f0b2
add esp, 4
pop eax
mov dword [0x574614], eax
push getpeername
push 0
push 0
push 0
push 0
push 0
push getpeername
push 0
push 0x485e31
push getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40431f
mov eax, 0x48590c
push eax
push 4
mov ebx, 0x40f750
call fcn.0040f0b8
add esp, 0x34
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x4044df
push 0
push 0
push 0xffffffffffffffff
push 6
push 0x160112db
push 0x52010001
call fcn.0040f0d0
add esp, 0x18
mov eax, str._a_href
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x485e31
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004036c1
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x404390
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4043a0
push ebx
call fcn.0040f0b2
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [0x574620]
test ebx, ebx
je 0x4043b7
push ebx
call fcn.0040f0b2
add esp, 4
pop eax
mov dword [0x574620], eax
push dword [0x574620]
push 0x485e43
mov ecx, 2
call fcn.00401277
add esp, 8
mov dword [ebp - 0x2c], eax
push 0
push dword [ebp - 0x2c]
push 0xffffffffffffffff
push 8
push 0x16011225
push 0x52010001
call fcn.0040f0d0
add esp, 0x18
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x404403
push ebx
call fcn.0040f0b2
add esp, 4
mov eax, 0x485e46
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x485e4d
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004036c1
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x404437
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x404447
push ebx
call fcn.0040f0b2
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [0x574624]
test ebx, ebx
je 0x40445e
push ebx
call fcn.0040f0b2
add esp, 4
pop eax
mov dword [0x574624], eax
push getpeername
push 0
push 1
mov ebx, 6
call fcn.00403c0d
push getpeername
push 0
push 0x485e5c
push getpeername
push 0
push str.amp_
push getpeername
push 0
mov eax, dword [0x574624]
test eax, eax
jne 0x4044a7
mov eax, 0x48590c
push eax
push 6
mov ebx, 0x40fe40
call fcn.0040f0b8
add esp, 0x4c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [0x574624]
test ebx, ebx
je 0x4044d4
push ebx
call fcn.0040f0b2
add esp, 4
pop eax
mov dword [0x574624], eax
jmp 0x40451b
push 0
push 1
push 0xffffffffffffffff
push 6
push 0x160112db
push 0x52010001
call fcn.0040f0d0
add esp, 0x18
mov eax, 0x485e64
push eax
mov ebx, dword [0x574620]
test ebx, ebx
je 0x404515
push ebx
call fcn.0040f0b2
add esp, 4
pop eax
mov dword [0x574620], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40452b
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40453b
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x404559
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x404555
imul eax, dword [ebx]
jmp 0x40454a
mov ecx, eax
test ecx, ecx
je 0x404578
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x404571
push ebx
push eax
call fcn.0040f0b2
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40455f
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x404590
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4045a0
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4045b0
push ebx
call fcn.0040f0b2
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4045c0
push ebx
call fcn.0040f0b2
add esp, 4
mov esp, ebp
pop ebp
ret