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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.00416335
add esp, 4
mov dword [ebp - 0xc], eax
mov edi, eax
mov esi, 0x4b8f21
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 - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
push 0x82142b
push dword [ebp - 4]
call fcn.0040214f
add esp, 8
cmp eax, 0
je 0x411da7
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__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 - 0x34], eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x38], 0
push 0
lea eax, [ebp - 0x38]
push eax
push 1
mov eax, str.ASP.NET_SessionIdkv3g5ieojxbpxd550g1o4n55__guidguidvaluee37b0247_3787_48ad_b912_1f7ef0df598f__openidoeJiXjpHk8Xd57F52ot6NEPqrlNM
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x40], 0
push 0
lea eax, [ebp - 0x40]
push eax
push 1
push 0
mov eax, str.http:__weixin.telunsu.net_RedEnvelope_RedEnvelopeFighting.aspx_usertype
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
call fcn.004088c9
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x41171b
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x41172b
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x41173b
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x41174b
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x41175b
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x41176b
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41177b
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41178b
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41179b
push ebx
call fcn.00416347
add esp, 4
mov eax, dword [ebp - 0x48]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4117af
push ebx
call fcn.00416347
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov eax, str.______________p__r_n_____________p_class_HbFANum_HbFANum2__
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov eax, str._____________p_class_HbFANum_HbFANum1__
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00403d77
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4117ff
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41180f
push ebx
call fcn.00416347
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x411823
push ebx
call fcn.00416347
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.__span_
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x41184c
mov eax, 0x4b8f20
push eax
push 3
mov ebx, 0x4172f0
call fcn.0041634d
add esp, 0x28
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x411884
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x411880
imul eax, dword [ebx]
jmp 0x411875
mov ecx, eax
test ecx, ecx
je 0x4118a3
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x41189c
push ebx
push eax
call fcn.00416347
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x41188a
call fcn.00416347
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0xc]
call fcn.00401004
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x417ba0
call fcn.0041634d
add esp, 0x10
mov dword [ebp - 0x24], eax
push 0x821567
push dword [ebp - 0x24]
call fcn.0040214f
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x411902
push ebx
call fcn.00416347
add esp, 4
cmp dword [ebp - 0x28], 0
je 0x411911
jmp 0x411661
push 0x4b8f20
push dword [ebp - 4]
call fcn.0040214f
add esp, 8
cmp eax, 0
jne 0x41192f
jmp 0x411661
xor ecx, ecx
lea eax, [ebp - 0x10]
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 8
jg 0x411a08
mov ebx, dword [ebp - 0xc]
call fcn.00401025
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x411961
push 4
call fcn.0041633b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x411974
push 1
call fcn.0041633b
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov eax, str.pan_class_HbFANumSp__
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x20]
call fcn.00411e42
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4119bb
push ebx
call fcn.00416347
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4119cf
push ebx
call fcn.00416347
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov ecx, 2
call fcn.004020f3
add esp, 8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4119fd
push ebx
call fcn.00416347
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
pop ebx
pop ecx
jmp 0x411936
add esp, 8
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x411a1e
mov eax, 0x4b8f20
push eax
push 1
mov ebx, 0x416dc0
call fcn.0041634d
add esp, 0x10
mov dword [ebp - 0x20], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x411a47
mov eax, 0x4b8f20
push eax
push 1
mov ebx, 0x416dc0
call fcn.0041634d
add esp, 0x10
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x20]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fild dword [ebp - 0x24]
fstp qword [ebp - 0x34]
fsub qword [ebp - 0x34]
fstp qword [ebp - 0x3c]
push 0x80000601
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push 1
mov ebx, 0x417ba0
call fcn.0041634d
add esp, 0x10
mov dword [ebp - 0x40], eax
push 0x4b8f29
push dword [ebp - 0x40]
push str.____5
push dword [ebp - 0x18]
push 0x821592
mov ecx, 5
call fcn.004020f3
add esp, 0x14
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x411ac7
push ebx
call fcn.00416347
add esp, 4
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x411ada
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 - 0x44]
test ebx, ebx
je 0x411b0c
push ebx
call fcn.00416347
add esp, 4
push 0x4b8f20
push dword [ebp - 0x1c]
call fcn.0040214f
add esp, 8
cmp eax, 0
je 0x411c02
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x411b38
mov eax, 0x4b8f20
push eax
push 1
mov ebx, 0x416dc0
call fcn.0041634d
add esp, 0x10
mov dword [ebp - 0x24], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x411b61
mov eax, 0x4b8f20
push eax
push 1
mov ebx, 0x416dc0
call fcn.0041634d
add esp, 0x10
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x24]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fild dword [ebp - 0x28]
fstp qword [ebp - 0x38]
fsub qword [ebp - 0x38]
fstp qword [ebp - 0x40]
push 0xffffffffffffffff
push 8
push 0x1601f111
push 0x52010001
call fcn.0041635f
add esp, 0x10
mov dword [ebp - 0x44], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x411bb8
mov eax, 0x4b8f20
push eax
push 1
mov ebx, 0x416dc0
call fcn.0041634d
add esp, 0x10
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x411bde
push ebx
call fcn.00416347
add esp, 4
fild dword [ebp - 0x48]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x40]
fsub qword [ebp - 0x50]
fcomp qword [0x81f48b]
fnstsw ax
test ah, 0x41
jne 0x411c02
mov eax, 1
jmp 0x411c07
mov eax, 0
test eax, eax
je 0x411d4d
push 0xffffffffffffffff
push 0x12
push 0x1601b8ff
push 0x52010001
call fcn.0041635f
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 1
jne 0x411c5c
push 0xffffffffffffffff
push 0x12
push 0x1601b8fb
push 0x52010001
call fcn.0041635f
add esp, 0x10
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 1
jne 0x411c5c
mov eax, 1
jmp 0x411c61
mov eax, 0
test eax, eax
je 0x411cb3
call fcn.00407a41
push 0
push 0
push 0
push reloc.WS2_32.dll_getpeername
push 0
push 0x4d08dd
push 2
mov ebx, 0x418590
call fcn.0041634d
add esp, 0x1c
push 0xea60
call fcn.00407d07
call fcn.00407a41
push 0
mov ebx, 0x418670
call fcn.0041634d
add esp, 4
push 0xffffffffffffffff
push 0x12
push 0x1601b8fb
push 0x52010001
call fcn.0041635f
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 1
jne 0x411d16
push 0
push 0
push 0
push reloc.WS2_32.dll_getpeername
push 0
push 0x4d08dd
push 2
mov ebx, 0x418590
call fcn.0041634d
add esp, 0x1c
push 0xea60
call fcn.00407d07
push 0
mov ebx, 0x418670
call fcn.0041634d
add esp, 4
push 0xffffffffffffffff
push 0x12
push 0x1601b8ff
push 0x52010001
call fcn.0041635f
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 1
jne 0x411d4d
call fcn.00407a41
push 0xea60
call fcn.00407d07
call fcn.00407a41
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x411d69
push eax
mov ebx, eax
call fcn.00401381
inc eax
push eax
call fcn.00416335
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x411d7a
push ebx
call fcn.00416347
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
mov eax, 0x4b8f20
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x411d94
push ebx
call fcn.00416347
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push 0x1388
call fcn.00407d07
jmp 0x411661
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x411db7
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x411dc7
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x411de5
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x411de1
imul eax, dword [ebx]
jmp 0x411dd6
mov ecx, eax
test ecx, ecx
je 0x411e04
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x411dfd
push ebx
push eax
call fcn.00416347
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x411deb
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x411e1c
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x411e2c
push ebx
call fcn.00416347
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x411e3c
push ebx
call fcn.00416347
add esp, 4
mov esp, ebp
pop ebp
ret 4