Function at 0x412830
Capabilities:
Connect to http server
Create http request
Make an http request with a cookie
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov eax, 0x2248
call fcn.0042b660
push ebx
push ebp
push esi
mov dword [esp + 0x20], ecx
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x41]
mov byte [esp + 0x40], 0
mov esi, str.Mozilla_4.0__compatible__MSIE_9.0__Windows_NT_6.1_
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xc
lea edi, [esp + 0xbc]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 5
mov esi, str.xui.ptlogin2.qq.com
lea edi, [esp + 0x2c]
push 0
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x1d
mov esi, str._cgi_bin_xlogin_appid715030901daid73hide_close_icon1pt_no_auth1s_urlhttp_3A_2F_2Fqun.qq.com_2Fmember.html_23
lea edi, [esp + 0xf4]
push 0
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x3c
mov esi, str.Accept:___r_nReferer:_https:__xui.ptlogin2.qq.com_cgi_bin_xlogin_appid715030901daid73hide_close_icon1pt_no_auth1s_urlhttp_3A_2F_2Fqun.qq.com_2Fmember.html_23_r_nAccept_Language:_zh_cn_r_nContent_Type:_application_x_www_form_urlencoded
lea edi, [esp + 0x170]
push 0
rep movsd dword es:[edi], dword [esi]
mov ecx, 6
mov esi, str.localhost.ptlogin2.qq.com
lea edi, [esp + 0x8c]
lea eax, [esp + 0xc8]
rep movsd dword es:[edi], dword [esi]
push 0
push eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], 0x20
movsw word es:[edi], word [esi]
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x10], ebx
jne 0x4128f5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2248
ret
push 0
push 0
push 3
push 0
push 0
lea ecx, [esp + 0x40]
push 0x1bb
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x14], ebp
jne 0x41292e
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2248
ret
push 0
push 0x80880010
push 0
push 0
lea edx, [esp + 0x100]
push str.HTTP_1.1
push edx
push 0x50d640
push ebp
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
jne 0x412971
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2248
ret
lea edi, [esp + 0x168]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0
lea eax, [esp + 0x170]
push ecx
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x4129b6
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebp
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2248
ret
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
push 0x16
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov edx, dword [esp + 0x18]
inc edx
push edx
call fcn.004a2adf
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov edi, ebx
add esp, 4
lea ecx, [eax + 1]
xor eax, eax
mov edx, ecx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x20], ebx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push eax
push ebx
push 0x16
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x412a33
push ebx
call fcn.004a2b08
add esp, 4
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebp
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2248
ret
mov ebp, dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call ebp
mov edx, dword [esp + 0x14]
push edx
call ebp
mov eax, dword [esp + 0x10]
push eax
call ebp
push str.pt_local_token
push ebx
call fcn.0042cce0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x412a76
push ebx
call fcn.004a2b08
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2248
ret
push 0x50ce98
push eax
call fcn.0042cce0
mov edx, eax
mov edi, str.pt_local_tk
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x48]
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x1c]
mov ecx, ebx
and ecx, 3
sub edx, eax
rep movsb byte es:[edi], byte [esi]
sub edx, 0xf
add eax, 0xf
push edx
lea ecx, [esp + 0x58]
push eax
push ecx
call fcn.0042dc60
mov ebx, dword [esp + 0x30]
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x126c]
push str.Set_Cookie:
push ebx
rep stosd dword es:[edi], eax
call fcn.0042cce0
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x412b07
push ebx
call fcn.004a2b08
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2248
ret
push 0x50ce98
push esi
call fcn.0042cce0
mov edi, eax
lea eax, [esp + 0x1260]
mov edx, edi
sub edx, esi
add esi, 0xc
sub edx, 0xb
push edx
push esi
push eax
call fcn.0042de00
push str.Set_Cookie:
push edi
call fcn.0042cce0
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x412b07
push ebx
call fcn.004a2b08
add esp, 4
lea ecx, [esp + 0xbc]
push esi
push esi
push esi
push esi
push ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
jne 0x412b71
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2248
ret
push 0
push 0
push 3
push 0
push 0
lea edx, [esp + 0x94]
push 0x10cd
push edx
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], ebx
jne 0x412ba9
push edi
call ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2248
ret
lea eax, [esp + 0x40]
lea ecx, [esp + 0x258]
push eax
push str.0.9475416028552021
push str._pt_get_uins_callbackptui_getuins_CBr_s_s
push ecx
call fcn.0042cdcc
add esp, 0x10
lea edx, [esp + 0x258]
push 0
push 0x80880010
push 0
push 0
push str.HTTP_1.1
push edx
push 0x50d640
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
jne 0x412c05
push ebx
call ebp
push edi
call ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2248
ret
lea eax, [esp + 0x1258]
lea ecx, [esp + 0x258]
push eax
push ecx
lea edx, [esp + 0xa60]
push str.Accept:___r_nReferer:_https:__localhost.ptlogin2.qq.com:4301_s_r_nAccept_Language:_zh_cn_r_nContent_Type:_application_x_www_form_urlencoded_r_nCookie:__s
push edx
call fcn.0042cdcc
lea edi, [esp + 0xa68]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
push 0
dec ecx
push 0
lea eax, [esp + 0xa60]
push ecx
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x412c6d
push esi
call ebp
push ebx
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2248
ret
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0xa0]
push edx
push eax
push 5
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x412ca3
push esi
call ebp
push ebx
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2248
ret
lea edx, [esp + 0x9c]
push edx
call fcn.0042dd5e
mov edi, eax
inc edi
push edi
mov dword [esp + 0x24], edi
call fcn.004a2adf
mov ecx, edi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 8
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x28]
mov ecx, edx
push eax
push ecx
push ebx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x412d11
push ebx
call fcn.004a2b08
add esp, 4
push esi
call ebp
mov edx, dword [esp + 0x14]
push edx
call ebp
mov eax, dword [esp + 0x10]
push eax
call ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2248
ret
push esi
call ebp
mov ecx, dword [esp + 0x14]
push ecx
call ebp
mov edx, dword [esp + 0x10]
push edx
call ebp
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebp, eax
lea edi, [ebp + ebp + 2]
push edi
call fcn.004a2adf
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
push ebp
mov ecx, edx
push esi
push 0xffffffffffffffff
and ecx, 3
push ebx
push 0
push 0xfde9
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
call fcn.004a2b08
add esp, 4
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
lea edi, [ebx + 1]
push edi
call fcn.004a2adf
mov ecx, edi
mov ebp, eax
mov edx, ecx
add esp, 4
xor eax, eax
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
push 0
push 0
push ebx
mov ecx, edx
push ebp
push 0xffffffffffffffff
and ecx, 3
push esi
push 0
push 0
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
call fcn.004a2b08
push 0x50cec4
push ebp
call fcn.0042cce0
add esp, 0xc
test eax, eax
jne 0x412df0
push ebp
call fcn.004a2b08
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2248
ret
push eax
call fcn.00402840
push ebp
mov ebx, eax
call fcn.004a2b08
add esp, 8
test ebx, ebx
je 0x412eb2
mov esi, dword [ebx + 8]
test esi, esi
je 0x412eb2
push str.nickname
push esi
call fcn.00403f80
push 0x50d868
push esi
mov edi, eax
call fcn.00403f80
add esp, 0x10
test edi, edi
je 0x412ea8
test eax, eax
je 0x412ea8
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x1a58]
push 0x800
lea edx, [esp + 0x125c]
push ecx
push edx
mov edx, dword [eax + 0x10]
lea ecx, [esp + 0x4c]
push ecx
push edx
mov ecx, edi
call fcn.00411370
test eax, eax
je 0x412ea8
lea eax, [esp + 0x1a58]
mov ecx, edi
push eax
call fcn.00411c70
test eax, eax
je 0x412e86
push eax
push str.friends
push esi
call fcn.00404080
add esp, 0xc
lea ecx, [esp + 0x1a58]
push ecx
mov ecx, edi
call fcn.00412310
test eax, eax
je 0x412ea8
push eax
push str.groups
push esi
call fcn.00404080
add esp, 0xc
mov esi, dword [esi]
test esi, esi
jne 0x412e14
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x2248
ret