Function at 0x18005e370
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 [0x18032a080]
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 0x18005e88a
je 0x18005e85b
lea eax, [rbx - 1]
cmp eax, 0x7a
ja case.0x18005e3e5.3
lea rsi, [0x180000000]
movzx eax, byte [rsi + rax + 0x5eb9c]
mov ecx, dword [rsi + rax*4 + 0x5eb78]
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 [0x180332700]
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 0x18005e9fd
call qword [0x180332690]
mov qword [r14 + 0x28], rax
test rax, rax
jne 0x18005e4de
mov rsi, 0xffffffffffffffff
mov rax, rsi
jmp 0x18005e9fd
mov rdx, qword [r14 + 8]
mov rcx, rax
call qword [0x180332790]
mov ecx, gethostbyname
call fcn.18022a7fc
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 sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x10]
call qword [0x180332838]
xor edx, edx
mov rcx, qword [r14 + 0x28]
call qword [0x1803327a8]
xor r8d, r8d
lea rdx, [0x18005e140]
mov rcx, qword [r14 + 0x28]
call qword [0x180332728]
xor r8d, r8d
lea rdx, [0x18005e140]
mov rcx, qword [r14 + 0x28]
call qword [0x1803326d0]
xor r8d, r8d
lea rdx, [0x18005e160]
mov rcx, qword [r14 + 0x28]
call qword [0x180332840]
xor r8d, r8d
lea rdx, [0x18005e230]
mov rcx, qword [r14 + 0x28]
call qword [0x1803326f0]
mov r8, r14
lea rdx, [0x18005e350]
mov rcx, qword [r14 + 0x28]
call qword [0x180332808]
xor r8d, r8d
lea rdx, [fcn.180008bf0]
mov rcx, qword [r14 + 0x28]
call qword [0x180332688]
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 [0x1803327e8]
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 0x18005e9fd
mov rcx, qword [r14 + 0x30]
xor esi, esi
test rcx, rcx
je 0x18005e60a
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 0x18005e61d
call qword [0x1803327b8]
mov qword [r14 + 0x28], rsi
mov edx, 1
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_KillTimer]
mov rax, rsi
jmp 0x18005e9fd
lea rcx, [rsp + 0x58]
call fcn.1801e2ec8
mov rcx, r14
call fcn.18002ad20
mov rcx, rax
lea rdx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rcx, [rsp + 0x58]
call fcn.1801e37c4
mov ebx, eax
lea rcx, [rsp + 0x58]
call fcn.1801e37e0
mov edx, eax
mov r8d, ebx
mov rcx, qword [r14 + 0x28]
call qword [0x180332698]
lea rcx, [rsp + 0x58]
call fcn.1801e37e0
test eax, eax
jle 0x18005e6cc
lea rcx, [rsp + 0x58]
call fcn.1801e37c4
test eax, eax
jle 0x18005e6cc
mov rax, qword [r14 + 0x30]
mov rdi, qword [rax]
lea rcx, [rsp + 0x58]
call fcn.1801e37c4
mov ebx, eax
lea rcx, [rsp + 0x58]
call fcn.1801e37e0
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 0x18005e9fd
mov rcx, qword [r14 + 0x28]
call qword [0x1803327a0]
xor esi, esi
mov eax, esi
jmp 0x18005e9fd
mov rcx, qword [r14 + 0x28]
call qword [0x180332778]
xor esi, esi
mov eax, esi
jmp 0x18005e9fd
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 0x18005e748
cmp r10d, 0xffffffff
je 0x18005e748
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 [0x1803326d8]
jmp 0x18005eb67
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 0x18005e4b7
movsxd rax, dword [r14 + 0x5c]
cmp eax, 0x11
ja case.0x18005e7f2.0
mov ecx, dword [rsi + rax*4 + 0x5ec18]
add rcx, rsi
jmp rcx
mov edx, 0x7f01
jmp 0x18005e838
mov edx, 0x7f89
jmp 0x18005e838
mov edx, 0x7f02
jmp 0x18005e838
mov edx, 0x7f8b
jmp 0x18005e838
mov edx, 0x7f84
jmp 0x18005e838
mov edx, 0x7f85
jmp 0x18005e838
mov edx, 0x7f83
jmp 0x18005e838
mov edx, 0x7f82
jmp 0x18005e838
mov edx, 0x7f86
jmp 0x18005e838
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
test rax, rax
je 0x18005e4b7
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
xor esi, esi
mov eax, esi
jmp 0x18005e9fd
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 [0x180332818]
jmp 0x18005eb67
cmp ebx, 0x113
ja 0x18005e9c5
je 0x18005e9a7
mov eax, ebx
sub eax, 0x101
je 0x18005e978
sub eax, 1
je 0x18005e959
cmp eax, 0xb
jne case.0x18005e3e5.3
mov rdx, qword [rcx + 0x28]
lea rcx, [rbp - 0x78]
call qword [0x180332748]
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.1801dc184
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 0x18005e9fd
mov rax, r15
shr rax, 0x10
movzx r8d, ax
xor r9d, r9d
mov edx, edi
mov rcx, qword [rcx + 0x28]
call qword [0x180332800]
jmp 0x18005eb67
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 [0x180332658]
jmp 0x18005eb67
cmp rdi, 1
jne 0x18005e4b7
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 0x18005e9fd
cmp ebx, 0x200
jb case.0x18005e3e5.3
cmp ebx, 0x209
jbe 0x18005eaa3
cmp ebx, 0x20a
je 0x18005ea1c
cmp ebx, 0x2a3
je 0x18005eaa3
mov r9, r15
mov r8, rdi
mov edx, ebx
mov rcx, r14
call fcn.1801e25bc
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.18022a7d0
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 [0x180332668]
jmp 0x18005eb67
mov rcx, qword [rcx + 0x28]
call qword [0x1803326e8]
mov dword [r14 + 0x5c], eax
lea eax, [rbx - 0x201]
mov ecx, 0x49
cmp eax, 6
ja 0x18005eadc
bt ecx, eax
jae 0x18005eadc
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 0x18005eaf2
lea eax, [rbx - 0x202]
cmp eax, 6
ja 0x18005eaf2
bt ecx, eax
jae 0x18005eaf2
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 [0x180332758]
xor esi, esi
test eax, eax
je case.0x18005e3e5.3
mov eax, esi
jmp 0x18005e9fd