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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0x80000301
push 0
push dword [ebp + 8]
push 0x30004
push 0x16010e9a
push 0x52010001
push 2
mov eax, 2
mov ebx, 0x47e0b0
call fcn.00416359
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jne 0x4088a3
xor ecx, ecx
lea eax, [ebp - 4]
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 0x3e7
jg 0x4088a0
cmp dword [0x852804], 0
jne 0x408894
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x417ba0
call fcn.0041634d
add esp, 0x10
mov dword [ebp - 0x10], eax
push 0x4d03f0
push dword [ebp - 0x10]
push 0x4d03f9
mov ecx, 3
call fcn.004020f3
add esp, 0xc
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x407f20
push ebx
call fcn.00416347
add esp, 4
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x407f33
mov eax, 0x4b8f20
push eax
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp + 8]
push 0x30004
push 0x16010e9a
push 0x52010001
push 4
mov eax, 2
mov ebx, 0x47e280
call fcn.00416359
add esp, 0x34
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x407f80
push ebx
call fcn.00416347
add esp, 4
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp + 8]
push 0x30004
push 0x16010e9a
push 0x52010001
push 3
mov eax, 2
mov ebx, 0x47e090
call fcn.00416359
add esp, 0x28
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x18], 0
push 0
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
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
push eax
push 1
mov eax, str.User_Agent:_Mozilla_5.0__iPhone__CPU_iPhone_OS_8_1_1_like_Mac_OS_X__AppleWebKit_600.1.4__KHTML__like_Gecko__Mobile_12B436_MicroMessenger_6.0.2_NetType_WIFI_r_n
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
push 1
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
push 1
push 0
mov eax, str.http:__weixin.telunsu.net_RedEnvelope_index.aspx_usertype
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
call fcn.004088c9
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x408058
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x408068
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x408078
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x408088
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x408098
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4080a8
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4080b8
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4080c8
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4080d8
push ebx
call fcn.00416347
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4080ec
push ebx
call fcn.00416347
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov eax, 0x4d04d7
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, str..aspx_action
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00403d77
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40813c
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40814c
push ebx
call fcn.00416347
add esp, 4
push 0x3e7
push 0x64
call fcn.0040b2fc
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x417ba0
call fcn.0041634d
add esp, 0x10
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
push str.t0.3587857326492
push dword [ebp - 0x20]
push str.http:__weixin.telunsu.net_RedEnvelope_Ajax.aspx_action
mov ecx, 4
call fcn.004020f3
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4081a8
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4081b8
push ebx
call fcn.00416347
add esp, 4
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp + 8]
push 0x30004
push 0x16010e9a
push 0x52010001
push 3
mov eax, 2
mov ebx, 0x47e090
call fcn.00416359
add esp, 0x28
mov dword [ebp - 0x30], 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
mov dword [ebp - 0x3c], 0
push 0
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
lea eax, [ebp - 0x44]
push eax
push 1
mov eax, str.User_Agent:_Mozilla_5.0__iPhone__CPU_iPhone_OS_8_1_1_like_Mac_OS_X__AppleWebKit_600.1.4__KHTML__like_Gecko__Mobile_12B436_MicroMessenger_6.0.2_NetType_WIFI_r_n
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x4c], 0
push 0
lea eax, [ebp - 0x4c]
push eax
push 1
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x50], 0
push 0
lea eax, [ebp - 0x50]
push eax
push 1
push 1
lea eax, [ebp - 0x2c]
push eax
call fcn.004088c9
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x408288
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x408298
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4082a8
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x4082b8
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x4082c8
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x4082d8
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4082e8
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4082f8
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x408308
push ebx
call fcn.00416347
add esp, 4
mov eax, dword [ebp - 0x54]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40831c
push ebx
call fcn.00416347
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
fild dword [ebp + 8]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fadd qword [0x4b8f2c]
fstp qword [ebp - 0x1c]
push 0x80000601
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 1
mov ebx, 0x417ba0
call fcn.0041634d
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x417ba0
call fcn.0041634d
add esp, 0x10
mov dword [ebp - 0x24], eax
push 0x4b8f29
push dword [ebp - 0xc]
push 0x4d0534
push dword [ebp - 0x24]
push 0x4d053e
push dword [ebp - 0x20]
push 0x4d03f9
mov ecx, 7
call fcn.004020f3
add esp, 0x1c
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4083ae
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4083be
push ebx
call fcn.00416347
add esp, 4
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x4083d1
mov eax, 0x4b8f20
push eax
push 0x10005
push 0x16011325
push 0x52010001
push 2
mov ebx, 0x418c30
call fcn.0041634d
add esp, 0x1c
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x408403
push ebx
call fcn.00416347
add esp, 4
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x417ba0
call fcn.0041634d
add esp, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp - 0xc]
push 0x4d054a
push dword [ebp - 0x10]
push 0x4d03f9
mov ecx, 4
call fcn.004020f3
add esp, 0x10
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x408452
push ebx
call fcn.00416347
add esp, 4
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x408465
mov eax, 0x4b8f20
push eax
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp + 8]
push 0x30004
push 0x16010e9a
push 0x52010001
push 4
mov eax, 2
mov ebx, 0x47e280
call fcn.00416359
add esp, 0x34
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4084b2
push ebx
call fcn.00416347
add esp, 4
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.packempty
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4084e3
mov eax, 0x4b8f20
push eax
push 4
mov ebx, 0x416bf0
call fcn.0041634d
add esp, 0x34
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x408555
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x4d055f
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp + 8]
push 0x30004
push 0x16010e9a
push 0x52010001
push 4
mov eax, 2
mov ebx, 0x47e280
call fcn.00416359
add esp, 0x34
jmp 0x4088a0
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.nopack
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x408586
mov eax, 0x4b8f20
push eax
push 4
mov ebx, 0x416bf0
call fcn.0041634d
add esp, 0x34
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x40868f
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x4d057d
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp + 8]
push 0x30004
push 0x16010e9a
push 0x52010001
push 4
mov eax, 2
mov ebx, 0x47e280
call fcn.00416359
add esp, 0x34
fild dword [ebp + 8]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fadd qword [0x4b8f2c]
fstp qword [ebp - 0x1c]
push 0x80000601
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 1
mov ebx, 0x417ba0
call fcn.0041634d
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0xc]
push 0x4d058a
push dword [ebp - 0x20]
push 0x4d03f9
mov ecx, 4
call fcn.004020f3
add esp, 0x10
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x408650
push ebx
call fcn.00416347
add esp, 4
mov eax, 0x4d0592
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00404038
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x408675
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x408685
push ebx
call fcn.00416347
add esp, 4
jmp 0x4088a0
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x4d059b
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4086c0
mov eax, 0x4b8f20
push eax
push 4
mov ebx, 0x416bf0
call fcn.0041634d
add esp, 0x34
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x408732
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x4d05a6
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp + 8]
push 0x30004
push 0x16010e9a
push 0x52010001
push 4
mov eax, 2
mov ebx, 0x47e280
call fcn.00416359
add esp, 0x34
jmp 0x4088a0
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.awarover
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x408763
mov eax, 0x4b8f20
push eax
push 4
mov ebx, 0x416bf0
call fcn.0041634d
add esp, 0x34
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x4087d5
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x4d05bc
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp + 8]
push 0x30004
push 0x16010e9a
push 0x52010001
push 4
mov eax, 2
mov ebx, 0x47e280
call fcn.00416359
add esp, 0x34
jmp 0x4088a0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x4d05d0
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp + 8]
push 0x30004
push 0x16010e9a
push 0x52010001
push 4
mov eax, 2
mov ebx, 0x47e280
call fcn.00416359
add esp, 0x34
push 0xffffffffffffffff
push 8
push 0x160112a0
push 0x52010001
call fcn.0041635f
add esp, 0x10
mov dword [ebp - 0x10], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x408849
mov eax, 0x4b8f20
push eax
push 1
mov ebx, 0x416dc0
call fcn.0041634d
add esp, 0x10
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40886f
push ebx
call fcn.00416347
add esp, 4
fild dword [ebp - 0x14]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fmul qword [0x4d05e6]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.0040184f
push eax
call fcn.00407d07
jmp 0x408899
jmp 0x4088a0
pop ebx
pop ecx
jmp 0x407eb6
add esp, 8
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4088b3
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4088c3
push ebx
call fcn.00416347
add esp, 4
mov esp, ebp
pop ebp
ret 4