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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x90
mov rax, qword [0x140425440]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rdx
mov rbx, rcx
cmp byte [rcx + 0x119], 0
jne 0x140088031
lea rsi, [rcx + 0x154]
mov qword [rsp + 0x60], rsi
movzx eax, byte [rsi]
mov byte [rsp + 0x68], al
mov byte [rsi], 1
mov byte [rcx + 0xb0], r8b
mov ecx, dword [rcx + 0xb8]
mov r8d, dword [rbx + 0xc0]
add r8d, dword [rdx + 0xc]
add r8d, ecx
mov eax, dword [rbx + 0xbc]
mov edx, dword [rbx + 0xc4]
add edx, dword [rdi + 8]
add edx, eax
mov r14d, dword [rdi + 4]
sub r14d, ecx
mov r15d, dword [rdi]
sub r15d, eax
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x34], r14d
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
mov rax, qword [rbx + 8]
movzx ecx, byte [rax + 0xd0]
shr cl, 2
not cl
test cl, 1
je 0x140087f1e
mov rcx, qword [rbx + 0x88]
call qword [sym.imp.USER32.dll_GetParent]
test rax, rax
je 0x140087f1e
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1401ec8c0
mov rdx, qword [rax]
mov r8, rdx
shr r8, 0x20
mov rax, qword [rax + 8]
mov rcx, rax
shr rcx, 0x20
sub ecx, r8d
sub eax, edx
mov dword [rsp + 0x20], edx
mov dword [rsp + 0x24], r8d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x2c], ecx
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x50], xmm0
mov r8, qword [rbx + 0x88]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.1401e8160
mov ecx, dword [rsp + 0x20]
add ecx, r15d
mov dword [rsp + 0x30], ecx
mov ecx, dword [rsp + 0x24]
add ecx, r14d
mov dword [rsp + 0x34], ecx
mov rax, qword [rbx]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [rax + 0x38]
mov rcx, qword [rdi]
mov rax, qword [rsp + 0x40]
mov rdx, rax
shr rdx, 0x20
cmp eax, ecx
jne 0x140087f4b
shr rcx, 0x20
cmp edx, ecx
jne 0x140087f4b
xor cl, cl
jmp 0x140087f4d
mov cl, 1
mov eax, dword [rdi + 8]
cmp dword [rsp + 0x48], eax
jne 0x140087f64
mov eax, dword [rdi + 0xc]
cmp dword [rsp + 0x4c], eax
jne 0x140087f64
xor dil, dil
jmp 0x140087f67
mov dil, 1
movzx eax, cl
xor eax, 1
lea eax, [rax*2 + 0x214]
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x50], xmm0
cmp byte [rbx + 0x118], 0
sete r9b
mov r8d, eax
or r8d, 1
test dil, dil
cmovne r8d, eax
lea rdx, [rsp + 0x50]
mov rcx, qword [rbx + 0x88]
call fcn.1401ec950
test dil, dil
je 0x14008802a
mov rcx, rbx
call fcn.1401fc850
test al, al
je 0x14008802a
mov rcx, rbx
call fcn.140087cd0
mov rax, qword [rbx + 8]
movzx ecx, byte [rax + 0xd0]
shr cl, 2
not cl
test cl, 1
je 0x14008802a
cmp dword [rbx + 0xa4], 0
jbe 0x14008802a
call qword [sym.imp.WINMM.dll_timeGetTime]
mov edx, eax
mov ecx, dword [0x14044a040]
nop
cmp eax, ecx
jae 0x14008800e
mov ecx, dword [0x14044a040]
nop
add ecx, 0xfffffc18
cmp eax, ecx
jae 0x140088014
mov ecx, eax
xchg dword [0x14044a040], ecx
jmp 0x140088014
xchg dword [0x14044a040], eax
mov eax, dword [rbx + 0xa4]
add eax, 0x1e
cmp edx, eax
jbe 0x14008802a
mov rcx, rbx
call fcn.14008aea0
nop
movzx eax, byte [rsp + 0x68]
mov byte [rsi], al
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400d9d70
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret