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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b2ae8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4e4520]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x4e4520]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x18], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
jne 0x40b59d
push 8
push 0x4d3274
lea ecx, [ebx + 8]
call fcn.00403660
push 0xa
push str.User_Agent
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
call fcn.00403660
mov esi, dword [ebx + 0x50]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [ebx + 0x50]
call fcn.0040c500
cmp dword [eax], esi
sete al
cmp dword [esp + 0x3c], 0x10
mov byte [esp + 0x17], al
jb 0x40b5f7
push dword [esp + 0x28]
call fcn.0047c598
mov al, byte [esp + 0x1b]
add esp, 4
test al, al
je 0x40b62b
lea eax, [esp + 0x18]
mov dword [esp + 0x18], str.User_Agent
push eax
lea ecx, [ebx + 0x50]
mov dword [esp + 0x20], 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 + 0x24]
push eax
lea ecx, [ebx + 0x50]
call fcn.0040cd30
push 0xa
push str.Connection
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
call fcn.00403660
mov esi, dword [ebx + 0x50]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [ebx + 0x50]
call fcn.0040c500
cmp dword [eax], esi
sete al
cmp dword [esp + 0x3c], 0x10
mov byte [esp + 0x17], al
jb 0x40b685
push dword [esp + 0x28]
call fcn.0047c598
mov al, byte [esp + 0x1b]
add esp, 4
test al, al
je 0x40b6b9
lea eax, [esp + 0x18]
mov dword [esp + 0x18], str.User_Agent
push eax
lea ecx, [ebx + 0x50]
mov dword [esp + 0x20], 0x4d3274
call fcn.0040cfd0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [esp + 0x24]
push eax
lea ecx, [ebx + 0x50]
call fcn.0040cd30
push 6
push str.Accept
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
call fcn.00403660
mov esi, dword [ebx + 0x50]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [ebx + 0x50]
call fcn.0040c500
cmp dword [eax], esi
sete al
cmp dword [esp + 0x3c], 0x10
mov byte [esp + 0x17], al
jb 0x40b713
push dword [esp + 0x28]
call fcn.0047c598
mov al, byte [esp + 0x1b]
add esp, 4
test al, al
je 0x40b747
lea eax, [esp + 0x18]
mov dword [esp + 0x18], str.Accept
push eax
lea ecx, [ebx + 0x50]
mov dword [esp + 0x20], 0x4d31fc
call fcn.0040cfd0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [esp + 0x24]
push eax
lea ecx, [ebx + 0x50]
call fcn.0040cd30
push 0xa
push str.Connection
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
call fcn.00403660
mov esi, dword [ebx + 0x50]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [ebx + 0x50]
call fcn.0040c500
cmp dword [eax], esi
sete al
cmp dword [esp + 0x3c], 0x10
mov byte [esp + 0x17], al
jb 0x40b7a1
push dword [esp + 0x28]
call fcn.0047c598
mov al, byte [esp + 0x1b]
add esp, 4
test al, al
je 0x40b7d5
lea eax, [esp + 0x18]
mov dword [esp + 0x18], str.Connection
push eax
lea ecx, [ebx + 0x50]
mov dword [esp + 0x20], str.Keep_Alive
call fcn.0040cfd0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [esp + 0x24]
push eax
lea ecx, [ebx + 0x50]
call fcn.0040cd30
push 0xf
push str.Accept_Language
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
call fcn.00403660
mov esi, dword [ebx + 0x50]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [ebx + 0x50]
call fcn.0040c500
cmp dword [eax], esi
sete al
cmp dword [esp + 0x3c], 0x10
mov byte [esp + 0x17], al
jb 0x40b82f
push dword [esp + 0x28]
call fcn.0047c598
mov al, byte [esp + 0x1b]
add esp, 4
test al, al
je 0x40b863
lea eax, [esp + 0x18]
mov dword [esp + 0x18], str.Accept_Language
push eax
lea ecx, [ebx + 0x50]
mov dword [esp + 0x20], str.zh_CN_zh_q0.9
call fcn.0040cfd0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [esp + 0x24]
push eax
lea ecx, [ebx + 0x50]
call fcn.0040cd30
push 4
push str.GET
lea ecx, [esp + 0x48]
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
call fcn.00403660
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x38]
mov dword [esp + 0x70], 0
push eax
lea ecx, [esp + 0x4c]
call fcn.00407920
push 1
push 0x4d3840
lea ecx, [esp + 0x48]
call fcn.00407a20
push 0xffffffffffffffff
push 0
lea eax, [ebx + 8]
push eax
lea ecx, [esp + 0x4c]
call fcn.00407920
push 2
push 0x4d31dc
lea ecx, [esp + 0x48]
call fcn.00407a20
mov eax, dword [ebx + 0x50]
mov esi, dword [eax]
cmp esi, eax
je 0x40b970
nop
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x10]
push eax
lea ecx, [esp + 0x4c]
call fcn.00407920
push 2
push 0x4d385c
lea ecx, [esp + 0x48]
call fcn.00407a20
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x28]
push eax
lea ecx, [esp + 0x4c]
call fcn.00407920
push 2
push 0x4d31dc
lea ecx, [esp + 0x48]
call fcn.00407a20
cmp byte [esi + 0xd], 0
jne 0x40b967
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x40b94c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x40b967
jmp 0x40b940
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x40b940
jmp 0x40b967
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x40b965
cmp esi, dword [eax + 8]
jne 0x40b965
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x40b955
mov esi, eax
cmp esi, dword [ebx + 0x50]
jne 0x40b8e0
push 2
push 0x4d31dc
lea ecx, [esp + 0x48]
call fcn.00407a20
push 2
push 0x4d31dc
lea ecx, [esp + 0x48]
call fcn.00407a20
mov ebx, dword [esp + 0x20]
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
mov edx, dword [esp + 0x54]
cmp edx, 0x10
jae 0x40b9ca
mov eax, dword [esp + 0x50]
inc eax
je 0x40b9d0
push eax
lea eax, [esp + 0x44]
push eax
push ebx
call fcn.0047c6e0
mov edx, dword [esp + 0x60]
add esp, 0xc
jmp 0x40b9d0
mov ecx, dword [esp + 0x40]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x50]
mov eax, ebx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], edx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0047cd24
mov esp, ebp
pop ebp
ret 8