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

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x40ac6a
sub rsp, 0x68
mov qword [rsp + 0x60], rbp
lea rbp, [rsp + 0x60]
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x40ac2e
mov rcx, qword [rax]
test rcx, rcx
je 0x40ac2e
movzx ecx, byte [rax + 8]
test cl, 4
jne 0x40ac4f
movzx ecx, byte [rax + 9]
test cl, cl
jne 0x40a9bd
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x48], rcx
mov rbx, qword [rsp + 0x88]
cmp rbx, 0x20
jge 0x40a94b
lea rax, [rcx + 8]
xor edx, edx
jmp 0x40a885
inc rdx
add rax, 0x10
cmp rdx, 8
jae 0x40a92a
mov rbx, qword [rax + 8]
mov rsi, qword [rsp + 0x88]
cmp rbx, rsi
jne 0x40a87e
test byte [rcx], al
movzx ebx, byte [rdx + rcx]
test bl, bl
je 0x40a87e
mov qword [rsp + 0x30], rdx
mov rbx, qword [rax]
mov rdi, qword [rsp + 0x80]
cmp rbx, rdi
je 0x40a8f1
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x10], rsi
mov qword [rsp], rbx
mov qword [rsp + 8], rdi
call fcn.00454910
movzx eax, byte [rsp + 0x18]
test al, al
jne 0x40a8f1
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x30]
jmp 0x40a87e
mov rax, qword [rsp + 0x70]
movzx eax, byte [rax + 0x52]
mov rcx, qword [rsp + 0x30]
imul rcx, rax
mov rax, qword [rsp + 0x48]
lea rax, [rax + rcx + 0x88]
mov qword [rsp + 0x90], rax
mov byte [rsp + 0x98], 1
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
lea rax, [0x008514e0]
mov qword [rsp + 0x90], rax
mov byte [rsp + 0x98], 0
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
lea rsi, [rcx + 8]
xor edx, edx
mov edi, 8
jmp 0x40a95f
inc rdx
add rsi, 0x10
cmp rdx, 8
jae 0x40ab99
mov r8, qword [rsi + 8]
cmp r8, rbx
jne 0x40a958
test byte [rcx], al
movzx r8d, byte [rdx + rcx]
test r8b, r8b
je 0x40a958
mov r8, qword [rsi]
mov r9, qword [rsp + 0x80]
cmp r8, r9
je 0x40ab6a
mov r10d, dword [r9]
mov r11d, dword [r8]
cmp r10d, r11d
jne 0x40a958
lea r9, [r9 + rbx - 4]
lea r8, [r8 + rbx - 4]
mov r9d, dword [r9]
mov r8d, dword [r8]
cmp r9d, r8d
jne 0x40a958
cmp rdi, 8
jne 0x40a9bd
mov rdi, rdx
jmp 0x40a958
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rcx + 0x30]
mov rbx, qword [rbx + 0x18]
mov rdx, qword [rbx]
mov ebx, dword [rax + 0xc]
mov qword [rsp + 8], rbx
lea rbx, [rsp + 0x80]
mov qword [rsp], rbx
mov rbx, qword [rdx]
call rbx
mov rax, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x78]
movzx ebx, byte [rcx + 9]
mov rdx, rcx
mov ecx, ebx
mov esi, 1
shl rsi, cl
lea rcx, [rsi - 1]
mov rbx, rcx
and rcx, rax
mov rsi, qword [rsp + 0x70]
movzx edi, word [rsi + 0x54]
imul rcx, rdi
mov r8, qword [rdx + 0x18]
add rcx, qword [rdx + 0x10]
test r8, r8
je 0x40aa4f
movzx edx, byte [rdx + 8]
test dl, 8
je 0x40ab62
and rbx, rax
imul rdi, rbx
lea rdx, [rdi + r8]
test byte [rdx], al
movzx ebx, byte [r8 + rdi]
dec ebx
cmp bl, 3
jae 0x40ab5a
shr rax, 0x38
cmp al, 4
jae 0x40aa5a
add eax, 4
mov byte [rsp + 0x27], al
jmp 0x40ab24
inc rbx
add rdx, 0x10
cmp rbx, 8
jae 0x40ab18
mov rdi, qword [rdx + 8]
mov r8, qword [rsp + 0x88]
cmp rdi, r8
jne 0x40aa63
movzx edi, byte [rbx + rcx]
cmp al, dil
jne 0x40aa63
mov qword [rsp + 0x38], rbx
mov rdi, qword [rdx]
mov r9, qword [rsp + 0x80]
cmp rdi, r9
je 0x40aadf
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x10], r8
mov qword [rsp], rdi
mov qword [rsp + 8], r9
call fcn.00454910
movzx eax, byte [rsp + 0x18]
test al, al
jne 0x40aadf
movzx eax, byte [rsp + 0x27]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x70]
jmp 0x40aa63
mov rax, qword [rsp + 0x70]
movzx eax, byte [rax + 0x52]
mov rcx, qword [rsp + 0x38]
imul rcx, rax
mov rax, qword [rsp + 0x58]
lea rax, [rax + rcx + 0x88]
mov qword [rsp + 0x90], rax
mov byte [rsp + 0x98], 1
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
movzx edx, word [rsi + 0x54]
lea rdx, [rcx + rdx - 8]
mov rcx, qword [rdx]
test rcx, rcx
je 0x40ab39
mov qword [rsp + 0x58], rcx
lea rdx, [rcx + 8]
xor ebx, ebx
jmp 0x40aa6a
lea rax, [0x008514e0]
mov qword [rsp + 0x90], rax
mov byte [rsp + 0x98], 0
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
mov rcx, rdx
jmp 0x40aa4f
shr rbx, 1
jmp 0x40aa32
mov rax, qword [rsp + 0x70]
movzx eax, byte [rax + 0x52]
imul rdx, rax
lea rax, [rdx + rcx + 0x88]
mov qword [rsp + 0x90], rax
mov byte [rsp + 0x98], 1
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
cmp rdi, 8
jne 0x40abc0
lea rax, [0x008514e0]
mov qword [rsp + 0x90], rax
mov byte [rsp + 0x98], 0
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
mov qword [rsp + 0x28], rdi
shl rdi, 4
lea rcx, [rdi + rcx + 8]
mov rcx, qword [rcx]
mov rsi, qword [rsp + 0x80]
mov qword [rsp + 0x10], rbx
mov qword [rsp], rcx
mov qword [rsp + 8], rsi
call fcn.00454910
movzx eax, byte [rsp + 0x18]
test al, al
je 0x40ab9f
mov rax, qword [rsp + 0x70]
movzx eax, byte [rax + 0x52]
mov rcx, qword [rsp + 0x28]
imul rcx, rax
mov rax, qword [rsp + 0x48]
lea rax, [rax + rcx + 0x88]
mov qword [rsp + 0x90], rax
mov byte [rsp + 0x98], 1
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
lea rax, [0x008514e0]
mov qword [rsp + 0x90], rax
mov byte [rsp + 0x98], 0
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
lea rax, [0x006b4b01]
mov qword [rsp], rax
mov qword [rsp + 8], 0x21
call fcn.0042b3a0
ud2
call fcn.00452950
jmp fcn.0040a800