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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b7bd
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x48f244]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea edi, [ecx + 0x50]
mov dword [ebp - 0x14], eax
mov ecx, edi
movq xmm0, qword [str.User_Agent]
mov dword [ebp - 0x50], eax
mov ax, word [0x483a84]
mov word [ebp - 0x38], ax
mov eax, dword [edi]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], 0xf
push eax
mov dword [ebp - 0x30], 0xa
movq qword [ebp - 0x40], xmm0
mov byte [ebp - 0x36], 0
call fcn.0040c550
mov esi, dword [ebp - 0x14]
cmp byte [esi + 0xd], 0
jne 0x40b2cd
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040c690
test al, al
je 0x40b2d0
mov esi, dword [ebp - 0x44]
cmp esi, dword [ebp - 0x44]
jne 0x40b2f2
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.User_Agent
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x14], str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_80.0.4044.92_Safari_537.36
push eax
mov ecx, edi
call fcn.0040c3d0
mov ax, word [0x483a98]
mov ecx, edi
movq xmm0, qword [str.Connection]
mov word [ebp - 0x38], ax
mov eax, dword [edi]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], 0xf
push eax
mov dword [ebp - 0x30], 0xa
movq qword [ebp - 0x40], xmm0
mov byte [ebp - 0x36], 0
call fcn.0040c550
mov esi, dword [ebp - 0x14]
cmp byte [esi + 0xd], 0
jne 0x40b349
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040c690
test al, al
je 0x40b34c
mov esi, dword [ebp - 0x44]
cmp esi, dword [ebp - 0x44]
jne 0x40b36e
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.User_Agent
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x14], 0x47f2ec
push eax
mov ecx, edi
call fcn.0040c3d0
mov ax, word [0x483aa0]
mov ecx, edi
mov esi, dword [str.Accept]
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], 0xf
push eax
mov dword [ebp - 0x30], 6
mov dword [ebp - 0x40], esi
mov byte [ebp - 0x3a], 0
call fcn.0040c550
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
cmp byte [eax + 0xd], 0
jne 0x40b3bf
add eax, 0x10
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040c690
test al, al
je 0x40b3c4
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
cmp dword [ebp - 0x14], eax
jne 0x40b3e8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.Accept
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x14], 0x47f274
push eax
mov ecx, edi
call fcn.0040c3d0
mov ax, word [0x483a98]
mov ecx, edi
movq xmm0, qword [str.Connection]
mov word [ebp - 0x38], ax
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x2c], 0xf
push eax
mov dword [ebp - 0x30], 0xa
movq qword [ebp - 0x40], xmm0
mov byte [ebp - 0x36], 0
call fcn.0040c550
mov esi, dword [ebp - 0x44]
cmp byte [esi + 0xd], 0
jne 0x40b43f
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040c690
test al, al
je 0x40b442
mov esi, dword [ebp - 0x14]
cmp esi, dword [ebp - 0x14]
jne 0x40b464
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.Connection
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x14], str.Keep_Alive
push eax
mov ecx, edi
call fcn.0040c3d0
push 0xf
push str.Accept_Language
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
call fcn.00405800
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0040c550
mov esi, dword [ebp - 0x44]
cmp byte [esi + 0xd], 0
jne 0x40b4b6
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040c690
test al, al
je 0x40b4b9
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x40b4ed
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b4e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b619
push edx
push ecx
call fcn.00439095
add esp, 8
cmp esi, dword [ebp - 0x14]
jne 0x40b50f
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.Accept_Language
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x14], str.zh_CN_zh_q0.9
push eax
mov ecx, edi
call fcn.0040c3d0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov esi, dword [eax]
cmp esi, eax
je 0x40b5d4
nop dword [eax + eax]
cmp dword [esi + 0x24], 0x10
lea ecx, [esi + 0x10]
jb 0x40b54c
mov ecx, dword [esi + 0x10]
push dword [esi + 0x20]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004045e0
push 2
push 0x483ac0
lea ecx, [ebp - 0x28]
call fcn.004045e0
cmp dword [esi + 0x3c], 0x10
lea ecx, [esi + 0x28]
jb 0x40b573
mov ecx, dword [esi + 0x28]
push dword [esi + 0x38]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004045e0
push 2
push 0x47f254
lea ecx, [ebp - 0x28]
call fcn.004045e0
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x40b5b4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x40b5b0
cmp esi, dword [eax + 8]
jne 0x40b5b0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x40b5a0
mov esi, eax
jmp 0x40b5cc
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x40b5cc
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x40b5c0
cmp esi, dword [edi]
jne 0x40b540
mov eax, dword [ebp - 0x50]
movups xmm0, xmmword [ebp - 0x28]
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [eax + 0x10], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004390b1
mov esp, ebp
pop ebp
ret 4
call fcn.004480ba
int3