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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 4], 0
push 0xc
call fcn.0041800e
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx], 0x4bbeab
push ebx
add ebx, 4
push ebx
push 8
call fcn.0041800e
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x4ba985
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
add ebx, 4
push ebx
push 8
call fcn.0041800e
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x4ba985
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
pop ebx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.00406e22
mov dword [ebp - 0x24], eax
push str.aid10006
push dword [0x5341ac]
push str.token
push dword [ebp - 0x24]
push str.https:__sso.douyin.com_check_qrconnect__servicehttps:__www.douyin.com_falcon_webcast_openpc_pages_douyin_recharge_index.html_is_new_connect0is_new_user0t
mov ecx, 5
call fcn.004010d0
add esp, 0x14
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40855d
push ebx
call fcn.00418014
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x408571
push ebx
call fcn.00418014
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov eax, str.no_cache
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, str.Cache_Control
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4085b7
push ebx
call fcn.00418014
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4085c7
push ebx
call fcn.00418014
add esp, 4
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov eax, str.Keep_Alive
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, str.Connection
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x408609
push ebx
call fcn.00418014
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x408619
push ebx
call fcn.00418014
add esp, 4
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov eax, 0x4bbfe7
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, str.Accept
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40865b
push ebx
call fcn.00418014
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40866b
push ebx
call fcn.00418014
add esp, 4
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov eax, str.sso.douyin.com
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, str.Host
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4086ad
push ebx
call fcn.00418014
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4086bd
push ebx
call fcn.00418014
add esp, 4
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov eax, str.https:__www.douyin.com_
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, str.Referer
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4086ff
push ebx
call fcn.00418014
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40870f
push ebx
call fcn.00418014
add esp, 4
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov eax, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_91.0.4472.77_Safari_537.36
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, str.User_Agent
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x408751
push ebx
call fcn.00418014
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x408761
push ebx
call fcn.00418014
add esp, 4
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
push 8
call fcn.0041800e
add esp, 4
mov dword [ebp - 0x28], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0
lea eax, [ebp - 0x28]
push 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
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
push 1
lea eax, [ebp - 0x18]
push eax
push 1
push 0x5341a8
push 1
push 0x5341a4
mov dword [ebp - 0x50], 0
push 0
lea eax, [ebp - 0x50]
push eax
push 1
push 0
lea eax, [ebp - 4]
push eax
call fcn.00401701
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x40887d
push ebx
call fcn.00418014
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40888d
push ebx
call fcn.00418014
add esp, 4
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x40889d
push ebx
call fcn.00418014
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x4088ad
push ebx
call fcn.00418014
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4088bd
push ebx
call fcn.00418014
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x4088cd
push ebx
call fcn.00418014
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4088dd
push ebx
call fcn.00418014
add esp, 4
mov ebx, dword [ebp - 0x28]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x41b960
call fcn.00418026
add esp, 0x10
call fcn.00418014
add esp, 4
mov eax, dword [ebp - 0x54]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x408914
push ebx
call fcn.00418014
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00407323
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.00408fdf
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x408940
push ebx
call fcn.00418014
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x408954
push ebx
call fcn.00418014
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push VariantClear
push 0
push 0x4bbfeb
push VariantClear
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x408989
mov eax, 0x4ba8cf
push eax
push 4
mov ebx, 0x418950
call fcn.00418026
add esp, 0x34
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x408aa2
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.004012ad
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4089d1
push ebx
call fcn.00418014
add esp, 4
push reloc.WS2_32.dll_closesocket
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 1
mov ebx, 0x419a30
call fcn.00418026
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4bbff0
push dword [ebp - 0x20]
push 0x4ba8cd
mov ecx, 3
call fcn.004010d0
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x408a1e
push ebx
call fcn.00418014
add esp, 4
push VariantClear
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x408a31
mov eax, 0x4ba8cf
push eax
push 0x10005
push 0x1601013e
push 0x52010006
push 2
mov ebx, 0x41a6c0
call fcn.00418026
add esp, 0x1c
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x408a63
push ebx
call fcn.00418014
add esp, 4
push 0
push 0x4bc014
push 0xffffffffffffffff
push 0xa
push 0x16010127
push 0x52010006
call fcn.00418032
add esp, 0x18
push 0
push 0
push 0xffffffffffffffff
push 8
push 0x160131c0
push 0x52010006
call fcn.00418032
add esp, 0x18
jmp 0x408f9b
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push VariantClear
push 0
push str.1039
push VariantClear
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x408ad3
mov eax, 0x4ba8cf
push eax
push 4
mov ebx, 0x418950
call fcn.00418026
add esp, 0x34
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x408bec
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.004012ad
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x408b1b
push ebx
call fcn.00418014
add esp, 4
push reloc.WS2_32.dll_closesocket
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 1
mov ebx, 0x419a30
call fcn.00418026
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4cbed6
push dword [ebp - 0x20]
push 0x4ba8cd
mov ecx, 3
call fcn.004010d0
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x408b68
push ebx
call fcn.00418014
add esp, 4
push VariantClear
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x408b7b
mov eax, 0x4ba8cf
push eax
push 0x10005
push 0x1601013e
push 0x52010006
push 2
mov ebx, 0x41a6c0
call fcn.00418026
add esp, 0x1c
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x408bad
push ebx
call fcn.00418014
add esp, 4
push 0
push 0x4bc014
push 0xffffffffffffffff
push 0xa
push 0x16010127
push 0x52010006
call fcn.00418032
add esp, 0x18
push 0
push 0
push 0xffffffffffffffff
push 8
push 0x160131c0
push 0x52010006
call fcn.00418032
add esp, 0x18
jmp 0x408f9b
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push VariantClear
push 0
push 0x4cbf06
push VariantClear
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x408c1d
mov eax, 0x4ba8cf
push eax
push 4
mov ebx, 0x418950
call fcn.00418026
add esp, 0x34
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x408d36
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.004012ad
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x408c65
push ebx
call fcn.00418014
add esp, 4
push reloc.WS2_32.dll_closesocket
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 1
mov ebx, 0x419a30
call fcn.00418026
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4cbf11
push dword [ebp - 0x20]
push 0x4ba8cd
mov ecx, 3
call fcn.004010d0
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x408cb2
push ebx
call fcn.00418014
add esp, 4
push VariantClear
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x408cc5
mov eax, 0x4ba8cf
push eax
push 0x10005
push 0x1601013e
push 0x52010006
push 2
mov ebx, 0x41a6c0
call fcn.00418026
add esp, 0x1c
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x408cf7
push ebx
call fcn.00418014
add esp, 4
push 0
push 0x4bc014
push 0xffffffffffffffff
push 0xa
push 0x16010127
push 0x52010006
call fcn.00418032
add esp, 0x18
push 0
push 0
push 0xffffffffffffffff
push 8
push 0x160131c0
push 0x52010006
call fcn.00418032
add esp, 0x18
jmp 0x408f9b
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push VariantClear
push 0
push str.redirect_url
push VariantClear
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x408d67
mov eax, 0x4ba8cf
push eax
push 4
mov ebx, 0x418950
call fcn.00418026
add esp, 0x34
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x408ee1
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
mov eax, 0x4bbe7a
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, str._redirect_url_:_
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00404afe
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x408dd3
push ebx
call fcn.00418014
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x408de3
push ebx
call fcn.00418014
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [0x5341b4]
test ebx, ebx
je 0x408dfa
push ebx
call fcn.00418014
add esp, 4
pop eax
mov dword [0x5341b4], eax
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.004012ad
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x408e28
push ebx
call fcn.00418014
add esp, 4
push reloc.WS2_32.dll_closesocket
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 1
mov ebx, 0x419a30
call fcn.00418026
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4cbf54
push dword [ebp - 0x20]
push 0x4ba8cd
mov ecx, 3
call fcn.004010d0
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x408e75
push ebx
call fcn.00418014
add esp, 4
push VariantClear
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x408e88
mov eax, 0x4ba8cf
push eax
push 0x10005
push 0x1601013e
push 0x52010006
push 2
mov ebx, 0x41a6c0
call fcn.00418026
add esp, 0x1c
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x408eba
push ebx
call fcn.00418014
add esp, 4
push 0
push 0
push 0xffffffffffffffff
push 8
push 0x160131c0
push 0x52010006
call fcn.00418032
add esp, 0x18
call fcn.00409cc8
jmp 0x408f9b
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.004012ad
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x408f09
push ebx
call fcn.00418014
add esp, 4
push reloc.WS2_32.dll_closesocket
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 1
mov ebx, 0x419a30
call fcn.00418026
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4cbf7d
push dword [ebp - 0x20]
push 0x4ba8cd
mov ecx, 3
call fcn.004010d0
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x408f56
push ebx
call fcn.00418014
add esp, 4
push VariantClear
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x408f69
mov eax, 0x4ba8cf
push eax
push 0x10005
push 0x1601013e
push 0x52010006
push 2
mov ebx, 0x41a6c0
call fcn.00418026
add esp, 0x1c
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x408f9b
push ebx
call fcn.00418014
add esp, 4
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x408fab
push ebx
call fcn.00418014
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.00418014
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x408fcb
push ebx
call fcn.00418014
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x408fdb
push ebx
call fcn.00418014
add esp, 4
mov esp, ebp
pop ebp
ret