Function at 0x140041bc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x14011b040]
xor rax, rsp
mov qword [rbp + 0xe8], rax
mov rsi, r8
mov rbx, rcx
mov qword [rbp - 0x30], r8
mov rcx, qword [rcx + 0x28]
cmp qword [rcx + 0x10], 0
jne 0x140041c53
cmp qword [rcx + 0x48], 0
jne 0x140041c53
mov rax, qword [rcx + 0x88]
cmp qword [rcx + 0x80], rax
jne 0x140041c53
xor r14d, r14d
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x3c], r14d
lea r8, [rsp + 0x3c]
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14003f530
mov eax, dword [rsp + 0x38]
mov dword [rbx + 0x70], eax
mov eax, dword [rsp + 0x3c]
mov dword [rbx + 0x74], eax
jmp 0x140042166
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x10], xmm0
mov edx, 2
mov rcx, qword [rbx + 0x1c38]
call qword [sym.imp.USER32.dll_MonitorFromRect]
test rax, rax
je 0x140041c98
mov dword [rbp + 0x20], 0x28
lea rdx, [rbp + 0x20]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
je 0x140041c98
lea rdx, [rbp + 0x34]
lea rcx, [rbp + 0x10]
call qword [sym.imp.USER32.dll_CopyRect]
mov dword [rsp + 0x48], 0x20
xor r14d, r14d
lea r15, [0x1400fc7a8]
nop word [rax + rax]
mov rcx, qword [rbx + 0x1c40]
mov rax, qword [rcx]
mov r9, qword [rax]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov rax, qword [rsi + 8]
test rax, rax
je 0x140041cd3
lock inc dword [rax + 8]
mov rax, qword [rsi]
mov qword [rsp + 0x68], rax
mov rax, qword [rsi + 8]
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0x68]
mov rdx, qword [rbp + 0x138]
call r9
mov rdx, qword [rbx + 0x20]
cmp dword [rdx + 0x1ec], 0
je 0x140041e50
mov qword [rsp + 0x40], r14
mov rcx, qword [rsi + 8]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x90]
xorps xmm0, xmm0
cmp qword [rdx + 0x148], 0
jne 0x140041d8d
movdqu xmmword [rsp + 0x78], xmm0
test rcx, rcx
je 0x140041d33
lock inc dword [rcx + 8]
mov rcx, qword [rsi]
mov qword [rsp + 0x78], rcx
mov rax, qword [rsi + 8]
mov qword [rbp - 0x80], rax
mov rcx, qword [rcx + 0x28]
mov qword [rsp + 0x50], rcx
test rcx, rcx
je 0x140041d58
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], 1
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x10], xmm0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
lea rdx, [rbp - 0x10]
jmp 0x140041e0a
movdqu xmmword [rbp - 0x78], xmm0
test rcx, rcx
je 0x140041d9b
lock inc dword [rcx + 8]
mov rcx, qword [rsi]
mov qword [rbp - 0x78], rcx
mov rax, qword [rsi + 8]
mov qword [rbp - 0x70], rax
mov rcx, qword [rcx + 0x28]
mov qword [rsp + 0x58], rcx
test rcx, rcx
je 0x140041dbf
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rax, qword [rbx + 0x20]
mov r8, qword [rax + 0x148]
lea rcx, [rax + 0x138]
cmp qword [rax + 0x150], 7
jbe 0x140041de2
mov rcx, qword [rax + 0x138]
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], r8
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp], xmm0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x78]
lea r9, [rsp + 0x58]
lea rdx, [rbp]
mov qword [rsp + 0x20], rax
mov rcx, rbx
call rdi
mov ecx, dword [rsp + 0x40]
mov dword [rbx + 0x10], ecx
mov eax, dword [rsp + 0x44]
mov dword [rbx + 0x18], eax
mov r8, qword [rbx + 0x20]
cmp qword [r8 + 0x148], 0
jne 0x140041e46
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov dword [rbx + 0x10], eax
cmp qword [r8 + 0x148], 0
je 0x140041e4d
add ecx, dword [r8 + 0x17c]
mov dword [rbx + 0x14], ecx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
mov rax, qword [rsi + 8]
test rax, rax
je 0x140041e65
lock inc dword [rax + 8]
mov rax, qword [rsi]
mov qword [rbp - 0x68], rax
mov rax, qword [rsi + 8]
mov qword [rbp - 0x60], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
lea r8, [rbp + 0x10]
mov rdx, qword [rbp + 0x138]
mov rcx, rbx
call fcn.1400421d0
test al, al
jne 0x140041cb0
mov rcx, qword [rbx + 0x1c40]
mov rax, qword [rcx]
mov edi, dword [rbp + 0x18]
sub edi, dword [rbp + 0x10]
lea rdx, [rbp - 0x28]
call qword [rax + 8]
sub edi, dword [rax]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov r12d, eax
mov rcx, qword [rbx + 0x1c40]
mov rdx, qword [rcx]
mov r8, qword [rdx + 8]
mov edi, dword [rbp + 0x1c]
sub edi, dword [rbp + 0x14]
lea rdx, [rbp - 0x20]
call r8
sub edi, dword [rax + 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov r13d, eax
mov rcx, qword [rbx + 0x1c40]
mov rdx, qword [rcx]
mov r8, qword [rdx + 0x10]
lea rdx, [rbp + 0x48]
call r8
lea rcx, [rbx + 0x78]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
mov r8d, r13d
mov edx, r12d
call qword [sym.imp.USER32.dll_OffsetRect]
mov rcx, qword [rbx + 0x1c40]
mov rax, qword [rcx]
lea rdx, [rbp + 0x58]
call qword [rax + 0x18]
lea rcx, [rbx + 0x88]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
mov r8d, r13d
mov edx, r12d
call qword [sym.imp.USER32.dll_OffsetRect]
mov rcx, qword [rbx + 0x1c40]
mov rax, qword [rcx]
lea rdx, [rbp + 0x68]
call qword [rax + 0x20]
lea rcx, [rbx + 0x98]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
mov r8d, r13d
mov edx, r12d
call qword [sym.imp.USER32.dll_OffsetRect]
mov rcx, qword [rbx + 0x1c40]
mov rax, qword [rcx]
lea rdx, [rbp + 0x78]
call qword [rax + 0x68]
lea rcx, [rbx + 0x1bd4]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
mov r8d, r13d
mov edx, r12d
call qword [sym.imp.USER32.dll_OffsetRect]
mov rcx, qword [rbx + 0x1c40]
mov rax, qword [rcx]
lea rdx, [rbp + 0x88]
call qword [rax + 0x70]
lea rcx, [rbx + 0x1be4]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
mov r8d, r13d
mov edx, r12d
call qword [sym.imp.USER32.dll_OffsetRect]
mov rax, qword [rbx + 0x28]
mov rcx, qword [rax + 0x88]
sub rcx, qword [rax + 0x80]
sar rcx, 3
movabs rax, 0x6db6db6db6db6db7
imul rcx, rax
movsxd rax, ecx
mov qword [rsp + 0x30], rax
test ecx, ecx
jle 0x140042103
mov qword [rsp + 0x60], r14
lea r15, [rbx + 0xd28]
nop
cmp r14d, 0x64
jge 0x140042103
mov rcx, qword [rbx + 0x1c40]
mov rax, qword [rcx]
mov r8d, r14d
lea rdx, [rbp + 0x98]
call qword [rax + 0x28]
movups xmm0, xmmword [rax]
movups xmmword [r15 - 0x640], xmm0
movsxd rdi, r14d
shl rdi, 4
add rdi, rbx
lea rcx, [rdi + 0x6e8]
mov r8d, r13d
mov edx, r12d
call qword [sym.imp.USER32.dll_OffsetRect]
mov rcx, qword [rbx + 0x1c40]
mov rax, qword [rcx]
mov r8d, r14d
lea rdx, [rbp + 0xa8]
call qword [rax + 0x30]
movups xmm0, xmmword [rax]
movups xmmword [r15], xmm0
lea rcx, [rdi + 0xd28]
mov r8d, r13d
mov edx, r12d
call qword [sym.imp.USER32.dll_OffsetRect]
mov rcx, qword [rbx + 0x1c40]
mov rax, qword [rcx]
mov r8d, r14d
lea rdx, [rbp + 0xb8]
call qword [rax + 0x40]
movups xmm0, xmmword [rax]
movups xmmword [r15 + 0x640], xmm0
lea rcx, [rdi + 0x1368]
mov r8d, r13d
mov edx, r12d
call qword [sym.imp.USER32.dll_OffsetRect]
mov rcx, qword [rbx + 0x1c40]
mov rax, qword [rcx]
mov r8d, r14d
lea rdx, [rbp + 0xc8]
call qword [rax + 0x38]
movups xmm0, xmmword [rax]
movups xmmword [r15 - 0xc80], xmm0
lea rcx, [rdi + 0xa8]
mov r8d, r13d
mov edx, r12d
call qword [sym.imp.USER32.dll_OffsetRect]
inc r14d
mov rax, qword [rsp + 0x60]
inc rax
mov qword [rsp + 0x60], rax
add r15, 0x10
cmp rax, qword [rsp + 0x30]
jl 0x140042000
mov rcx, qword [rbx + 0x1c40]
mov rax, qword [rcx]
lea rdx, [rbp + 0xd8]
call qword [rax + 0x48]
movups xmm0, xmmword [rax]
movups xmmword [rbx + 0x19a8], xmm0
mov eax, dword [rbp + 0x1c]
sub eax, dword [rbp + 0x14]
mov r9d, dword [rbp + 0x18]
sub r9d, dword [rbp + 0x10]
mov dword [rbx + 0x70], r9d
mov dword [rbx + 0x74], eax
mov dword [rsp + 0x20], eax
xor r8d, r8d
xor edx, edx
lea rcx, [rbx + 0x19c8]
call qword [sym.imp.USER32.dll_SetRect]
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
neg r8d
neg edx
lea rcx, [rbx + 0x19c8]
call qword [sym.imp.USER32.dll_InflateRect]
nop
mov rdi, qword [rsi + 8]
test rdi, rdi
je 0x14004219b
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14004219b
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x14004219b
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov rcx, qword [rbp + 0xe8]
xor rcx, rsp
call fcn.14006ce40
mov rbx, qword [rsp + 0x248]
add rsp, 0x1f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret