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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
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
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
push 0xc
call fcn.004dc879
add esp, 4
mov dword [ebp - 0x24], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx], 0x58fe19
push ebx
add ebx, 8
push ebx
push 8
call fcn.004dc879
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
pop ebx
pop ebx
push ebx
mov eax, esp
push eax
call fcn.0040bc53
pop ebx
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40ab4a
mov eax, 0x58f37b
push eax
push 1
mov ebx, 0x4dce20
call fcn.004dc885
add esp, 0x10
mov dword [ebp - 0x28], eax
push reloc.WS2_32.dll_bind
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x58fb20
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40ab93
mov eax, 0x58f37b
push eax
push 4
mov ebx, 0x4dd590
call fcn.004dc885
add esp, 0x34
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x28]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fild dword [ebp - 0x2c]
fstp qword [ebp - 0x3c]
fsub qword [ebp - 0x3c]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
call fcn.0040165c
push 0x80000301
push 0
push eax
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40abe3
mov eax, 0x58f37b
push eax
push 2
mov ebx, 0x4dd2c0
call fcn.004dc885
add esp, 0x1c
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40ac0d
push ebx
call fcn.004dc87f
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, str.https:__share.weiyun.com_webapp_json_weiyunShareNoLogin_WeiyunShareView_referunknown_windowsg_tk1234567890
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40ac27
push ebx
call fcn.004dc87f
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 1
call fcn.0040b0e6
mov dword [ebp - 0x28], eax
push 0x58fb90
push dword [ebp - 4]
push str.___share_key_:_
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push str.__type_:1__cmd_:12002__appid_:30113__version_:3__major_version_:3__minor_version_:3__fix_version_:3__wx_openid_:____user_flag_:0___req_body_:__ReqMsg_body_:_ext_req_head_:_token_info_:_token_type_:0__login_key_type_:1__login_key_value_:____language_info_:_language_type_:2052__.weiyun.WeiyunShareViewMsgReq_body_:_share_pwd_:_
push dword [ebp - 0x28]
push str._req_header_:__seq_:
mov ecx, 7
call fcn.0040110c
add esp, 0x1c
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40ac79
push ebx
call fcn.004dc87f
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40ac8d
push ebx
call fcn.004dc87f
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov eax, str.Cookie:wyctoken1234567890
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40aca7
push ebx
call fcn.004dc87f
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push 1
mov eax, str.application_json_charsetutf_8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov eax, str.Content_Type
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040b49f
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40ace5
push ebx
call fcn.004dc87f
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40acf5
push ebx
call fcn.004dc87f
add esp, 4
mov ecx, dword [ebp - 0x1c]
cmp ecx, reloc.WS2_32.dll_connect
je 0x40ad0c
cmp ecx, reloc.WS2_32.dll_getpeername
jne 0x40ad1c
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40ad1c
push ebx
call fcn.004dc87f
add esp, 4
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push 1
mov eax, str.Mozilla_5.0__Windows_NT_10.0__WOW64__Trident_7.0__rv:11.0__like_Gecko
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov eax, str.User_Agent
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040b49f
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40ad56
push ebx
call fcn.004dc87f
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40ad66
push ebx
call fcn.004dc87f
add esp, 4
mov ecx, dword [ebp - 0x1c]
cmp ecx, reloc.WS2_32.dll_connect
je 0x40ad7d
cmp ecx, reloc.WS2_32.dll_getpeername
jne 0x40ad8d
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40ad8d
push ebx
call fcn.004dc87f
add esp, 4
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
call fcn.0040b5d0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40adb5
push ebx
call fcn.004dc87f
add esp, 4
pop eax
mov dword [ebp - 0x18], 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]
push 8
call fcn.004dc879
add esp, 4
mov dword [ebp - 0x34], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
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
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
push 0
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x4c], 0
push 0
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x50], 0
push 0
push dword [ebp - 0x50]
mov dword [ebp - 0x54], 0
push 0
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x58], 0
push 0
lea eax, [ebp - 0x58]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x5c], 0
push 0
lea eax, [ebp - 0x5c]
push eax
push 1
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 0x10]
push eax
push 1
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.00404f23
mov dword [ebp - 0x60], eax
mov ebx, dword [ebp - 0x5c]
test ebx, ebx
je 0x40aeb4
push ebx
call fcn.004dc87f
add esp, 4
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x40aec4
push ebx
call fcn.004dc87f
add esp, 4
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x40aed4
push ebx
call fcn.004dc87f
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x40aee4
push ebx
call fcn.004dc87f
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40aef4
push ebx
call fcn.004dc87f
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40af04
push ebx
call fcn.004dc87f
add esp, 4
mov ebx, dword [ebp - 0x34]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x4e1dd0
call fcn.004dc885
add esp, 0x10
call fcn.004dc87f
add esp, 4
mov eax, dword [ebp - 0x60]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40af3b
push ebx
call fcn.004dc87f
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40af52
mov eax, 0x58f556
push eax
push 1
mov ebx, 0x4dee30
call fcn.004dc885
add esp, 0x10
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040b8d3
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40af84
push ebx
call fcn.004dc87f
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40af98
push ebx
call fcn.004dc87f
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40afb8
push eax
mov ebx, eax
call fcn.004010a1
inc eax
push eax
call fcn.004dc879
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp + 0x14]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40afcb
push ebx
call fcn.004dc87f
add esp, 4
pop eax
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x40b04a
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
push 1
mov eax, str.data_rsp_body__RspMsg_body__note_list__0__html_content_
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x2c]
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40b032
push ebx
call fcn.004dc87f
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40b046
push ebx
call fcn.004dc87f
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040b98a
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
jmp 0x40b05e
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b06f
push ebx
call fcn.004dc87f
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40b07f
push ebx
call fcn.004dc87f
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40b08f
push ebx
call fcn.004dc87f
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40b09f
push ebx
call fcn.004dc87f
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40b0af
push ebx
call fcn.004dc87f
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b0bf
push ebx
call fcn.004dc87f
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40b0cf
push ebx
call fcn.004dc87f
add esp, 4
mov ebx, dword [ebp - 0x24]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.004dc87f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14