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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b2b18
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4e4520]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x4e4520]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x20]
push 0xa
push str.User_Agent
mov dword [esp + 0x24], 0
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
call fcn.00403660
mov esi, dword [edi + 0x50]
lea eax, [esp + 0x20]
add edi, 0x50
push eax
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.0040c500
cmp dword [eax], esi
sete al
cmp dword [esp + 0x34], 0x10
mov byte [esp + 0x13], al
jb 0x40baa0
push dword [esp + 0x20]
call fcn.0047c598
mov al, byte [esp + 0x17]
add esp, 4
test al, al
je 0x40bad2
lea eax, [esp + 0x14]
mov dword [esp + 0x14], str.User_Agent
push eax
mov ecx, edi
mov dword [esp + 0x1c], str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_80.0.4044.92_Safari_537.36
call fcn.0040cfd0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.0040cd30
push 0xa
push str.Connection
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
call fcn.00403660
mov esi, dword [edi]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.0040c500
cmp dword [eax], esi
sete al
cmp dword [esp + 0x34], 0x10
mov byte [esp + 0x13], al
jb 0x40bb2a
push dword [esp + 0x20]
call fcn.0047c598
mov al, byte [esp + 0x17]
add esp, 4
test al, al
je 0x40bb5c
lea eax, [esp + 0x14]
mov dword [esp + 0x14], str.User_Agent
push eax
mov ecx, edi
mov dword [esp + 0x1c], 0x4d3274
call fcn.0040cfd0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.0040cd30
push 6
push str.Accept
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
call fcn.00403660
mov esi, dword [edi]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.0040c500
cmp dword [eax], esi
sete al
cmp dword [esp + 0x34], 0x10
mov byte [esp + 0x13], al
jb 0x40bbb4
push dword [esp + 0x20]
call fcn.0047c598
mov al, byte [esp + 0x17]
add esp, 4
test al, al
je 0x40bbe6
lea eax, [esp + 0x14]
mov dword [esp + 0x14], str.Accept
push eax
mov ecx, edi
mov dword [esp + 0x1c], 0x4d31fc
call fcn.0040cfd0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.0040cd30
push 0xa
push str.Connection
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
call fcn.00403660
mov esi, dword [edi]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.0040c500
cmp dword [eax], esi
sete al
cmp dword [esp + 0x34], 0x10
mov byte [esp + 0x13], al
jb 0x40bc3e
push dword [esp + 0x20]
call fcn.0047c598
mov al, byte [esp + 0x17]
add esp, 4
test al, al
je 0x40bc70
lea eax, [esp + 0x14]
mov dword [esp + 0x14], str.Connection
push eax
mov ecx, edi
mov dword [esp + 0x1c], str.Keep_Alive
call fcn.0040cfd0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.0040cd30
push 0xf
push str.Accept_Language
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
call fcn.00403660
mov esi, dword [edi]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.0040c500
cmp dword [eax], esi
sete al
cmp dword [esp + 0x34], 0x10
mov byte [esp + 0x13], al
jb 0x40bcc8
push dword [esp + 0x20]
call fcn.0047c598
mov al, byte [esp + 0x17]
add esp, 4
test al, al
je 0x40bcfa
lea eax, [esp + 0x14]
mov dword [esp + 0x14], str.Accept_Language
push eax
mov ecx, edi
mov dword [esp + 0x1c], str.zh_CN_zh_q0.9
call fcn.0040cfd0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.0040cd30
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
mov dword [esp + 0x60], 0
mov eax, dword [edi]
mov esi, dword [eax]
cmp esi, eax
je 0x40bdaf
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x10]
push eax
lea ecx, [esp + 0x44]
call fcn.00407920
push 2
push 0x4d385c
lea ecx, [esp + 0x40]
call fcn.00407a20
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x28]
push eax
lea ecx, [esp + 0x44]
call fcn.00407920
push 2
push 0x4d31dc
lea ecx, [esp + 0x40]
call fcn.00407a20
cmp byte [esi + 0xd], 0
jne 0x40bda7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x40bd8c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x40bda7
mov edi, edi
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x40bd80
jmp 0x40bda7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x40bda5
cmp esi, dword [eax + 8]
jne 0x40bda5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x40bd95
mov esi, eax
cmp esi, dword [edi]
jne 0x40bd23
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
mov edx, dword [esp + 0x4c]
cmp edx, 0x10
jae 0x40bde5
mov eax, dword [esp + 0x48]
inc eax
je 0x40bdeb
push eax
lea eax, [esp + 0x3c]
push eax
push ebx
call fcn.0047c6e0
mov edx, dword [esp + 0x58]
add esp, 0xc
jmp 0x40bdeb
mov ecx, dword [esp + 0x38]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x48]
mov eax, ebx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], edx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0047cd24
mov esp, ebp
pop ebp
ret 4