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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x118
mov rbx, rcx
mov rsi, rdx
mov qword [rsp + 0x170], r8
mov qword [rsp + 0x178], r9
call sym.getWindowStyle
mov edi, eax
mov rcx, rbx
call sym.getWindowExStyle
mov dword [rsp + 0x6c], eax
cmp word [0x1401f124a], 0
je 0x14007eef6
mov rax, qword [rbx + 0x50]
test rax, rax
je 0x14007f023
pxor xmm0, xmm0
movups xmmword [rsp + 0xc4], xmm0
movups xmmword [rsp + 0xd4], xmm0
mov dword [rsp + 0xe4], 0
mov dword [rsp + 0xc0], 0x28
lea rdx, [rsp + 0xc0]
mov rcx, qword [rax + 0x100]
call qword [sym.imp.USER32.dll_GetMonitorInfoW]
mov r14d, dword [rsp + 0xc4]
mov r15d, dword [rsp + 0xc8]
mov r12d, dword [rsp + 0xcc]
sub r12d, r14d
mov r13d, dword [rsp + 0xd0]
sub r13d, r15d
mov rcx, qword [rsi + 0x10]
call sym._glfwCreateWideStringFromUTF8Win32
mov rbp, rax
test rax, rax
je 0x14007f0e8
movzx edx, word [0x1401f124a]
mov qword [rsp + 0x58], rsi
mov rax, qword [0x1401f1238]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r14d
mov r9d, edi
mov r8, rbp
mov ecx, dword [rsp + 0x6c]
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [rbx + 0x358], rax
mov rcx, rbp
call sym._glfw_free
mov rcx, qword [rbx + 0x358]
test rcx, rcx
je 0x14007f0d7
mov r8, rbx
lea rdx, str.GLFW
call qword [sym.imp.USER32.dll_SetPropW]
mov r8d, 0
mov edx, 1
mov ecx, 6
call sym._glfwIsWindowsVersionOrGreaterWin32
test eax, eax
je 0x14007edfd
mov rcx, qword [rbx + 0x358]
mov r9d, 0
mov r8d, 1
mov edx, 0x233
call qword [0x1401f2068]
mov rcx, qword [rbx + 0x358]
mov r9d, 0
mov r8d, 1
mov edx, 0x4a
call qword [0x1401f2068]
mov rcx, qword [rbx + 0x358]
mov r9d, 0
mov r8d, 1
mov edx, 0x49
call qword [0x1401f2068]
mov eax, dword [rsi + 0x40]
mov dword [rbx + 0x384], eax
mov eax, dword [rsi + 0x348]
mov dword [rbx + 0x388], eax
cmp qword [rbx + 0x50], 0
je 0x14007f101
mov rcx, qword [rbx + 0x358]
mov edx, 1
call qword [sym.imp.SHELL32.dll_DragAcceptFiles]
mov rax, qword [rsp + 0x178]
cmp dword [rax + 0x3c], 0
jne 0x14007f35c
lea rdx, [rbx + 0x38c]
lea r8, [rbx + 0x390]
mov rcx, rbx
call sym._glfwGetWindowSizeWin32
mov rax, qword [rsp + 0x170]
cmp dword [rax], 0
je 0x14007eea0
mov eax, dword [rax + 4]
cmp eax, 0x36001
je 0x14007f373
cmp eax, 0x36002
je 0x14007f3a5
cmp eax, 0x36003
je 0x14007f3d7
mov rdx, qword [rsp + 0x170]
mov rcx, rbx
call sym._glfwRefreshContextAttribs
test eax, eax
je 0x14007f0ed
cmp dword [rsi + 0x3c], 0
jne 0x14007f409
cmp qword [rbx + 0x50], 0
je 0x14007f41b
mov rcx, rbx
call sym._glfwShowWindowWin32
mov rcx, rbx
call sym._glfwFocusWindowWin32
mov rcx, rbx
call sym.acquireMonitor
mov rcx, rbx
call sym.fitToMonitor
mov eax, 1
cmp dword [rsi + 0x34], 0
je 0x14007f0ed
mov rcx, rbx
call sym._glfwCenterCursorInContentArea
mov eax, 1
jmp 0x14007f0ed
pxor xmm0, xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xf0], xmm0
movaps xmmword [rsp + 0x100], xmm0
mov dword [rsp + 0xc0], 0x50
mov dword [rsp + 0xc4], 0x23
lea rax, [sym.windowProc]
mov qword [rsp + 0xc8], rax
mov rax, qword [0x1401f1238]
mov qword [rsp + 0xd8], rax
mov edx, 0x7f00
mov ecx, 0
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [rsp + 0xe8], rax
lea rax, str.GLFW30
mov qword [rsp + 0x100], rax
mov ecx, 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov dword [rsp + 0x28], 0x8040
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 1
lea rdx, str.GLFW_ICON
call qword [sym.imp.USER32.dll_LoadImageW]
mov qword [rsp + 0xe0], rax
test rax, rax
je 0x14007efed
lea rcx, [rsp + 0xc0]
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov word [0x1401f124a], ax
test ax, ax
jne 0x14007ec86
lea rdx, str.Win32:_Failed_to_register_window_class
mov ecx, 0x10008
call sym._glfwInputErrorWin32
jmp 0x14007f0e8
mov dword [rsp + 0x28], 0x8040
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 1
mov edx, 0x7f00
mov ecx, 0
call qword [sym.imp.USER32.dll_LoadImageW]
mov qword [rsp + 0xe0], rax
jmp 0x14007efb9
mov dword [rsp + 0xc0], 0
mov dword [rsp + 0xc4], 0
mov eax, dword [rsi + 8]
mov dword [rsp + 0xc8], eax
mov eax, dword [rsi + 0xc]
mov dword [rsp + 0xcc], eax
mov eax, dword [rsi + 0x30]
mov dword [rbx + 0x37c], eax
mov edx, edi
or edx, 0x1000000
test eax, eax
cmovne edi, edx
lea rcx, [rsp + 0xc0]
mov r9d, dword [rsp + 0x6c]
mov r8d, 0
mov edx, edi
call qword [sym.imp.USER32.dll_AdjustWindowRectEx]
movabs rax, 0x8000000080000000
cmp qword [rsi], rax
je 0x14007f0c9
mov r14d, dword [rsp + 0xc0]
add r14d, dword [rsi]
mov r15d, dword [rsp + 0xc4]
add r15d, dword [rsi + 4]
mov r12d, dword [rsp + 0xc8]
sub r12d, dword [rsp + 0xc0]
mov r13d, dword [rsp + 0xcc]
sub r13d, dword [rsp + 0xc4]
jmp 0x14007ecf8
mov r15d, 0x80000000
mov r14d, 0x80000000
jmp 0x14007f0a4
lea rdx, str.Win32:_Failed_to_create_window
mov ecx, 0x10008
call sym._glfwInputErrorWin32
mov eax, 0
add rsp, 0x118
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rsp + 0x80], 0
mov dword [rsp + 0x84], 0
mov eax, dword [rsi + 8]
mov dword [rsp + 0x88], eax
mov eax, dword [rsi + 0xc]
mov dword [rsp + 0x8c], eax
pxor xmm0, xmm0
movups xmmword [rsp + 0xc4], xmm0
movups xmmword [rsp + 0xd4], xmm0
mov qword [rsp + 0xe4], 0
mov dword [rsp + 0xc0], 0x2c
mov rcx, qword [rbx + 0x358]
mov edx, 2
call qword [sym.imp.USER32.dll_MonitorFromWindow]
mov rbp, rax
cmp dword [rsi + 0x40], 0
jne 0x14007f2c1
mov ecx, 0x3839
call sym._glfwIsWindows10BuildOrGreaterWin32
test eax, eax
je 0x14007f33c
mov r12, qword [0x1401f2088]
mov rcx, qword [rbx + 0x358]
call qword [0x1401f2080]
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x6c]
mov r8d, 0
mov edx, edi
call r12
lea rdi, [rsp + 0xc0]
mov rcx, qword [rbx + 0x358]
mov rdx, rdi
call qword [sym.imp.USER32.dll_GetWindowPlacement]
mov edx, dword [rsp + 0xdc]
sub edx, dword [rsp + 0x80]
lea rcx, [rsp + 0x80]
mov r8d, dword [rsp + 0xe0]
sub r8d, dword [rsp + 0x84]
call qword [sym.imp.USER32.dll_OffsetRect]
movdqa xmm3, xmmword [rsp + 0x80]
movups xmmword [rsp + 0xdc], xmm3
mov dword [rsp + 0xc8], 0
mov rcx, qword [rbx + 0x358]
mov rdx, rdi
call qword [sym.imp.USER32.dll_SetWindowPlacement]
cmp dword [rsi + 0x30], 0
je 0x14007ee1d
cmp dword [rsi + 0x20], 0
jne 0x14007ee1d
pxor xmm0, xmm0
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
mov dword [rsp + 0xb4], 0
mov dword [rsp + 0x90], 0x28
lea rdx, [rsp + 0x90]
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetMonitorInfoW]
mov r9d, dword [rsp + 0xa8]
mov r8d, dword [rsp + 0xa4]
mov rcx, qword [rbx + 0x358]
mov dword [rsp + 0x30], 0x14
mov eax, dword [rsp + 0xb0]
sub eax, r9d
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xac]
sub eax, r8d
mov dword [rsp + 0x20], eax
mov edx, 0
call qword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x14007ee1d
lea rdx, [rsp + 0x7c]
lea r8, [rsp + 0x90]
mov rcx, rax
call sym._glfwGetHMONITORContentScaleWin32
movss xmm0, dword [rsp + 0x7c]
pxor xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14007f175
movss xmm1, dword [rsp + 0x90]
pxor xmm2, xmm2
comiss xmm1, xmm2
jbe 0x14007f175
pxor xmm2, xmm2
cvtsi2ss xmm2, dword [rsp + 0x88]
mulss xmm0, xmm2
cvttss2si eax, xmm0
mov dword [rsp + 0x88], eax
pxor xmm0, xmm0
cvtsi2ss xmm0, dword [rsp + 0x8c]
mulss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [rsp + 0x8c], eax
jmp 0x14007f175
lea rcx, [rsp + 0x80]
mov r9d, dword [rsp + 0x6c]
mov r8d, 0
mov edx, edi
call qword [sym.imp.USER32.dll_AdjustWindowRectEx]
jmp 0x14007f1b7
mov rcx, rbx
call sym.updateFramebufferTransparency
mov dword [rbx + 0x380], 1
jmp 0x14007ee41
call sym._glfwInitWGL
test eax, eax
je 0x14007f0ed
mov r8, qword [rsp + 0x178]
mov rdx, qword [rsp + 0x170]
mov rcx, rbx
call sym._glfwCreateContextWGL
test eax, eax
jne 0x14007ee88
jmp 0x14007f0ed
call sym._glfwInitEGL
test eax, eax
je 0x14007f0ed
mov r8, qword [rsp + 0x178]
mov rdx, qword [rsp + 0x170]
mov rcx, rbx
call sym._glfwCreateContextEGL
test eax, eax
jne 0x14007ee88
jmp 0x14007f0ed
call sym._glfwInitOSMesa
test eax, eax
je 0x14007f0ed
mov r8, qword [rsp + 0x178]
mov rdx, qword [rsp + 0x170]
mov rcx, rbx
call sym._glfwCreateContextOSMesa
test eax, eax
jne 0x14007ee88
jmp 0x14007f0ed
mov edx, 1
mov rcx, rbx
call sym._glfwSetWindowMousePassthroughWin32
jmp 0x14007eeaa
mov eax, 1
cmp dword [rsi + 0x1c], 0
je 0x14007f0ed
mov rcx, rbx
call sym._glfwShowWindowWin32
mov eax, 1
cmp dword [rsi + 0x24], 0
je 0x14007f0ed
mov rcx, rbx
call sym._glfwFocusWindowWin32
mov eax, 1
jmp 0x14007f0ed