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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 0x30004
push 0x1601410a
push 0x52010001
push 1
mov eax, 2
mov ebx, 0x479010
call fcn.004131b7
add esp, 0x10
xor ecx, ecx
push eax
lea eax, [ebp - 4]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x40b506
fild dword [ebp - 4]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fsub qword [0x4a9632]
fstp qword [ebp - 0x24]
push 0x80000301
push 0
push 1
fld qword [ebp - 0x24]
call fcn.004012a5
push 0x80000301
push 0
push eax
push 0x30004
push 0x1601410a
push 0x52010001
push 3
mov eax, 2
mov ebx, 0x478e20
call fcn.004131b7
add esp, 0x28
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40b026
push ebx
call fcn.0041319f
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0xffffffffffffffff
push 8
push 0x160190fe
push 0x52010001
call fcn.004131c3
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, str._help
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x4b0560
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040287a
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40b077
push ebx
call fcn.0041319f
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40b087
push ebx
call fcn.0041319f
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b097
push ebx
call fcn.0041319f
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40b0ab
push ebx
call fcn.0041319f
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 6
call fcn.0040b54d
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
push str._bonus_bonus35token1430362
push dword [ebp - 0xc]
push 0x4b0560
mov ecx, 4
call fcn.00401080
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40b0ec
push ebx
call fcn.0041319f
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40b100
push ebx
call fcn.0041319f
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0x4a9622
push dword [ebp - 0x10]
mov ecx, 2
call fcn.00401080
add esp, 8
mov dword [ebp - 0x18], eax
push getpeername
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40b12f
mov eax, 0x4a95a0
push eax
push 0x10005
push 0x16010102
push 0x52010001
push 2
mov ebx, 0x4159d0
call fcn.004131b1
add esp, 0x1c
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40b161
push ebx
call fcn.0041319f
add esp, 4
push 0xffffffffffffffff
push 8
push 0x160190fe
push 0x52010001
call fcn.004131c3
add esp, 0x10
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
push str.User_Agent:_Mozilla_5.0__Linux__Android_4.4.2__zh_cn__MX4_Build_KOT49H__AppleWebKit_537.36__KHTML__like_Gecko__Version_4.0_Chrome_30.0.0.0_Mobile_Safari_537.36_MicroMessenger_5.1.360http:__218.249.47.94_Xianghe_MTK_Phone_KK_UAprofile.xml
mov ecx, 2
call fcn.00401080
add esp, 8
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40b1a2
push ebx
call fcn.0041319f
add esp, 4
mov dword [ebp - 0x20], 0
push 0
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
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
push 1
lea eax, [ebp - 8]
push eax
push 1
mov eax, 0x4a95a0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
push 1
push 0
lea eax, [ebp - 0x10]
push eax
call fcn.0040b64d
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40b22c
push ebx
call fcn.0041319f
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40b23c
push ebx
call fcn.0041319f
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b24c
push ebx
call fcn.0041319f
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40b25c
push ebx
call fcn.0041319f
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40b26c
push ebx
call fcn.0041319f
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40b27c
push ebx
call fcn.0041319f
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40b28c
push ebx
call fcn.0041319f
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40b2a0
push ebx
call fcn.0041319f
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fsub qword [0x4a9632]
fstp qword [ebp - 0x24]
push getpeername
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40b2c9
mov eax, 0x4a95a0
push eax
push 0x80000301
push 0
push 2
fld qword [ebp - 0x24]
call fcn.004012a5
push 0x80000301
push 0
push eax
push 0x30004
push 0x1601410a
push 0x52010001
push 4
mov eax, 2
mov ebx, 0x478ff0
call fcn.004131b7
add esp, 0x34
push 0x80000301
push 0
push 0x3e8
push 1
mov eax, 1
mov ebx, 0x478ab0
call fcn.004131b7
add esp, 0x10
push 5
call fcn.0040b54d
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
push str.http:__weixin.yougou.com_activity_finddiff_finddiff_2429a222_534a_c09e_9970_c10aaafbc698_bonus_bonus35token14303628
mov ecx, 2
call fcn.00401080
add esp, 8
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40b364
push ebx
call fcn.0041319f
add esp, 4
mov dword [ebp - 0x20], 0
push 0
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
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
push 1
mov eax, str.User_Agent:_Mozilla_5.0__Linux__Android_4.4.2__zh_cn__MX4_Build_KOT49H__AppleWebKit_537.36__KHTML__like_Gecko__Version_4.0_Chrome_30.0.0.0_Mobile_Safari_537.36_MicroMessenger_5.1.360http:__218.249.47.94_Xianghe_MTK_Phone_KK_UAprofile.xmlhttp:__weixin.yougou.com_activity_finddiff_finddiff_2429a222_534a_c09e_9970_c10aaafbc698_bonus_bonus35token143036282428629a222_534a_c09e_9970_c10aaafbc698_fromsinglemessageisappinstalled0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x38], 0
push 0
lea eax, [ebp - 0x38]
push eax
push 1
lea eax, [ebp - 8]
push eax
push 1
mov eax, 0x4a95a0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push 1
push 0
lea eax, [ebp - 0x1c]
push eax
call fcn.0040b64d
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b3f6
push ebx
call fcn.0041319f
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40b406
push ebx
call fcn.0041319f
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40b416
push ebx
call fcn.0041319f
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40b426
push ebx
call fcn.0041319f
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40b436
push ebx
call fcn.0041319f
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40b446
push ebx
call fcn.0041319f
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40b456
push ebx
call fcn.0041319f
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40b466
push ebx
call fcn.0041319f
add esp, 4
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40b47a
push ebx
call fcn.0041319f
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0x4a9622
push dword [ebp - 0x14]
mov ecx, 2
call fcn.00401080
add esp, 8
mov dword [ebp - 0x18], eax
push getpeername
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40b4a9
mov eax, 0x4a95a0
push eax
push 0x10005
push 0x16010102
push 0x52010001
push 2
mov ebx, 0x4159d0
call fcn.004131b1
add esp, 0x1c
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40b4db
push ebx
call fcn.0041319f
add esp, 4
push 0x80000301
push 0
push 0x3e8
push 1
mov eax, 1
mov ebx, 0x478ab0
call fcn.004131b7
add esp, 0x10
pop eax
pop ebx
pop ecx
jmp 0x40afad
add esp, 0xc
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40b519
push ebx
call fcn.0041319f
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40b529
push ebx
call fcn.0041319f
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40b539
push ebx
call fcn.0041319f
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40b549
push ebx
call fcn.0041319f
add esp, 4
mov esp, ebp
pop ebp
ret