Function at 0x1000fac0
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x10
push esi
push edi
call fcn.100272d0
mov ecx, dword [esp + 0x1c]
mov edi, eax
cmp ecx, 0x313f
je 0x1000fe16
cmp ecx, 0x3202
je 0x1000fb1a
mov eax, dword [section..data]
cmp eax, 0xffffffff
jne 0x1000faf8
call sub.KERNEL32.dll_TlsAlloc
mov dword [section..data], eax
push eax
call fcn.1002e140
add esp, 4
test eax, eax
jne 0x1000fb0a
call fcn.100079f0
pop edi
mov dword [eax], 0x3005
xor eax, eax
pop esi
add esp, 0x10
ret 0xc
cmp byte [edi + 3], 0
jne 0x1000fb58
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x300c
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.10016980
add esp, 4
lea ecx, [esp + 0x14]
call fcn.100016b0
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 0xc
push ebx
mov esi, 0x3206
xor al, al
push ebp
mov ebp, dword [esp + 0x2c]
xor bh, bh
xor bl, bl
mov byte [esp + 0x24], al
mov byte [esp + 0x12], al
lea edx, [esi + 4]
mov byte [esp + 0x13], al
test ebp, ebp
je 0x1000fd9a
mov eax, dword [ebp]
cmp eax, 0x3038
je 0x1000fd9a
lea ecx, [ebp + 4]
cmp eax, 0x3209
jg 0x1000fc6e
je 0x1000fc16
sub eax, 0x3203
je 0x1000fbd9
sub eax, 1
je 0x1000fbc6
sub eax, 1
jne case.0x1000fbf1.12806
cmp dword [ecx], 0xffffffff
je case.0x1000fbf1.12806
mov byte [esp + 0x12], 1
jmp case.0x1000fbf1.12806
cmp dword [ecx], 0xffffffff
je case.0x1000fbf1.12806
mov byte [esp + 0x24], 1
jmp case.0x1000fbf1.12806
mov esi, dword [ecx]
lea eax, [esi - 0x3206]
cmp eax, 8
ja case.0x1000fbf1.12809
movzx eax, byte [eax + 0x1000ff08]
jmp dword [eax*4 + 0x1000fef8]
cmp byte [edi + 4], 0
je case.0x1000fbf1.12809
jmp case.0x1000fbf1.12806
cmp byte [edi + 5], 0
je case.0x1000fbf1.12809
jmp case.0x1000fbf1.12806
mov edx, dword [ecx]
cmp edx, 0x320c
jg 0x1000fc34
je 0x1000fc30
mov eax, edx
sub eax, 0x320a
je 0x1000fc30
sub eax, 1
jne 0x1000fc3c
mov bh, 1
jmp case.0x1000fbf1.12806
cmp edx, 0x6ac0
je case.0x1000fbf1.12806
push str.Invalid_value_for_EGL_PLATFORM_ANGLE_DEVICE_TYPE_ANGLE_attrib
lea eax, [esp + 0x18]
push 0x3004
push eax
call fcn.10131350
push eax
call fcn.10016980
add esp, 0x10
lea ecx, [esp + 0x1c]
call fcn.100016b0
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 0xc
cmp eax, 0x320f
je 0x1000fc94
cmp eax, 0x33a4
jne case.0x1000fbf1.12806
cmp byte [edi + 9], 0
je 0x1000fcf8
mov eax, dword [ecx]
sub eax, 0x33a9
je 0x1000fc90
sub eax, 1
jne 0x1000fcee
mov bl, 1
jmp case.0x1000fbf1.12806
mov eax, dword [ecx]
sub eax, 0
je 0x1000fca0
sub eax, 1
jne 0x1000fd02
mov byte [esp + 0x13], 1
mov eax, dword [ecx + 4]
add ecx, 8
cmp eax, 0x3038
jne 0x1000fb91
cmp byte [esp + 0x24], 0
jne 0x1000fd33
cmp byte [esp + 0x12], 0
je 0x1000fd33
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x3004
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.10016980
add esp, 4
jmp 0x1000fc59
push str.Invalid_value_for_EGL_EXPERIMENTAL_PRESENT_PATH_ANGLE
jmp 0x1000fc41
push str.EGL_ANGLE_experimental_present_path_extension_not_active
jmp 0x1000fc41
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x3004
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.10016980
add esp, 4
xor eax, eax
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x10
ret 0xc
cmp edx, 0x320b
jne 0x1000fd4d
cmp esi, 0x3208
je 0x1000fd4d
push str.EGL_PLATFORM_ANGLE_DEVICE_TYPE_WARP_ANGLE_requires_a_device_type_of_EGL_PLATFORM_ANGLE_TYPE_D3D11_ANGLE.
jmp 0x1000fc41
cmp byte [esp + 0x13], 0
je 0x1000fd66
cmp esi, 0x3208
je 0x1000fd66
push str.EGL_PLATFORM_ANGLE_ENABLE_AUTOMATIC_TRIM_ANGLE_requires_a_device_type_of_EGL_PLATFORM_ANGLE_TYPE_D3D11_ANGLE.
jmp 0x1000fc41
test bl, bl
je 0x1000fd7c
cmp esi, 0x3208
je 0x1000fd7c
push str.EGL_EXPERIMENTAL_PRESENT_PATH_ANGLE_requires_a_device_type_of_EGL_PLATFORM_ANGLE_TYPE_D3D11_ANGLE.
jmp 0x1000fc41
test bh, bh
je 0x1000fd9a
cmp esi, 0x3207
je 0x1000fd9a
cmp esi, 0x3208
je 0x1000fd9a
push str.EGL_PLATFORM_ANGLE_DEVICE_TYPE_ANGLE_requires_a_device_type_of_EGL_PLATFORM_ANGLE_TYPE_D3D9_ANGLE_or_EGL_PLATFORM_ANGLE_TYPE_D3D9_ANGLE.
jmp 0x1000fc41
mov eax, dword [section..data]
mov dword [esp + 0x14], 0x3000
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
cmp eax, 0xffffffff
jne 0x1000fdc6
call sub.KERNEL32.dll_TlsAlloc
mov dword [section..data], eax
push eax
call fcn.1002e140
add esp, 4
test eax, eax
jne 0x1000fdd8
call fcn.100079f0
lea ecx, [esp + 0x1c]
mov dword [eax], 0x3000
call fcn.100016b0
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.10115320
push eax
push dword [esp + 0x34]
call fcn.10025c10
add esp, 0x10
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.10001710
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
add esp, 0x10
ret 0xc
cmp byte [edi + 2], 0
jne 0x1000fe72
push str.Platform_Device_extension_is_not_active
lea eax, [esp + 0x10]
push 0x300c
push eax
call fcn.10131350
mov esi, eax
add esp, 0xc
mov eax, dword [section..data]
cmp eax, 0xffffffff
jne 0x1000fe49
call sub.KERNEL32.dll_TlsAlloc
mov dword [section..data], eax
push eax
call fcn.1002e140
add esp, 4
test eax, eax
jne 0x1000fe5b
call fcn.100079f0
mov ecx, dword [esi]
mov dword [eax], ecx
lea ecx, [esp + 0x14]
call fcn.100016b0
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 0xc
mov esi, dword [esp + 0x20]
test esi, esi
je 0x1000fec6
push esi
call fcn.10133230
add esp, 4
test al, al
je 0x1000fec6
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x3000
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.10016980
add esp, 4
lea ecx, [esp + 0x14]
call fcn.100016b0
push esi
call fcn.10025dc0
add esp, 4
pop edi
pop esi
add esp, 0x10
ret 0xc
push str.native_display_should_be_a_valid_EGL_device_if_platform_equals_EGL_PLATFORM_DEVICE_EXT
lea eax, [esp + 0x10]
push 0x3004
push eax
call fcn.10131350
push eax
call fcn.10016980
add esp, 0x10
lea ecx, [esp + 0x14]
call fcn.100016b0
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 0xc