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

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x40ba40
sub rsp, 0x68
mov qword [rsp + 0x60], rbp
lea rbp, [rsp + 0x60]
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x40ba22
movzx ecx, byte [rax + 8]
test cl, 4
jne 0x40ba07
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 qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x78]
movzx ebx, byte [rcx + 8]
or ebx, 4
mov byte [rcx + 8], bl
mov rbx, qword [rcx + 0x10]
lea rsi, [rcx + 0x10]
test rbx, rbx
jne 0x40b84f
jmp 0x40b99c
inc rdi
cmp rdi, 8
jae 0x40b7d0
test byte [rdx], al
movzx r10d, byte [rdx + rdi]
cmp r9b, r10b
je 0x40b6f6
test r10b, r10b
jne 0x40b6cb
test rax, rax
jne 0x40b6cb
mov rax, rdx
mov rcx, rdi
jmp 0x40b6cb
mov r10, rdi
shl rdi, 4
mov r11, rdx
lea rdx, [rdi + rdx + 8]
mov r12, qword [rdx + 8]
mov r13, qword [rsp + 0x88]
cmp r12, r13
je 0x40b71e
mov rdx, r11
mov rdi, r10
jmp 0x40b6cb
mov qword [rsp + 0x40], r10
mov rdx, qword [rdx]
mov rdi, qword [rsp + 0x80]
cmp rdx, rdi
je 0x40b787
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x10], r13
mov qword [rsp], rdx
mov qword [rsp + 8], rdi
call fcn.00454910
movzx eax, byte [rsp + 0x18]
test al, al
jne 0x40b787
mov rdx, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x40]
mov r8, qword [rsp + 0x30]
movzx r9d, byte [rsp + 0x27]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
jmp 0x40b6cb
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x70]
movzx edx, byte [rdx + 0x52]
imul rcx, rdx
mov rdx, qword [rsp + 0x78]
movzx ebx, byte [rdx + 8]
lea rax, [rcx + rax + 0x88]
test bl, 4
je 0x40b9ec
and ebx, 0xfffffffb
mov byte [rdx + 8], bl
mov qword [rsp + 0x90], rax
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
movzx r10d, word [rsi + 0x54]
mov r11, rdx
lea rdx, [rdx + r10 - 8]
mov rdx, qword [rdx]
test rdx, rdx
je 0x40b7f1
mov qword [rsp + 0x58], rdx
xor edi, edi
jmp 0x40b6ce
mov rdx, qword [rbx + 0x18]
test rdx, rdx
jne 0x40b95b
mov rdx, qword [rbx]
inc rdx
movzx r10d, byte [rbx + 9]
cmp rdx, 8
jle 0x40b94e
mov rdi, rcx
mov ecx, r10d
mov r12d, 1
shl r12, cl
shr r12, 1
lea r13, [r12 + r12*2]
lea r12, [r12 + r13*4]
cmp rdx, r12
seta dl
test dl, dl
je 0x40b8a7
mov qword [rsp], rsi
mov qword [rsp + 8], rbx
call fcn.00408d30
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
movzx edx, byte [rcx + 9]
mov rbx, rcx
mov ecx, edx
mov esi, 1
shl rsi, cl
lea rdx, [rsi - 1]
and rdx, rax
mov rsi, qword [rbx + 0x18]
test rsi, rsi
jne 0x40b96b
mov rsi, qword [rsp + 0x70]
movzx r8d, word [rsi + 0x54]
imul rdx, r8
add rdx, qword [rbx + 0x10]
mov r8, rax
shr rax, 0x38
cmp al, 4
jae 0x40b963
lea r9d, [rax + 4]
mov byte [rsp + 0x27], r9b
xor eax, eax
xor ecx, ecx
jmp 0x40b7e5
movzx edx, word [rbx + 0xa]
cmp cl, 0xf
jbe 0x40b8b5
mov ecx, 0xf
and ecx, 0xf
mov r10d, 1
shl r10d, cl
cmp dx, r10w
jae 0x40b837
test rax, rax
je 0x40b922
test byte [rax], al
mov rcx, rdi
and rdi, 7
mov byte [rax + rdi], r9b
mov rdx, rcx
shl rcx, 4
mov r8, rax
lea rdi, [rcx + rax + 8]
mov rcx, qword [rsp + 0x88]
mov rax, qword [rsp + 0x80]
mov qword [rdi + 8], rcx
mov ecx, dword [0x00850df0]
test ecx, ecx
jne 0x40b91b
mov qword [rdi], rax
inc qword [rbx]
mov rax, r8
mov rcx, rdx
jmp 0x40b791
call fcn.004553b0
jmp 0x40b90d
mov qword [rsp], rbx
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], r11
call fcn.00406df0
mov rax, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
movzx r9d, byte [rsp + 0x27]
xor edi, edi
jmp 0x40b8d0
mov rdi, rcx
xor edx, edx
mov ecx, r10d
jmp 0x40b833
mov rdi, rcx
jmp 0x40b8cb
mov r9, rax
jmp 0x40b899
mov qword [rsp + 0x38], rdx
mov rax, qword [rsp + 0x70]
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
call fcn.0040cb80
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x78]
jmp 0x40b874
mov qword [rsp + 0x50], rsi
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x40]
mov qword [rsp], rcx
call fcn.00410b80
mov eax, dword [0x00850df0]
mov rcx, qword [rsp + 8]
test eax, eax
jne 0x40b9d8
mov rdx, qword [rsp + 0x78]
mov qword [rdx + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, rdx
jmp 0x40b84f
mov rdi, qword [rsp + 0x50]
mov rax, rcx
call fcn.004553b0
mov rdx, qword [rsp + 0x78]
jmp 0x40b9cb
lea rax, [0x006b0190]
mov qword [rsp], rax
mov qword [rsp + 8], 0x15
call fcn.0042b3a0
ud2
lea rax, [0x006b0190]
mov qword [rsp], rax
mov qword [rsp + 8], 0x15
call fcn.0042b3a0
ud2
lea rax, [0x0065e800]
mov qword [rsp], rax
lea rax, [0x006f6d80]
mov qword [rsp + 8], rax
call fcn.0042aba0
ud2
call fcn.00452950
jmp fcn.0040b630