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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
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.0044cfc8
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], 0x7c5e16
push ebx
add ebx, 8
push ebx
push 8
call fcn.0044cfc8
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.0040c1be
pop ebx
push 0xffffffffffffffff
push 8
push 0x160e5c2c
push 0x52010001
call fcn.0044cff2
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4067e0
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push 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
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x44], 0
push 0
lea eax, [ebp - 0x44]
push eax
mov eax, 0x7c596d
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
mov eax, 0x7c596f
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x50], 0
push 0
push dword [ebp - 0x50]
mov dword [ebp - 0x54], 0
push 0
push dword [ebp - 0x54]
mov dword [ebp - 0x58], 0
push 0
push dword [ebp - 0x58]
lea eax, [ebp - 4]
push eax
call fcn.00406e0c
mov dword [ebp - 0x5c], eax
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x4068a4
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x4068b4
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x4068c4
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x4068d4
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4068e4
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4068f4
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x406904
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x406914
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x406924
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x406934
push ebx
call fcn.0044cfc2
add esp, 4
mov eax, dword [ebp - 0x5c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x406948
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
push 0x7c5971
mov ecx, 2
call fcn.0040126c
add esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x406978
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 1
push dword [ebp - 4]
push str.avatar_uri
mov ecx, 2
call fcn.0040126c
add esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4069af
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.sessionid
mov ecx, 2
call fcn.0040126c
add esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4069e1
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov eax, str.Connection:_Keep_Alive_r_nContent_Type:_application_x_www_form_urlencoded__charsetUTF_8_r_nAccept:_application_json__text_plain____r_nAccept_Language:_zh_CN_r_nHost:_www.douyin.com_r_nReferer:_https:__www.douyin.com_user_self_r_nUser_Agent:_Mozilla_5.0__Windows_NT_10.0__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__douyin_2.3.1_Chrome_104.0.5112.102_Electron_20.1.0_tt.4.release.douyin.77_TTElectron_20.1.0_tt.4.release.douyin.77_Safari_537.36_awemePcClient_2.3.1_buildId_10433720_osName_Windows_r_nOrigin:_https:__www.douyin.com_r_nSec_Fetch_Dest:_empty_r_nSec_Fetch_Mode:_cors_r_nSec_Fetch_Site:_same_origin_r_nContent_Length:_57
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4069fb
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov dword [ebp - 0x1c], 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.0044cfc8
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
push 1
push 0x1e
push 1
push 0x966c7c
mov dword [ebp - 0x44], 0
push 0
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], 0
push 0
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x50], 0
push 0
lea eax, [ebp - 0x50]
push eax
push 1
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x54], 0
push 0
lea eax, [ebp - 0x54]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
push 1
lea eax, [ebp - 0x14]
push eax
push 1
push dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
call fcn.004073d3
mov dword [ebp - 0x58], eax
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x406aef
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x406aff
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x406b0f
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x406b1f
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x406b2f
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x34]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x451790
call fcn.0044cfda
add esp, 0x10
call fcn.0044cfc2
add esp, 4
mov eax, dword [ebp - 0x58]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x406b66
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040baa1
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x406bac
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x406bbc
push ebx
call fcn.0044cfc2
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x406bcf
mov eax, 0x7c5541
push eax
push 1
mov ebx, 0x44ed70
call fcn.0044cfda
add esp, 0x10
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x406bf5
push ebx
call fcn.0044cfc2
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x406c09
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0x20
call fcn.0044cfc8
add esp, 4
mov dword [ebp - 0x28], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 8
rep stosd dword es:[edi], eax
push 0
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov ebx, dword [ebp - 0x28]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x406c65
push ebx
call fcn.0044cfc2
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x406c79
push ebx
call fcn.0044cfc2
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x406c8d
push ebx
call fcn.0044cfc2
add esp, 4
pop ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x406ca1
push ebx
call fcn.0044cfc2
add esp, 4
pop ebx
call fcn.0044cfc2
add esp, 4
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 0x7c5e02
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x406cdb
mov eax, 0x4facd8
push eax
push 4
mov ebx, 0x44d8e0
call fcn.0044cfda
add esp, 0x34
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x406d23
mov eax, 0x7c5e02
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x406d13
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, 1
jmp 0x406d84
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
push 1
mov eax, str.status_msg
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 0x406d5e
push ebx
call fcn.0044cfc2
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x406d74
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, 0
jmp 0x406d84
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x406d95
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x406da5
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x406db5
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x406dc5
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x406dd5
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x406de5
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x406df5
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x24]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.0044cfc2
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc