Function at 0x41c154
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
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
push 0xc
call fcn.0044cfc8
add esp, 4
mov dword [ebp - 0x20], 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 dword [ebp - 8]
push 0x7c5971
mov ecx, 2
call fcn.0040126c
add esp, 8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41c217
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 1
push 0xffffffffffffffff
push 8
push 0x160e5c2e
push 0x52010001
call fcn.0044cff2
add esp, 0x10
mov dword [ebp - 0x24], eax
push 1
push 1
push 1
push 1
lea eax, [ebp - 0x24]
push eax
call fcn.0040d3bc
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41c265
push ebx
call fcn.0044cfc2
add esp, 4
push dword [ebp - 0x28]
push str.nickname
mov ecx, 2
call fcn.0040126c
add esp, 8
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41c28d
push ebx
call fcn.0044cfc2
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x41c2a1
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.sessionid
mov ecx, 2
call fcn.0040126c
add esp, 8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x41c2d3
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov dword [ebp - 0x14], 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 - 0x18]
test ebx, ebx
je 0x41c2ed
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
push 8
call fcn.0044cfc8
add esp, 4
mov dword [ebp - 0x30], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
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
push dword [ebp - 0x40]
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 - 0x18]
push eax
mov dword [ebp - 0x54], 0
push 0
lea eax, [ebp - 0x54]
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 - 4]
push eax
call fcn.004073d3
mov dword [ebp - 0x58], eax
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x41c3e6
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x41c3f6
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x41c406
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x41c416
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x41c426
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x30]
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 - 0x1c]
test ebx, ebx
je 0x41c45d
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
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
lea eax, [ebp - 0x1c]
push eax
call fcn.0040baa1
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x41c4a3
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41c4b3
push ebx
call fcn.0044cfc2
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x41c4c6
mov eax, 0x7c5541
push eax
push 1
mov ebx, 0x44ed70
call fcn.0044cfda
add esp, 0x10
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x41c4ec
push ebx
call fcn.0044cfc2
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x41c500
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x20
call fcn.0044cfc8
add esp, 4
mov dword [ebp - 0x24], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 8
rep stosd dword es:[edi], eax
push 0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov ebx, dword [ebp - 0x24]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x41c55c
push ebx
call fcn.0044cfc2
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x41c570
push ebx
call fcn.0044cfc2
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x41c584
push ebx
call fcn.0044cfc2
add esp, 4
pop ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x41c598
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 - 8]
test eax, eax
jne 0x41c5d2
mov eax, 0x4facd8
push eax
push 4
mov ebx, 0x44d8e0
call fcn.0044cfda
add esp, 0x34
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x41c61a
mov eax, 0x7c5e02
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x41c60a
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, 1
jmp 0x41c6ed
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
push 1
mov eax, str.toast_msg
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x2c]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41c655
push ebx
call fcn.0044cfc2
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x41c66b
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
push 0x4facd8
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call fcn.00402ac2
add esp, 8
cmp eax, 0
jne 0x41c6e3
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
push 1
mov eax, str._toast_back_info__toast_msg_
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x2c]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41c6c7
push ebx
call fcn.0044cfc2
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x41c6dd
push ebx
call fcn.0044cfc2
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, 0
jmp 0x41c6ed
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41c6fe
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x41c70e
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x41c71e
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x41c72e
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x41c73e
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x41c74e
push ebx
call fcn.0044cfc2
add esp, 4
mov ebx, dword [ebp - 0x20]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.0044cfc2
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc