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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xe8]
sub rsp, 0x1e8
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x140160188]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov r15, r9
mov rdi, r8
mov ebx, edx
mov r14, rcx
mov edx, 0x100
cmp ebx, edx
ja 0x140010e7a
je 0x140010e4b
lea eax, [rbx - 1]
cmp eax, 0x7a
ja case.0x1400109d5.3
lea rsi, [0x140000000]
movzx eax, byte [rsi + rax + 0x1118c]
mov ecx, dword [rsi + rax*4 + 0x11168]
add rcx, rsi
jmp rcx
xor eax, eax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x60]
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_BeginPaint]
mov rbx, rax
lea rdx, [rbp - 0x78]
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetClipBox]
lea rdx, [rsp + 0x68]
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_GetClientRect]
lea r8, [rsp + 0x68]
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_IntersectRect]
mov rcx, qword [r14 + 0x28]
call qword [0x140165b00]
mov r11d, dword [rsp + 0x5c]
mov r8d, r11d
sub r8d, dword [rsp + 0x6c]
mov r10d, dword [rsp + 0x58]
mov ecx, r10d
sub ecx, dword [rsp + 0x68]
mov edx, dword [rsp + 0x64]
sub edx, r11d
mov r9d, dword [rsp + 0x60]
sub r9d, r10d
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
mov r8d, r11d
mov edx, r10d
mov rcx, rbx
call qword [sym.imp.GDI32.dll_BitBlt]
lea rdx, [rbp - 0x60]
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_EndPaint]
xor esi, esi
mov eax, esi
jmp 0x140010fed
call qword [0x140165a90]
mov qword [r14 + 0x28], rax
test rax, rax
jne 0x140010ace
mov rsi, 0xffffffffffffffff
mov rax, rsi
jmp 0x140010fed
mov rdx, qword [r14 + 8]
mov rcx, rax
call qword [0x140165b90]
mov ecx, gethostbyname
call fcn.1400ce694
mov rcx, rax
mov qword [rsp + 0x58], rax
lea rax, vtable.CRenderGDI.0
mov qword [rcx], rax
xor esi, esi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], rsi
mov qword [rcx + 0x20], rsi
mov qword [rcx + 0x28], rsi
mov qword [r14 + 0x30], rcx
mov rax, qword [rcx]
mov rdx, qword [r14 + 8]
call qword [rax]
xor edx, edx
mov r8d, 0xe0
lea rcx, [rbp - 0x10]
call fcn.1400d1170
lea rcx, [rbp - 0x10]
call qword [0x140165c38]
xor edx, edx
mov rcx, qword [r14 + 0x28]
call qword [0x140165ba8]
xor r8d, r8d
lea rdx, [0x140010740]
mov rcx, qword [r14 + 0x28]
call qword [0x140165b28]
xor r8d, r8d
lea rdx, [0x140010740]
mov rcx, qword [r14 + 0x28]
call qword [0x140165ad0]
xor r8d, r8d
lea rdx, [0x140010760]
mov rcx, qword [r14 + 0x28]
call qword [0x140165c40]
xor r8d, r8d
lea rdx, [0x140010820]
mov rcx, qword [r14 + 0x28]
call qword [0x140165af0]
mov r8, r14
lea rdx, [0x140010940]
mov rcx, qword [r14 + 0x28]
call qword [0x140165c08]
xor r8d, r8d
lea rdx, [fcn.1400051f0]
mov rcx, qword [r14 + 0x28]
call qword [0x140165a80]
lea rdx, str.Mozilla_5.0__Macintosh__Intel_Mac_OS_X_10_11_1__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_70.0.3538.25_Safari_537.36
mov rcx, qword [r14 + 0x28]
call qword [0x140165be8]
xor r9d, r9d
lea edx, [rsi + 1]
lea r8d, [rsi + 0x32]
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_SetTimer]
mov eax, esi
jmp 0x140010fed
mov rcx, qword [r14 + 0x30]
xor esi, esi
test rcx, rcx
je 0x140010bfa
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [r14 + 0x30], rsi
mov rcx, qword [r14 + 0x28]
test rcx, rcx
je 0x140010c0d
call qword [0x140165bb8]
mov qword [r14 + 0x28], rsi
mov edx, 1
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_KillTimer]
mov rax, rsi
jmp 0x140010fed
lea rcx, [rsp + 0x58]
call fcn.1400751a4
mov rcx, r14
call fcn.1400763f0
mov rcx, rax
lea rdx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rcx, [rsp + 0x58]
call fcn.140075a00
mov ebx, eax
lea rcx, [rsp + 0x58]
call fcn.140075a18
mov edx, eax
mov r8d, ebx
mov rcx, qword [r14 + 0x28]
call qword [0x140165a98]
lea rcx, [rsp + 0x58]
call fcn.140075a18
test eax, eax
jle 0x140010cbc
lea rcx, [rsp + 0x58]
call fcn.140075a00
test eax, eax
jle 0x140010cbc
mov rax, qword [r14 + 0x30]
mov rdi, qword [rax]
lea rcx, [rsp + 0x58]
call fcn.140075a00
mov ebx, eax
lea rcx, [rsp + 0x58]
call fcn.140075a18
mov edx, eax
mov r8d, ebx
mov rcx, qword [r14 + 0x30]
call qword [rdi + InitCommonControls]
mov rcx, qword [r14 + 0x30]
mov rax, qword [rcx]
mov rdx, qword [r14 + 0x28]
call qword [rax + 0x18]
xor r8d, r8d
xor edx, edx
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_InvalidateRect]
xor esi, esi
mov eax, esi
jmp 0x140010fed
mov rcx, qword [r14 + 0x28]
call qword [0x140165ba0]
xor esi, esi
mov eax, esi
jmp 0x140010fed
mov rcx, qword [r14 + 0x28]
call qword [0x140165b78]
xor esi, esi
mov eax, esi
jmp 0x140010fed
movsx r11d, r15w
mov dword [rsp + 0x58], r11d
mov rax, r15
shr rax, 0x10
movsx r10d, ax
mov dword [rsp + 0x5c], r10d
cmp r11d, 0xffffffff
je 0x140010d38
cmp r10d, 0xffffffff
je 0x140010d38
lea rdx, [rsp + 0x58]
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_ScreenToClient]
mov r10d, dword [rsp + 0x5c]
mov r11d, dword [rsp + 0x58]
mov ecx, edi
and ecx, 8
movzx eax, dil
mov edx, ecx
or edx, 4
and al, 4
cmove edx, ecx
movzx eax, dil
mov ecx, edx
or ecx, 1
and al, 1
cmove ecx, edx
movzx eax, dil
mov r8d, ecx
or r8d, 0x10
and al, 0x10
cmove r8d, ecx
movzx eax, dil
mov r9d, r8d
or r9d, 2
and al, 2
cmove r9d, r8d
mov r8d, r10d
mov edx, r11d
mov rcx, qword [r14 + 0x28]
call qword [0x140165ad8]
jmp 0x140011157
lea rdx, [rbp - 0x78]
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_GetClientRect]
lea rcx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_GetCursorPos]
lea rdx, [rsp + 0x58]
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_ScreenToClient]
mov rdx, qword [rsp + 0x58]
lea rcx, [rbp - 0x78]
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x140010aa7
movsxd rax, dword [r14 + 0x5c]
cmp eax, 0x11
ja case.0x140010de2.0
mov ecx, dword [rsi + rax*4 + 0x11208]
add rcx, rsi
jmp rcx
mov edx, 0x7f01
jmp 0x140010e28
mov edx, 0x7f89
jmp 0x140010e28
mov edx, 0x7f02
jmp 0x140010e28
mov edx, 0x7f8b
jmp 0x140010e28
mov edx, 0x7f84
jmp 0x140010e28
mov edx, 0x7f85
jmp 0x140010e28
mov edx, 0x7f83
jmp 0x140010e28
mov edx, 0x7f82
jmp 0x140010e28
mov edx, 0x7f86
jmp 0x140010e28
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
test rax, rax
je 0x140010aa7
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
xor esi, esi
mov eax, esi
jmp 0x140010fed
mov rcx, r15
shr rcx, 0x10
mov eax, ecx
and eax, 0x4000
mov r8d, eax
or r8d, edx
and cx, dx
cmove r8d, eax
xor r9d, r9d
mov edx, edi
mov rcx, qword [r14 + 0x28]
call qword [0x140165c18]
jmp 0x140011157
cmp ebx, 0x113
ja 0x140010fb5
je 0x140010f97
mov eax, ebx
sub eax, 0x101
je 0x140010f68
sub eax, 1
je 0x140010f49
cmp eax, 0xb
jne case.0x1400109d5.3
mov rdx, qword [rcx + 0x28]
lea rcx, [rbp - 0x78]
call qword [0x140165b48]
movups xmm0, xmmword [rax]
xor esi, esi
mov dword [rsp + 0x68], esi
mov dword [rsp + 0x6c], 0x80
movq r9, xmm0
mov dword [rsp + 0x70], r9d
mov r8, r9
shr r8, 0x20
psrldq xmm0, 8
movq rdx, xmm0
mov rcx, rdx
shr rcx, 0x20
add ecx, r8d
mov dword [rsp + 0x74], ecx
mov dword [rsp + 0x7c], r8d
mov dword [rbp - 0x7c], ecx
mov dword [rsp + 0x78], r9d
lea eax, [rdx + r9]
mov dword [rbp - 0x80], eax
mov rcx, qword [r14 + 0x20]
mov rax, qword [rcx]
call qword [rax + gethostname]
mov rcx, rax
call fcn.14006c3fc
mov rdi, rax
mov rcx, rax
call qword [sym.imp.IMM32.dll_ImmGetContext]
mov rbx, rax
lea rdx, [rsp + 0x68]
mov rcx, rax
call qword [sym.imp.IMM32.dll_ImmSetCandidateWindow]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.IMM32.dll_ImmReleaseContext]
mov eax, esi
jmp 0x140010fed
mov rax, r15
shr rax, 0x10
movzx r8d, ax
xor r9d, r9d
mov edx, edi
mov rcx, qword [rcx + 0x28]
call qword [0x140165c00]
jmp 0x140011157
mov rcx, r15
shr rcx, 0x10
mov eax, ecx
and eax, 0x4000
mov r8d, eax
or r8d, edx
and cx, dx
cmove r8d, eax
xor r9d, r9d
mov edx, edi
mov rcx, qword [r14 + 0x28]
call qword [0x140165a58]
jmp 0x140011157
cmp rdi, 1
jne 0x140010aa7
mov rcx, qword [rcx + 0x30]
mov rax, qword [rcx]
mov rdx, qword [r14 + 0x28]
call qword [rax + 0x18]
xor esi, esi
mov eax, esi
jmp 0x140010fed
cmp ebx, 0x200
jb case.0x1400109d5.3
cmp ebx, 0x209
jbe 0x140011093
cmp ebx, 0x20a
je 0x14001100c
cmp ebx, 0x2a3
je 0x140011093
mov r9, r15
mov r8, rdi
mov edx, ebx
mov rcx, r14
call fcn.140076884
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.1400ce670
add rsp, 0x1e8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
movsx eax, r15w
mov dword [rsp + 0x58], eax
mov rax, r15
shr rax, 0x10
cwde
mov dword [rsp + 0x5c], eax
lea rdx, [rsp + 0x58]
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_ScreenToClient]
mov rax, rdi
shr rax, 0x10
movsx r9d, ax
mov ecx, edi
and ecx, 8
movzx eax, dil
mov edx, ecx
or edx, 4
and al, 4
cmove edx, ecx
movzx eax, dil
mov ecx, edx
or ecx, 1
and al, 1
cmove ecx, edx
movzx eax, dil
mov edx, ecx
or edx, 0x10
and al, 0x10
cmove edx, ecx
movzx eax, dil
mov ecx, edx
or ecx, 2
and al, 2
cmove ecx, edx
mov dword [rsp + 0x20], ecx
mov r8d, dword [rsp + 0x5c]
mov edx, dword [rsp + 0x58]
mov rcx, qword [r14 + 0x28]
call qword [0x140165a68]
jmp 0x140011157
mov rcx, qword [rcx + 0x28]
call qword [0x140165ae8]
mov dword [r14 + 0x5c], eax
lea eax, [rbx - 0x201]
mov ecx, 0x49
cmp eax, 6
ja 0x1400110cc
bt ecx, eax
jae 0x1400110cc
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_SetFocus]
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_SetCapture]
jmp 0x1400110e2
lea eax, [rbx - 0x202]
cmp eax, 6
ja 0x1400110e2
bt ecx, eax
jae 0x1400110e2
call qword [sym.imp.USER32.dll_ReleaseCapture]
lea rdx, [rsp + 0x68]
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_GetClientRect]
movsx r8d, r15w
sub r8d, dword [rsp + 0x68]
mov rax, r15
shr rax, 0x10
movsx r9d, ax
sub r9d, dword [rsp + 0x6c]
mov ecx, edi
and ecx, 8
movzx eax, dil
mov edx, ecx
or edx, 4
and al, 4
cmove edx, ecx
movzx eax, dil
mov ecx, edx
or ecx, 1
and al, 1
cmove ecx, edx
movzx eax, dil
mov edx, ecx
or edx, 0x10
and al, 0x10
cmove edx, ecx
movzx eax, dil
mov ecx, edx
or ecx, 2
and al, 2
cmove ecx, edx
mov dword [rsp + 0x20], ecx
mov edx, ebx
mov rcx, qword [r14 + 0x28]
call qword [0x140165b50]
xor esi, esi
test eax, eax
je case.0x1400109d5.3
mov eax, esi
jmp 0x140010fed