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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
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
mov dword [ebp - 0x24], 0
push 0xc
call fcn.0044cfc8
add esp, 4
mov dword [ebp - 0x28], 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 0x160e5c30
push 0x52010001
call fcn.0044cff2
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40cca4
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov dword [ebp - 4], 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 0x7c618f
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40ccd9
mov eax, 0x4facd8
push eax
push 4
mov ebx, 0x44d8e0
call fcn.0044cfda
add esp, 0x34
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x40ceba
push 1
push 1
push 1
push 1
lea eax, [ebp - 4]
push eax
call fcn.0040d3bc
mov dword [ebp - 0x2c], eax
push 1
push 1
push 1
push 1
mov eax, 0x7c618f
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040d3bc
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40cd45
push ebx
call fcn.0044cfc2
add esp, 4
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 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
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x54], 0
push 0
lea eax, [ebp - 0x54]
push eax
mov eax, str._F0_9F_91_97
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x5c], 0
push 0
push dword [ebp - 0x5c]
mov dword [ebp - 0x60], 0
push 0
push dword [ebp - 0x60]
mov dword [ebp - 0x64], 0
push 0
push dword [ebp - 0x64]
lea eax, [ebp - 0x2c]
push eax
call fcn.00406e0c
mov dword [ebp - 0x68], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40cdfd
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40ce0d
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x40ce1d
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x40ce2d
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x40ce3d
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x40ce4d
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x40ce5d
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x40ce6d
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40ce7d
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40ce8d
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40ce9d
push ebx
call fcn.0044cfc2
add esp, 4
mov eax, dword [ebp - 0x68]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40ceb1
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x40ceec
push 1
push 1
push 1
push 1
lea eax, [ebp - 4]
push eax
call fcn.0040d3bc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40cee8
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov dword [ebp - 8], eax
push dword [ebp - 0x10]
push 0x7c5971
mov ecx, 2
call fcn.0040126c
add esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40cf18
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 1
push dword [ebp - 8]
push str.signature
mov ecx, 2
call fcn.0040126c
add esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40cf4f
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.sessionid
mov ecx, 2
call fcn.0040126c
add esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40cf81
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov dword [ebp - 0x1c], 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:_45
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40cf9b
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
push 8
call fcn.0044cfc8
add esp, 4
mov dword [ebp - 0x38], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
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
push 1
push 0x1e
push 1
push 0x966c7c
mov dword [ebp - 0x48], 0
push 0
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x4c], 0
push 0
push dword [ebp - 0x4c]
mov dword [ebp - 0x50], 0
push 0
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x54], 0
push 0
lea eax, [ebp - 0x54]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x58], 0
push 0
lea eax, [ebp - 0x58]
push eax
push 1
lea eax, [ebp - 0x1c]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
push 1
push dword [ebp - 0x14]
lea eax, [ebp - 0xc]
push eax
call fcn.004073d3
mov dword [ebp - 0x5c], eax
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x40d08f
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x40d09f
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x40d0af
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x40d0bf
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40d0cf
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x38]
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 - 0x5c]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40d106
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov dword [ebp - 0x24], 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
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040baa1
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40d14c
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40d15c
push ebx
call fcn.0044cfc2
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x40d16f
mov eax, 0x7c5541
push eax
push 1
mov ebx, 0x44ed70
call fcn.0044cfda
add esp, 0x10
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40d195
push ebx
call fcn.0044cfc2
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40d1a9
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0x20
call fcn.0044cfc8
add esp, 4
mov dword [ebp - 0x2c], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 8
rep stosd dword es:[edi], eax
push 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov ebx, dword [ebp - 0x2c]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40d205
push ebx
call fcn.0044cfc2
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40d219
push ebx
call fcn.0044cfc2
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40d22d
push ebx
call fcn.0044cfc2
add esp, 4
pop ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40d241
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 - 0x10]
test eax, eax
jne 0x40d27b
mov eax, 0x4facd8
push eax
push 4
mov ebx, 0x44d8e0
call fcn.0044cfda
add esp, 0x34
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x40d2c3
mov eax, 0x7c5e02
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40d2b3
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, 1
jmp 0x40d324
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
push 1
mov eax, str.status_msg
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x2c]
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40d2fe
push ebx
call fcn.0044cfc2
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40d314
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, 0
jmp 0x40d324
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40d335
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40d345
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40d355
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40d365
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40d375
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40d385
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40d395
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40d3a5
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x28]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.0044cfc2
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc