Function at 0x14004f0a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140094fc0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbp, qword [0x1400989f8]
lea rcx, str.opengl32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140098d98], rax
test rax, rax
je 0x14003d548
lea rdx, str.wglGetProcAddress
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x14003d1b0]
mov qword [0x140098da8], rax
call fcn.140061e6c
xor edi, edi
lea r14, [0x140000000]
mov ebx, edi
nop dword [rax + rax]
mov rsi, qword [rbx + r14 + 0x88090]
mov rcx, rsi
call qword [0x140098da8]
test rax, rax
jne 0x14003d266
mov rcx, qword [0x140098d98]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + r14 + 0x98a10], rax
add rbx, 8
cmp rbx, 0x1d8
jb 0x14003d240
mov rax, qword [0x140098b20]
test rax, rax
je 0x14003d548
lea rdx, [0x140098da0]
mov ecx, 0x821b
call rax
lea rdx, [0x140098da4]
mov ecx, 0x821c
call qword [0x140098b20]
cmp dword [0x140098da0], edi
jne 0x14003d2ef
cmp dword [0x140098da4], edi
jne 0x14003d548
mov rax, qword [0x140098b48]
mov ecx, 0x1f02
call rax
test rax, rax
je 0x14003d2ef
lea r9, [0x140098da4]
mov rcx, rax
lea r8, [0x140098da0]
lea rdx, str._d._d
call fcn.14000bb80
cmp dword [0x140098da0], 2
jl 0x14003d548
mov ecx, 0x68
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x1400989f8]
mov rbx, rax
test r8, r8
je 0x14003d375
movsx rdx, word [r8 + 0x6228]
lea rax, [r8 + 0x622c]
mov r9d, dword [r8 + 0x3fc0]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x14003d36a
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 + 0x6228], cx
movsx rax, cx
lea rax, [rax*8 + 0x622c]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], edi
inc word [rax + 4]
inc dword [r8 + 0x6220]
test rbx, rbx
je 0x14003d39c
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 0x14003d39f
mov rbx, rdi
lea rax, str.imgui_impl_opengl3
mov qword [rbp + 0xa0], rbx
mov qword [rbp + 0x90], rax
mov ecx, 0x1f02
mov rax, qword [0x140098b48]
call rax
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], edi
mov ecx, 0x821b
mov dword [rsp + 0x34], edi
mov r14, rax
call qword [0x140098b20]
lea rdx, [rsp + 0x34]
mov ecx, 0x821c
call qword [0x140098b20]
mov ecx, dword [rsp + 0x30]
test ecx, ecx
jne 0x14003d418
cmp dword [rsp + 0x34], edi
jne 0x14003d418
lea r9, [rsp + 0x34]
mov rcx, r14
lea r8, [rsp + 0x30]
lea rdx, str._d._d
call fcn.14000bb80
mov ecx, dword [rsp + 0x30]
mov eax, dword [rsp + 0x34]
lea ecx, [rcx + rcx*4]
lea rsi, [rbx + 0x28]
lea ecx, [rax + rcx*2]
lea eax, [rcx + rcx*4]
add eax, eax
mov dword [rbx], eax
cmp eax, 0x140
jb 0x14003d442
mov rdx, rsi
mov ecx, 0x9126
call qword [0x140098b20]
mov eax, dword [rsi]
lea rdx, str.OpenGL_ES_3
shr eax, 1
mov r8d, 0xb
and al, 1
mov rcx, r14
mov byte [rbx + 0x26], al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x14003d469
mov byte [rbx + 0x25], 1
cmp dword [rbx], 0x140
mov byte [rbx + 0x62], dil
jb 0x14003d479
or dword [rbp + 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 0x14003d490
dec rdx
cmp byte [rdx + 1], dil
lea rdx, [rdx + 1]
jne 0x14003d4a2
movzx eax, word [0x140083650]
mov ecx, 0x8069
mov word [rdx], ax
lea rdx, [rsp + 0x3c]
call qword [0x140098b20]
cmp byte [rbx + 0x24], dil
jne 0x14003d4d6
cmp byte [rbx + 0x25], dil
jne 0x14003d4d6
mov al, 1
jmp 0x14003d4d8
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 [0x140098b20]
cmp dword [rsp + 0x38], edi
jle 0x14003d544
nop dword [rax]
nop word [rax + rax]
mov rax, qword [0x140098b50]
mov edx, edi
mov ecx, 0x1f03
call rax
test rax, rax
je 0x14003d53c
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 0x14003d53c
mov byte [rbx + 0x61], 1
inc edi
cmp edi, dword [rsp + 0x38]
jl 0x14003d510
mov al, 1
jmp 0x14003d564
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.14003d160
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140061870
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rdi, qword [0x1400989f8]
mov ecx, 0x63b8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9, rax
mov r8, qword [0x1400989f8]
xor r14d, r14d
test r8, r8
je 0x14004f12f
mov r10d, dword [r8 + 0x3fc0]
movsx rdx, word [r8 + 0x6228]
lea rax, [r8 + 0x622c]
lea rax, [rax + rdx*8]
cmp dword [rax], r10d
je 0x14004f124
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 + 0x6228], cx
movsx rax, cx
lea rax, [rax*8 + 0x622c]
add rax, r8
mov dword [rax], r10d
mov dword [rax + 4], r14d
inc word [rax + 4]
inc dword [r8 + 0x6220]
mov qword [rsp + 0x68], r9
lea rax, [rsp + 0x60]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], r9
test r9, r9
je 0x14004f154
xor edx, edx
mov rcx, r9
call fcn.14000bea0
jmp 0x14004f157
mov rax, r14
mov qword [0x1400989f8], rax
call fcn.140011c00
mov rbx, qword [0x1400989f8]
test rdi, rdi
cmovne rbx, rdi
mov qword [0x1400989f8], rbx
or dword [rbx + 8], 3
mov rcx, qword [rbx + 0x38]
call fcn.140036870
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
mov edx, 0x66
lea r8d, [rdx - 0x5c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
jne 0x14004f1d5
lea rdx, str.Failed_to_find_resource.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000a1e0
lea rdx, [0x14000a3b0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rax, r14
mov edi, r14d
jmp 0x14004f209
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
jne 0x14004f1f2
lea rdx, str.Failed_to_load_resource.
jmp 0x14004f1b1
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
movss xmm3, dword [0x1400898a4]
mov r8d, edi
mov rdx, rax
mov rcx, qword [rbx + 0x38]
call fcn.1400369e0
xor ecx, ecx
call fcn.140032160
mov rcx, qword [0x140098bf8]
call fcn.14003c500
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
jmp 0x14003d1c0