Function at 0x180158200
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov rsi, rdx
mov rax, qword [0x180344aa8]
test rax, rax
jne 0x180158247
lea ecx, [rax + 8]
call fcn.1802037c4
mov qword [rsp + 0x50], rax
lea rcx, vtable.CShareConfigManager.0
mov qword [rax], rcx
mov qword [0x180344aa8], rax
mov r8, qword [rax]
mov edx, 0x56
mov rcx, rax
call qword [r8]
test eax, eax
je 0x180158266
mov rdx, rsi
call fcn.180157b90
jmp 0x1801584ce
mov rbx, qword [0x180344ad0]
test rbx, rbx
jne 0x180158294
mov ecx, 0x238
call fcn.1802037c4
mov rbx, rax
mov qword [rsp + 0x50], rax
mov rcx, rax
call fcn.18006f080
nop
mov qword [0x180344ad0], rbx
mov rcx, rbx
call fcn.180071370
mov rbx, qword [0x180344ad0]
test rbx, rbx
jne 0x1801582ca
mov ecx, 0x238
call fcn.1802037c4
mov rbx, rax
mov qword [rsp + 0x50], rax
mov rcx, rax
call fcn.18006f080
nop
mov qword [0x180344ad0], rbx
mov rcx, rbx
call fcn.1800713e0
mov rdi, qword [0x180344ad0]
test rdi, rdi
jne 0x180158300
mov ecx, 0x238
call fcn.1802037c4
mov rdi, rax
mov qword [rsp + 0x50], rax
mov rcx, rax
call fcn.18006f080
nop
mov qword [0x180344ad0], rdi
mov ebp, dword [rsi]
mov dword [rsp + 0x50], ebp
mov esi, dword [rsi + 4]
mov dword [rsp + 0x54], esi
test rdi, rdi
jne 0x180158334
mov ecx, 0x238
call fcn.1802037c4
mov rdi, rax
mov qword [rsp + 0x60], rax
mov rcx, rax
call fcn.18006f080
nop
mov qword [0x180344ad0], rdi
lea rcx, [rdi + 0x228]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rdi + 0x220]
mov rax, qword [rdi + 0x228]
sub rax, qword [rcx]
imul rax, rax, 0x3e8
cqo
idiv qword [rdi + 0x230]
cmp rax, 0x3e8
jle 0x180158389
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x50]
call fcn.18008a340
mov dword [rdi + 0x10], eax
mov eax, dword [0x180341d3c]
mov dword [rdi + 0x1c8], eax
cmp esi, dword [rdi + 0x10]
cmovg esi, dword [rdi + 0x10]
test ebp, ebp
jne 0x18015839c
test esi, esi
je 0x1801584ce
mov rax, qword [0x180344fc0]
test rax, rax
jne 0x1801583c7
mov ecx, 0x430
call fcn.1802037c4
mov qword [rsp + 0x68], rax
mov rcx, rax
call fcn.180107280
nop
mov qword [0x180344fc0], rax
mov rcx, rax
call fcn.18010b180
call qword [sym.imp.USER32.dll_GetFocus]
mov rdi, rax
xor eax, eax
mov qword [rsp + 0x60], rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
lea r9, [rsp + 0x60]
mov r8d, 1
lea rdx, [0x1802b24b8]
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetTextExtentPointW]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [rsp + 0x60]
add edx, 2
add edx, ebp
mov dword [rsp + 0x50], edx
mov edx, dword [rsp + 0x64]
add edx, 3
add edx, esi
mov dword [rsp + 0x54], edx
mov rax, qword [0x180344fc0]
test rax, rax
jne 0x180158457
mov ecx, 0x430
call fcn.1802037c4
mov qword [rsp + 0x68], rax
mov rcx, rax
call fcn.180107280
nop
mov qword [0x180344fc0], rax
lea r8, [rsp + 0x68]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call fcn.180108770
call fcn.180211d54
mov r9, qword [rax]
mov rbx, qword [rsp + 0x68]
mov r8d, ebx
mov edx, 9
mov rcx, rax
call qword [r9 + 8]
call fcn.180211d54
mov r9, qword [rax]
mov r8d, dword [rsp + 0x6c]
mov edx, 0xa
mov rcx, rax
call qword [r9 + 8]
call fcn.180211b44
mov r9, qword [rax]
mov r8d, ebx
mov edx, 0x80
mov rcx, rax
call qword [r9 + 8]
call fcn.180211b44
mov r9, qword [rax]
mov r8d, dword [rsp + 0x6c]
mov edx, 0x81
mov rcx, rax
call qword [r9 + 8]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret