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

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x403884
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 0x30]
mov qword [rsp + 0x28], rcx
mov rdx, qword [rcx]
cmp rdx, 0x10000
jae 0x403869
movzx ebx, byte [rcx + 0x15]
cmp bl, 8
ja 0x40384e
mov rbx, qword [rsp + 0x60]
test rbx, rbx
jl 0x4037fd
test rdx, rdx
jbe 0x403846
movabs rax, 0x7ffffff9f
mov rsi, rdx
xor edx, edx
div rsi
cmp rbx, rax
ja 0x4037fd
movzx eax, byte [rcx + 0x17]
test al, 0x80
je 0x40377f
imul rsi, rbx
lea rax, [rsi + 0x60]
mov qword [rsp], rax
mov qword [rsp + 8], 0
mov byte [rsp + 0x10], 1
call fcn.0040ec80
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
jle 0x403778
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rdx]
test rbx, rbx
je 0x40373d
test byte [rax], al
mov ebx, dword [0x008b4340]
lea rsi, [rax + 0x60]
lea rdi, [rax + 0x10]
test ebx, ebx
jne 0x40371e
mov qword [rax + 0x10], rsi
mov qword [rsp + 0x30], rax
mov rbx, qword [rdx]
mov word [rax + 0x18], bx
test byte [rax], al
mov ebx, dword [0x008b4340]
lea rsi, [rax + 0x20]
test ebx, ebx
jne 0x403704
mov qword [rax + 0x20], rdx
mov qword [rax + 8], rcx
mov qword [rsp + 0x68], rax
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
mov qword [rsp], rsi
mov qword [rsp + 8], rdx
call fcn.00410240
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
jmp 0x4036f1
mov qword [rsp], rdi
mov qword [rsp + 8], rsi
call fcn.00410240
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x28]
jmp 0x4036d1
test byte [rax], al
mov ebx, dword [0x008b4340]
lea rsi, [rax + 0x10]
test ebx, ebx
jne 0x403756
mov qword [rax + 0x10], rax
jmp 0x4036d1
mov qword [rsp], rsi
mov qword [rsp + 8], rax
call fcn.00410240
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x28]
jmp 0x4036d1
mov rdx, qword [rsp + 0x28]
jmp 0x40373d
test rbx, rbx
jne 0x403789
jmp 0x403671
lea rax, [0x006bed40]
mov qword [rsp], rax
call fcn.0040f840
mov rax, qword [rsp + 8]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x28]
mov qword [rsp], rcx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 8], rdx
call fcn.0040f8f0
mov rax, qword [rsp + 0x30]
test byte [rax], al
mov ecx, dword [0x008b4340]
mov rdx, qword [rsp + 0x10]
lea rbx, [rax + 0x10]
test ecx, ecx
jne 0x4037e8
mov qword [rax + 0x10], rdx
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x28]
jmp 0x4036d1
mov qword [rsp], rbx
mov qword [rsp + 8], rdx
call fcn.00410240
mov rax, qword [rsp + 0x30]
jmp 0x4037d9
lea rax, [0x006d6f38]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0x1b
lea rax, [0x00684a60]
mov qword [rsp], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 8], rax
call fcn.0040ccd0
mov rax, qword [rsp + 0x18]
mov rcx, qword [rsp + 0x10]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
call fcn.0042a540
ud2
mov rsi, rdx
jmp 0x403665
lea rax, [0x006d56ea]
mov qword [rsp], rax
mov qword [rsp + 8], 0x17
call fcn.0042aea0
ud2
lea rax, [0x006da629]
mov qword [rsp], rax
mov qword [rsp + 8], 0x26
call fcn.0042aea0
ud2
call fcn.00452210
jmp fcn.004035e0