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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1800ad010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, qword [0x1800b6930]
lea rcx, [0x1800a27b0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1800b6ba8], rax
test rax, rax
je 0x180042738
lea rdx, [0x1800a27c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x180042380]
mov qword [0x1800b6bb8], rax
call fcn.180046834
xor edi, edi
lea rbp, [0x180000000]
mov ebx, edi
nop word [rax + rax]
mov rcx, qword [rbx + rbp + 0xa1d00]
call fcn.180042390
mov qword [rbx + rbp + 0xb6950], rax
add rbx, 8
cmp rbx, 0x1d8
jb 0x180042440
mov rax, qword [0x1800b6a60]
test rax, rax
je 0x180042738
lea rdx, [0x1800b6bb0]
mov ecx, 0x821b
call rax
lea rdx, [0x1800b6bb4]
mov ecx, 0x821c
call qword [0x1800b6a60]
cmp dword [0x1800b6bb0], edi
jne 0x1800424d6
cmp dword [0x1800b6bb4], edi
jne 0x180042738
mov rax, qword [0x1800b6a88]
mov ecx, 0x1f02
call rax
test rax, rax
je 0x1800424d6
lea r9, [0x1800b6bb4]
mov rcx, rax
lea r8, [0x1800b6bb0]
lea rdx, str._d._d
call fcn.180003020
cmp dword [0x1800b6bb0], 2
jl 0x180042738
mov rdx, qword [0x1800b6920]
mov ecx, 0x68
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, qword [0x1800b6930]
mov rbx, rax
test r8, r8
je 0x180042562
movsx rdx, word [r8 + 0x60e0]
lea rax, [r8 + 0x60e4]
mov r9d, dword [r8 + 0x3f68]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x180042557
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60e0], cx
movsx rax, cx
lea rax, [rax*8 + 0x60e4]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], edi
inc word [rax + 4]
inc dword [r8 + 0x60d8]
test rbx, rbx
je 0x180042589
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x50], xmm0
mov qword [rbx + 0x60], rax
jmp 0x18004258c
mov rbx, rdi
lea rax, str.imgui_impl_opengl3
mov qword [rsi + 0x98], rbx
mov qword [rsi + 0x88], rax
mov ecx, 0x1f02
mov rax, qword [0x1800b6a88]
call rax
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], edi
mov ecx, 0x821b
mov dword [rsp + 0x34], edi
mov rbp, rax
call qword [0x1800b6a60]
lea rdx, [rsp + 0x34]
mov ecx, 0x821c
call qword [0x1800b6a60]
mov ecx, dword [rsp + 0x30]
test ecx, ecx
jne 0x180042605
cmp dword [rsp + 0x34], edi
jne 0x180042605
lea r9, [rsp + 0x34]
mov rcx, rbp
lea r8, [rsp + 0x30]
lea rdx, str._d._d
call fcn.180003020
mov ecx, dword [rsp + 0x30]
mov eax, dword [rsp + 0x34]
lea ecx, [rcx + rcx*4]
lea ecx, [rax + rcx*2]
lea eax, [rcx + rcx*4]
add eax, eax
mov dword [rbx], eax
cmp eax, 0x140
jb 0x18004262c
lea rdx, [rbx + 0x28]
mov ecx, 0x9126
call qword [0x1800b6a60]
mov eax, dword [rbx + 0x28]
lea rdx, str.OpenGL_ES_3
shr eax, 1
mov r8d, 0xb
and al, 1
mov rcx, rbp
mov byte [rbx + 0x26], al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x180042654
mov byte [rbx + 0x25], 1
cmp dword [rbx], 0x140
mov byte [rbx + 0x62], dil
jb 0x180042664
or dword [rsi + 0xc], 8
lea rdx, [rbx + 4]
mov r8, rdx
lea rcx, str.version_130
sub r8, rcx
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [r8 + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x180042680
dec rdx
cmp byte [rdx + 1], dil
lea rdx, [rdx + 1]
jne 0x180042692
movzx eax, word [0x18007ac48]
mov ecx, 0x8069
mov word [rdx], ax
lea rdx, [rsp + 0x3c]
call qword [0x1800b6a60]
cmp byte [rbx + 0x24], dil
jne 0x1800426c6
cmp byte [rbx + 0x25], dil
jne 0x1800426c6
mov al, 1
jmp 0x1800426c8
xor al, al
cmp dword [rbx], 0x1c2
lea rdx, [rsp + 0x38]
mov byte [rbx + 0x60], al
mov ecx, 0x821d
setae al
mov byte [rbx + 0x61], al
mov dword [rsp + 0x38], edi
call qword [0x1800b6a60]
cmp dword [rsp + 0x38], edi
jle 0x180042734
nop dword [rax]
nop word [rax + rax]
mov rax, qword [0x1800b6a90]
mov edx, edi
mov ecx, 0x1f03
call rax
test rax, rax
je 0x18004272c
lea rdx, str.GL_ARB_clip_control
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x18004272c
mov byte [rbx + 0x61], 1
inc edi
cmp edi, dword [rsp + 0x38]
jl 0x180042700
mov al, 1
jmp 0x180042754
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Failed_to_initialize_OpenGL_loader__n
call fcn.180042330
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180046230
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret