Function at 0x1400293f0
Capabilities:
Hide graphical window

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xf8
mov rax, qword [rcx + 0x48]
test rax, rax
mov rbx, rcx
mov rsi, rdx
mov qword [rsp + 0x158], r9
mov r14, r8
je 0x1400297a0
lea r12, [rsp + 0xc0]
mov qword [rsp + 0xc4], 0
mov rcx, qword [rax + 0x100]
mov ebp, 0x40008
mov qword [rsp + 0xcc], 0
mov rdx, r12
mov edi, 0x86000000
mov qword [rsp + 0xd4], 0
mov qword [rsp + 0xdc], 0
mov dword [rsp + 0xe4], 0
mov dword [rsp + 0xc0], 0x28
call qword [sym.imp.USER32.dll_GetMonitorInfoW]
mov r15d, dword [rsp + 0xc4]
mov eax, dword [rsp + 0xcc]
mov r13d, dword [rsp + 0xc8]
sub eax, r15d
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0xd0]
sub eax, r13d
mov dword [rsp + 0x6c], eax
mov rcx, qword [rsi + 8]
call sym._glfwCreateWideStringFromUTF8Win32
test rax, rax
mov r10, rax
je 0x140029783
mov rax, qword [0x14006d9c0]
mov r8, r10
mov r9d, edi
mov ecx, ebp
mov qword [rsp + 0x58], rsi
lea rdx, str.GLFW30
mov rax, qword [rax + 0x16b0]
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x20], r15d
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x60]
mov qword [rsp + 0x60], r10
mov dword [rsp + 0x30], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov r10, qword [rsp + 0x60]
mov qword [rbx + 0x350], rax
mov rcx, r10
call sym.free
mov rcx, qword [rbx + 0x350]
test rcx, rcx
je 0x140029772
lea rdx, str.GLFW
mov r8, rbx
call qword [sym.imp.USER32.dll_SetPropW]
xor r8d, r8d
mov edx, 1
mov ecx, 6
call sym._glfwIsWindowsVersionOrGreaterWin32
test eax, eax
je 0x1400295d8
mov rax, qword [0x14006d9c0]
xor r9d, r9d
mov edx, 0x233
mov r8d, 1
mov rcx, qword [rbx + 0x350]
call qword [rax + 0x24d8]
mov rax, qword [0x14006d9c0]
xor r9d, r9d
mov r8d, 1
mov rcx, qword [rbx + 0x350]
mov edx, 0x4a
call qword [rax + 0x24d8]
mov rax, qword [0x14006d9c0]
xor r9d, r9d
mov r8d, 1
mov rcx, qword [rbx + 0x350]
mov edx, 0x49
call qword [rax + 0x24d8]
mov eax, dword [rsi + 0x34]
cmp qword [rbx + 0x48], 0
mov rcx, qword [rbx + 0x350]
mov dword [rbx + 0x37c], eax
je 0x1400298d0
mov edx, 1
call qword [sym.imp.SHELL32.dll_DragAcceptFiles]
mov rax, qword [rsp + 0x158]
mov r9d, dword [rax + 0x3c]
test r9d, r9d
jne 0x1400298b0
mov rcx, qword [rbx + 0x350]
mov rdx, r12
call qword [sym.imp.USER32.dll_GetClientRect]
mov rax, qword [rsp + 0xc8]
mov qword [rbx + 0x380], rax
mov r8d, dword [r14]
test r8d, r8d
je 0x140029672
mov eax, dword [r14 + 4]
cmp eax, 0x36001
je 0x140029ad0
cmp eax, 0x36002
je 0x140029b00
cmp eax, 0x36003
je 0x140029b30
mov rdx, r14
mov rcx, rbx
call sym._glfwRefreshContextAttribs
test eax, eax
je 0x140029783
cmp qword [rbx + 0x48], 0
je 0x140029854
mov edx, 8
mov rcx, qword [rbx + 0x350]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 0x350]
call qword [sym.imp.USER32.dll_BringWindowToTop]
mov rcx, qword [rbx + 0x350]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov rcx, qword [rbx + 0x350]
call qword [sym.imp.USER32.dll_SetFocus]
mov rcx, rbx
call sym.acquireMonitor
mov rax, qword [rbx + 0x48]
mov rdx, r12
mov qword [rsp + 0xc4], 0
mov qword [rsp + 0xcc], 0
mov qword [rsp + 0xd4], 0
mov qword [rsp + 0xdc], 0
mov rcx, qword [rax + 0x100]
mov dword [rsp + 0xe4], 0
mov dword [rsp + 0xc0], 0x28
call qword [sym.imp.USER32.dll_GetMonitorInfoW]
mov r9d, dword [rsp + 0xc8]
mov dword [rsp + 0x30], 0x114
mov rdx, 0xffffffffffffffff
mov eax, dword [rsp + 0xd0]
mov r8d, dword [rsp + 0xc4]
mov rcx, qword [rbx + 0x350]
sub eax, r9d
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xcc]
sub eax, r8d
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [rsi + 0x2c]
test ecx, ecx
jne 0x140029ac0
mov eax, 1
jmp 0x140029785
lea rdx, str.Win32:_Failed_to_create_window
mov ecx, 0x10008
call sym._glfwInputErrorWin32
xor eax, eax
add rsp, 0xf8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r15d, dword [rcx + 0xc]
mov eax, 0x870a0000
mov edi, 0x860a0000
test r15d, r15d
je 0x1400297d5
cmp dword [rcx + 8], 1
sbb eax, eax
and eax, 0xfffb0000
add eax, 0x7cf0000
cmp dword [rcx + 8], 1
sbb edi, edi
and edi, 0xfffb0000
add edi, 0x6cf0000
mov rdx, qword [rsi]
lea r12, [rsp + 0xc0]
mov qword [rsp + 0xc0], 0
mov r13d, 0x80000000
cmp dword [rbx + 0x14], 1
mov rcx, r12
mov r15d, r13d
mov qword [rsp + 0xc8], rdx
mov edx, dword [rsi + 0x28]
sbb ebp, ebp
and ebp, 0xfffffff8
add ebp, 0x40008
test edx, edx
mov dword [rbx + 0x374], edx
mov r9d, ebp
cmovne edi, eax
xor r8d, r8d
mov edx, edi
call qword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [rsp + 0xc8]
sub eax, dword [rsp + 0xc0]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0xcc]
sub eax, dword [rsp + 0xc4]
mov dword [rsp + 0x6c], eax
jmp 0x1400294b5
mov edx, dword [rsi + 0x14]
test edx, edx
je 0x14002976b
mov rcx, qword [rbx + 0x350]
mov edx, 8
call qword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [rsi + 0x1c]
test eax, eax
je 0x14002976b
mov rcx, qword [rbx + 0x350]
call qword [sym.imp.USER32.dll_BringWindowToTop]
mov rcx, qword [rbx + 0x350]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov rcx, qword [rbx + 0x350]
call qword [sym.imp.USER32.dll_SetFocus]
mov eax, 1
jmp 0x140029785
lea rcx, [rbx + 0x350]
call sym.updateFramebufferTransparency.isra.8
mov dword [rbx + 0x378], 1
jmp 0x140029613
mov rax, qword [rsi]
mov qword [rsp + 0x80], 0
mov edx, 2
mov qword [rsp + 0xc4], 0
mov qword [rsp + 0xcc], 0
mov qword [rsp + 0xd4], 0
mov qword [rsp + 0x88], rax
mov qword [rsp + 0xdc], 0
mov qword [rsp + 0xe4], 0
mov dword [rsp + 0xc0], 0x2c
call qword [sym.imp.USER32.dll_MonitorFromWindow]
mov r13d, dword [rsi + 0x34]
mov qword [rsp + 0x60], rax
test r13d, r13d
jne 0x140029b80
mov ecx, 0x3839
call sym._glfwIsWindows10BuildOrGreaterWin32
test eax, eax
je 0x140029b60
mov rax, qword [0x14006d9c0]
lea r13, [rsp + 0x80]
mov rcx, qword [rbx + 0x350]
mov r15, qword [rax + 0x24f8]
call qword [rax + 0x24f0]
mov r9d, ebp
xor r8d, r8d
mov edx, edi
mov dword [rsp + 0x20], eax
mov rcx, r13
call r15
mov rcx, qword [rbx + 0x350]
mov rdx, r12
call qword [sym.imp.USER32.dll_GetWindowPlacement]
mov edx, dword [rsp + 0xdc]
mov rcx, r13
sub edx, dword [rsp + 0x80]
mov r8d, dword [rsp + 0xe0]
sub r8d, dword [rsp + 0x84]
call qword [sym.imp.USER32.dll_OffsetRect]
mov rcx, qword [rbx + 0x350]
mov rdx, r12
mov dword [rsp + 0xc8], 0
movdqa xmm4, xmmword [rsp + 0x80]
movups xmmword [rsp + 0xdc], xmm4
call qword [sym.imp.USER32.dll_SetWindowPlacement]
mov r11d, dword [rsi + 0x28]
test r11d, r11d
je 0x140029ab0
mov r10d, dword [rsi + 0x18]
test r10d, r10d
jne 0x140029ab0
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x94], 0
mov qword [rsp + 0x9c], 0
mov qword [rsp + 0xa4], 0
mov qword [rsp + 0xac], 0
mov dword [rsp + 0xb4], 0
mov dword [rsp + 0x90], 0x28
call qword [sym.imp.USER32.dll_GetMonitorInfoW]
mov r9d, dword [rsp + 0xa8]
xor edx, edx
mov dword [rsp + 0x30], 0x14
mov eax, dword [rsp + 0xb0]
mov r8d, dword [rsp + 0xa4]
mov rcx, qword [rbx + 0x350]
sub eax, r9d
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xac]
sub eax, r8d
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_SetWindowPos]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x350]
jmp 0x1400295f3
mov rcx, rbx
call sym._glfwCenterCursorInContentArea
jmp 0x14002976b
call sym._glfwInitWGL
test eax, eax
je 0x140029783
mov r8, qword [rsp + 0x158]
mov rdx, r14
mov rcx, rbx
call sym._glfwCreateContextWGL
test eax, eax
jne 0x14002965f
jmp 0x140029783
call sym._glfwInitEGL
test eax, eax
je 0x140029783
mov r8, qword [rsp + 0x158]
mov rdx, r14
mov rcx, rbx
call sym._glfwCreateContextEGL
test eax, eax
jne 0x14002965f
jmp 0x140029783
call sym._glfwInitOSMesa
test eax, eax
je 0x140029783
mov r8, qword [rsp + 0x158]
mov rdx, r14
mov rcx, rbx
call sym._glfwCreateContextOSMesa
test eax, eax
jne 0x14002965f
jmp 0x140029783
lea r13, [rsp + 0x80]
mov r9d, ebp
xor r8d, r8d
mov edx, edi
mov rcx, r13
call qword [sym.imp.USER32.dll_AdjustWindowRectEx]
jmp 0x140029992
lea rdx, [rsp + 0x7c]
mov rcx, rax
lea r8, [rsp + 0x90]
call sym._glfwGetMonitorContentScaleWin32
movss xmm1, dword [rsp + 0x7c]
pxor xmm0, xmm0
comiss xmm1, xmm0
jbe 0x14002994b
movss xmm3, dword [rsp + 0x90]
comiss xmm3, xmm0
jbe 0x14002994b
pxor xmm2, xmm2
pxor xmm0, xmm0
cvtsi2ss xmm2, dword [rsp + 0x88]
cvtsi2ss xmm0, dword [rsp + 0x8c]
mulss xmm1, xmm2
mulss xmm0, xmm3
cvttss2si eax, xmm1
mov dword [rsp + 0x88], eax
cvttss2si eax, xmm0
mov dword [rsp + 0x8c], eax
jmp 0x14002994b