Function at 0x140053270
Capabilities:
Hide graphical window
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x40
mov rsi, r8
mov r14, r9
mov r8, r9
mov rbp, rdx
mov rbx, rcx
call fcn.140052d80
test eax, eax
je 0x140053380
cmp dword [rsi], 0
je 0x1400534e5
mov eax, dword [rsi + 4]
cmp eax, 0x36001
jne 0x1400532d4
call fcn.14004d430
test eax, eax
je 0x140053380
mov r8, r14
mov rdx, rsi
mov rcx, rbx
call fcn.14004ddc0
jmp 0x1400534ca
cmp eax, 0x36002
jne 0x1400532fb
call fcn.140049b10
test eax, eax
je 0x140053380
mov r8, r14
mov rdx, rsi
mov rcx, rbx
call fcn.14004a1f0
jmp 0x1400534ca
cmp eax, 0x36003
jne 0x1400534d2
cmp qword [0x140141468], 0
lea rax, str.libOSMesa.dll
lea rcx, str.OSMesa.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
jne 0x1400534bc
mov qword [rsp + 0x50], rdi
xor edi, edi
nop dword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140141468], rax
mov rcx, rax
test rax, rax
jne 0x140053365
mov rax, qword [rsp + rdi*8 + 0x28]
inc rdi
test rax, rax
jne 0x140053340
mov rdi, qword [rsp + 0x50]
test rcx, rcx
jne 0x140053398
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.14004aaa0
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
lea rdx, str.OSMesaCreateContextExt
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140141468]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x140141470], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140141468]
lea rdx, str.OSMesaDestroyContext
mov qword [0x140141478], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140141468]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x140141480], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140141468]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x140141488], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140141468]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x140141490], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140141468]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x140141498], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140141470], 0
mov qword [0x1401414a0], rax
je 0x140053485
cmp qword [0x140141480], 0
je 0x140053485
cmp qword [0x140141488], 0
je 0x140053485
cmp qword [0x140141490], 0
je 0x140053485
cmp qword [0x140141498], 0
je 0x140053485
test rax, rax
jne 0x1400534bc
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.14004aaa0
mov rcx, qword [0x140141468]
test rcx, rcx
je 0x140053380
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x140141468], 0
jmp 0x140053380
mov r8, r14
mov rdx, rsi
mov rcx, rbx
call fcn.14004c6a0
test eax, eax
je 0x140053380
mov rdx, rsi
mov rcx, rbx
call fcn.140048cd0
test eax, eax
je 0x140053380
cmp qword [rbx + 0x48], 0
je 0x14005354d
mov rcx, qword [rbx + 0x350]
mov edx, 8
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 fcn.1400515e0
mov rcx, rbx
call fcn.140051540
cmp dword [rbp + 0x2c], 0
je 0x140053592
mov rcx, rbx
call fcn.14004bba0
mov eax, 1
jmp 0x140053382
cmp dword [rbp + 0x14], 0
je 0x140053592
mov rcx, qword [rbx + 0x350]
mov edx, 8
call qword [sym.imp.USER32.dll_ShowWindow]
cmp dword [rbp + 0x1c], 0
je 0x140053592
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 0x140053382