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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
movzx ebx, byte [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push ebx
push edi
call fcn.101a5420
add esp, 8
test al, al
je 0x101adc3e
cmp bl, 0xa
jne 0x101adc55
jmp 0x101adc9f
cmp bl, 5
jne 0x101adc9f
cmp byte [edi + 0x12a3], 0
jne 0x101adc55
cmp byte [edi + 0x12a7], 0
je 0x101adc9f
mov eax, dword [edi + 0x151c]
mov ecx, edi
movzx edi, bl
lea edx, [edi + edi*2]
mov edx, dword [ecx + edx*4 + 0x1520]
cmp dword [edx + eax*8 + 4], 0
je 0x101adcae
mov esi, dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100c9610
add esp, 4
test esi, esi
js 0x101adcd0
cmp eax, esi
jle 0x101adcd0
mov ecx, dword [ebp + 8]
add ecx, 0x1d04
push str.Insufficient_buffer_size.
push 0x502
push dword [ebp + 0xc]
jmp 0x101adcbf
add edi, 0x1d04
mov ecx, edi
push str.Invalid_or_unsupported_texture_target.
jmp 0x101adcb9
add ecx, 0x1d04
push str.A_texture_must_be_bound.
push 0x500
push esi
call fcn.1001a2a0
xor edx, edx
mov eax, edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp + 0x14]
cmp eax, 1
jne 0x101add01
cmp edx, 0x8071
jg 0x101add7a
lea ecx, [edx - 0x2800]
cmp ecx, 4
mov esi, dword [ebp + 0xc]
jb 0x101addee
jmp 0x101add95
cmp edx, 0x884b
jle 0x101add2f
lea ecx, [edx - 0x8e42]
cmp ecx, 4
mov esi, dword [ebp + 0xc]
jb 0x101add68
lea ecx, [edx - 0x884c]
cmp ecx, 2
jb 0x101add68
cmp edx, 0x8b9d
je 0x101add51
jmp 0x101addee
lea ecx, [edx - 0x813a]
cmp ecx, 4
mov esi, dword [ebp + 0xc]
jb 0x101add68
cmp edx, 0x8072
je 0x101add68
cmp edx, 0x8191
jne 0x101addee
cmp eax, 2
jl 0x101addee
mov ecx, dword [ebp + 8]
add ecx, 0x1d04
jmp 0x101ae748
cmp eax, 2
jg 0x101addb6
cmp edx, 0x8072
je 0x101adda6
jmp 0x101ade45
cmp edx, 0x8072
mov esi, dword [ebp + 0xc]
je 0x101adda6
cmp edx, 0x8191
je 0x101addee
cmp edx, 0x8b9d
je 0x101addee
push edx
push str.Enum_0x_04X_is_currently_not_supported.
push 0x500
push esi
push dword [ebp + 8]
jmp 0x101adde1
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0x12ed], 0
je 0x101ade45
cmp bl, 9
je 0x101ade90
cmp edi, 5
jne 0x101addee
mov edi, dword [ebp + 8]
cmp byte [edi + 0x12a4], 0
jne 0x101adeb1
push edx
push str.Enum_0x_04X_is_currently_not_supported.
push 0x500
push esi
push edi
call fcn.1001a3e0
add esp, 0x14
jmp 0x101adcc4
mov ecx, ebx
and cl, 0xfe
cmp cl, 2
mov edi, dword [ebp + 8]
jne 0x101ade41
cmp edx, 0x884b
jle 0x101ade58
cmp edx, 0x8e41
jle 0x101ae21a
cmp edx, 0x8fbe
jle 0x101adf2b
cmp edx, 0x93a1
jg 0x101ae1e1
cmp edx, 0x8fbf
je 0x101ae50f
cmp edx, 0x90ea
je 0x101ae0e8
jmp 0x101addd4
xor eax, eax
jmp 0x101adeba
mov ecx, dword [ebp + 8]
add ecx, 0x1d04
push str.OpenGL_ES_3.0_Required.
jmp 0x101adcb9
cmp edx, 0x8139
jg 0x101ae103
lea eax, [edx - 0x2800]
cmp eax, 4
jb 0x101ae235
cmp edx, 0x1004
je 0x101ae235
cmp edx, 0x8072
je 0x101ae235
jmp 0x101addd4
mov edi, dword [ebp + 8]
cmp byte [edi + 0x1316], 0
jne 0x101adeb1
push edx
push str.Enum_0x_04X_is_currently_not_supported.
push 0x500
push esi
push edi
call fcn.1001a3e0
add esp, 0x14
mov eax, ebx
and al, 0xfe
cmp al, 2
sete al
mov dl, 1
mov ecx, dword [ebp + 0x14]
cmp ecx, 0x884c
jg 0x101adf11
cmp ecx, 0x8139
jle 0x101adf9f
cmp ecx, 0x8190
jg 0x101ae247
mov dword [esp + 0x3c], eax
lea eax, [ecx - 0x813a]
cmp eax, 2
jb 0x101adcc6
cmp ecx, 0x813c
je 0x101ae130
mov edx, ecx
cmp ecx, 0x813d
je 0x101ae57e
jmp 0x101addd4
cmp ecx, 0x8e41
mov edx, ecx
jle 0x101ae046
cmp edx, 0x8fbe
jg 0x101ae0c1
lea eax, [edx - 0x8e42]
cmp eax, 4
jae 0x101addd4
mov eax, dword [ebp + 0x20]
movss xmm0, dword [eax]
sub esp, 4
movss dword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
add esp, 4
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
fnstcw word [esp + 0x16]
movzx eax, word [esp + 0x16]
or eax, 0xc00
mov word [esp + 0x2e], ax
fldcw word [esp + 0x2e]
fistp qword [esp + 0x48]
fldcw word [esp + 0x16]
mov eax, dword [esp + 0x48]
mov dl, 1
lea ecx, [eax - 0x1903]
cmp ecx, 4
jb 0x101adcc6
cmp eax, 2
mov eax, dword [ebp + 0x14]
jb 0x101adcc6
push eax
jmp 0x101addd5
cmp ecx, 0x2801
jg 0x101ae2e2
cmp ecx, 0x1004
je 0x101ae699
cmp ecx, 0x2800
je 0x101ae6c2
mov edx, ecx
cmp ecx, 0x2801
jne 0x101addd4
mov eax, dword [ebp + 0x20]
movss xmm0, dword [eax]
sub esp, 4
movss dword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
add esp, 4
fstp dword [esp + 0x80]
fld dword [esp + 0x80]
fnstcw word [esp + 0x20]
movzx eax, word [esp + 0x20]
or eax, 0xc00
mov word [esp + 0x38], ax
fldcw word [esp + 0x38]
fistp qword [esp + 0x80]
fldcw word [esp + 0x20]
mov eax, dword [esp + 0x80]
lea ecx, [eax - 0x2700]
cmp ecx, 4
jae 0x101ae7ea
add bl, 0xfb
mov eax, str.Texture_only_supports_NEAREST_and_LINEAR_filtering.
cmp bl, 1
mov dl, 1
ja 0x101adcc6
jmp 0x101ae68b
cmp edx, 0x8b9c
jg 0x101ae3b6
cmp edx, 0x884d
jne 0x101ae430
mov eax, dword [ebp + 0x20]
movss xmm0, dword [eax]
sub esp, 4
movss dword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
mov dl, 1
add esp, 4
fstp dword [esp + 0x98]
fld dword [esp + 0x98]
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov word [esp + 0x30], ax
fldcw word [esp + 0x30]
fistp qword [esp + 0x98]
fldcw word [esp + 0x18]
mov eax, dword [esp + 0x98]
and eax, 0xfffffff8
cmp eax, 0x200
je 0x101adcc6
jmp 0x101ae2d0
cmp edx, 0x93a1
jg 0x101ae1e1
cmp edx, 0x8fbf
je 0x101ae50f
cmp edx, 0x90ea
jne 0x101addd4
mov eax, dword [edi + 0x1c]
cmp eax, 3
jae 0x101ae752
add edi, 0x1d04
mov ecx, edi
push str.Enum_requires_GLES_3.1
jmp 0x101adcb9
cmp edx, 0x813c
jg 0x101ae3ca
lea eax, [edx - 0x813a]
cmp eax, 2
jb 0x101ae235
mov al, 1
mov dword [esp + 0x3c], eax
cmp edx, 0x813c
jne 0x101addd4
mov eax, dword [ebp + 0x20]
movss xmm0, dword [eax]
sub esp, 4
movaps xmmword [esp + 0xa4], xmm0
movss dword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
add esp, 4
fstp dword [esp + 0x50]
fld dword [esp + 0x50]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov word [esp + 0x2c], ax
fldcw word [esp + 0x2c]
fistp qword [esp + 0x50]
fldcw word [esp + 0x14]
bt dword [esp + 0x50], 0x1f
jb 0x101ae7ba
movaps xmm0, xmmword [esp + 0xa0]
cvttss2si ecx, xmm0
mov edx, ecx
subss xmm0, dword [0x102c3128]
cvttss2si eax, xmm0
sar edx, 0x1f
and eax, edx
or eax, ecx
cmp bl, 5
jne 0x101ae1ac
test eax, eax
jne 0x101ae1cf
test eax, eax
setne cl
mov edx, dword [esp + 0x3c]
and dl, cl
cmp dl, 1
je 0x101ae1cf
mov dl, 1
cmp bl, 6
jne 0x101adcc6
test eax, eax
je 0x101adcc6
add edi, 0x1d04
mov ecx, edi
push str.Base_level_must_be_0.
jmp 0x101ae67c
cmp edx, 0x93a2
je 0x101ae4a5
cmp edx, 0x969f
jne 0x101addd4
mov dl, 1
cmp byte [edi + 0x1339], 0
jne 0x101adcc6
add edi, 0x1d04
mov ecx, edi
push str.EGL_ANGLE_robust_resource_initialization_not_enabled.
jmp 0x101adcb9
cmp edx, 0x8b9c
jg 0x101ae608
lea eax, [edx - 0x884c]
cmp eax, 2
jae 0x101ae430
add edi, 0x1d04
mov ecx, edi
push str.Invalid_pname.
jmp 0x101adcb9
cmp ecx, 0x8191
je 0x101ae732
mov edx, ecx
cmp ecx, 0x84fe
je 0x101ae3ee
cmp edx, 0x884c
jne 0x101addd4
mov eax, dword [ebp + 0x20]
movss xmm0, dword [eax]
sub esp, 4
movss dword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
add esp, 4
fstp dword [esp + 0x90]
fld dword [esp + 0x90]
fnstcw word [esp + 0x1a]
movzx eax, word [esp + 0x1a]
or eax, 0xc00
mov word [esp + 0x32], ax
fldcw word [esp + 0x32]
fistp qword [esp + 0x90]
fldcw word [esp + 0x1a]
mov eax, dword [esp + 0x90]
test eax, eax
je 0x101ae82c
cmp eax, 0x884e
mov dl, 1
je 0x101adcc6
add edi, 0x1d04
mov ecx, edi
push str.Unknown_parameter_value.
jmp 0x101adcb9
lea eax, [ecx - 0x2802]
cmp eax, 2
jb 0x101ae2fb
mov edx, ecx
cmp ecx, 0x8072
jne 0x101addd4
cmp bl, 5
jne 0x101ae30d
cmp byte [edi + 0x12a5], 0
je 0x101ae7e3
cmp bl, 6
sete bl
mov eax, dword [ebp + 0x20]
movss xmm0, dword [eax]
sub esp, 4
movss dword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
add esp, 4
fstp dword [esp + 0x78]
fld dword [esp + 0x78]
fnstcw word [esp + 0x22]
movzx eax, word [esp + 0x22]
or eax, 0xc00
mov word [esp + 0x3a], ax
fldcw word [esp + 0x3a]
fistp qword [esp + 0x78]
fldcw word [esp + 0x22]
mov ecx, dword [esp + 0x78]
mov eax, str.Texture_wrap_mode_not_recognized.
cmp ecx, 0x812e
jg 0x101ae5dc
cmp ecx, 0x2901
mov dl, 1
je 0x101ae5f6
cmp ecx, 0x812d
jne 0x101ae68b
mov al, byte [edi + 0x12ee]
or al, byte [edi + 0x12ef]
jne 0x101adcc6
mov eax, str.Extension_is_not_enabled.
cmp dword [edi + 0x1c], 3
jb 0x101ae68b
jne 0x101adcc6
cmp dword [edi + 0x20], 2
jae 0x101adcc6
jmp 0x101ae68b
cmp edx, 0x8b9d
jne 0x101ae610
mov eax, dword [edi + 0x1c]
jmp 0x101ae65a
cmp edx, 0x813d
je 0x101ae57e
cmp edx, 0x8191
je 0x101ae735
cmp edx, 0x84fe
jne 0x101addd4
cmp byte [edi + 0x12ff], 0
je 0x101ae81a
mov eax, dword [ebp + 0x20]
movss xmm0, dword [eax]
movss xmm1, dword [0x102c3370]
ucomiss xmm1, xmm0
ja 0x101ae41e
mov dl, 1
ucomiss xmm0, dword [edi + 0x32c]
jbe 0x101adcc6
add edi, 0x1d04
mov ecx, edi
push str.Parameter_outside_of_bounds.
jmp 0x101ae7c7
cmp edx, 0x8a48
jne 0x101addd4
cmp byte [edi + 0x1309], 0
je 0x101ae686
mov eax, dword [ebp + 0x20]
movss xmm0, dword [eax]
sub esp, 4
movss dword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
add esp, 4
fstp dword [esp + 0x68]
fld dword [esp + 0x68]
fnstcw word [esp + 0xe]
movzx eax, word [esp + 0xe]
or eax, 0xc00
mov word [esp + 0x26], ax
fldcw word [esp + 0x26]
fistp qword [esp + 0x68]
fldcw word [esp + 0xe]
mov ecx, 0xffff75b7
add ecx, dword [esp + 0x68]
mov eax, str.Unknown_parameter_value.
mov dl, 1
cmp ecx, 2
jb 0x101adcc6
jmp 0x101ae68b
cmp byte [edi + 0x1310], 0
je 0x101ae505
mov eax, dword [ebp + 0x20]
movss xmm0, dword [eax]
sub esp, 4
movss dword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
add esp, 4
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fnstcw word [esp + 0x1c]
movzx eax, word [esp + 0x1c]
or eax, 0xc00
mov word [esp + 0x34], ax
fldcw word [esp + 0x34]
fistp qword [esp + 0x40]
fldcw word [esp + 0x1c]
mov eax, dword [esp + 0x40]
mov dl, 1
test eax, eax
je 0x101adcc6
cmp eax, 0x93a3
je 0x101adcc6
push 0x93a2
jmp 0x101addd5
cmp byte [edi + 0x1303], 0
je 0x101ae686
mov eax, dword [ebp + 0x20]
movss xmm0, dword [eax]
sub esp, 4
movss dword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
add esp, 4
fstp dword [esp + 0x70]
fld dword [esp + 0x70]
fnstcw word [esp + 0xc]
movzx eax, word [esp + 0xc]
or eax, 0xc00
mov word [esp + 0x24], ax
fldcw word [esp + 0x24]
fistp qword [esp + 0x70]
fldcw word [esp + 0xc]
mov ecx, dword [esp + 0x70]
mov dl, 1
test ecx, ecx
je 0x101adcc6
mov eax, str.Unknown_parameter_value.
cmp ecx, 0x8c40
je 0x101adcc6
jmp 0x101ae68b
mov eax, dword [ebp + 0x20]
movss xmm0, dword [eax]
sub esp, 4
movss dword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
add esp, 4
fstp dword [esp + 0x58]
fld dword [esp + 0x58]
fnstcw word [esp + 0x12]
movzx eax, word [esp + 0x12]
or eax, 0xc00
mov word [esp + 0x2a], ax
fldcw word [esp + 0x2a]
fistp qword [esp + 0x58]
fldcw word [esp + 0x12]
mov dl, 1
bt dword [esp + 0x58], 0x1f
jae 0x101adcc6
add edi, 0x1d04
mov ecx, edi
push str.Level_of_detail_outside_of_range.
jmp 0x101ae7c7
cmp ecx, 0x812f
mov dl, 1
je 0x101adcc6
cmp ecx, 0x8370
jne 0x101ae68b
mov eax, str.Invalid_wrap_mode_for_texture_type.
test bl, bl
je 0x101adcc6
jmp 0x101ae68b
cmp edx, 0x8b9d
je 0x101ae65a
cmp edx, 0x8bfa
jne 0x101addd4
cmp byte [edi + 0x12cd], 0
je 0x101ae7d1
xorps xmm0, xmm0
mov eax, dword [ebp + 0x20]
ucomiss xmm0, dword [eax]
setp al
setne cl
or cl, al
cmp byte [edi + 0x19], 0
setne al
mov dl, 1
cmp cl, al
je 0x101adcc6
add edi, 0x1d04
mov ecx, edi
push str.Protected_Texture_must_match_Protected_Context
jmp 0x101ae67c
cmp eax, 2
jge 0x101ae740
mov dl, 1
cmp byte [ebp + 0x1c], 0
jne 0x101adcc6
add edi, 0x1d04
mov ecx, edi
push str.Insufficient_buffer_size.
push 0x502
jmp 0x101adcbe
mov eax, str.Extension_is_not_enabled.
add edi, 0x1d04
mov ecx, edi
push eax
jmp 0x101adcb9
cmp byte [edi + 0x12ef], 0
je 0x101ae804
cmp byte [ebp + 0x1c], 0
jne 0x101adcc6
add edi, 0x1d04
mov ecx, edi
push str.Insufficient_buffer_size.
jmp 0x101adcb9
mov eax, dword [ebp + 0x20]
movss xmm0, dword [eax]
sub esp, 4
movss dword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
mov dl, 1
add esp, 4
fstp dword [esp + 0x88]
fld dword [esp + 0x88]
fnstcw word [esp + 0x1e]
movzx eax, word [esp + 0x1e]
or eax, 0xc00
mov word [esp + 0x36], ax
fldcw word [esp + 0x36]
fistp qword [esp + 0x88]
fldcw word [esp + 0x1e]
mov eax, dword [esp + 0x88]
and eax, 0xfffffffe
cmp eax, 0x2600
je 0x101adcc6
add edi, 0x1d04
mov ecx, edi
push str.Texture_filter_not_recognized.
jmp 0x101adcb9
mov eax, dword [edi + 0x1c]
mov dl, 1
cmp eax, 2
jl 0x101adcc6
add edi, 0x1d04
mov ecx, edi
push str.GLES1_only_function.
jmp 0x101adcb9
jne 0x101ae75e
cmp dword [edi + 0x20], 0
je 0x101ae0f1
mov eax, dword [ebp + 0x20]
movss xmm0, dword [eax]
sub esp, 4
movss dword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
add esp, 4
fstp dword [esp + 0x60]
fld dword [esp + 0x60]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
or eax, 0xc00
mov word [esp + 0x28], ax
fldcw word [esp + 0x28]
fistp qword [esp + 0x60]
fldcw word [esp + 0x10]
mov eax, 0xffffe6ff
add eax, dword [esp + 0x60]
mov dl, 1
cmp eax, 2
jb 0x101adcc6
push 0x90ea
jmp 0x101addd5
add edi, 0x1d04
mov ecx, edi
push str.Base_level_must_be_at_least_0.
push 0x501
jmp 0x101adcbe
add edi, 0x1d04
mov ecx, edi
push str.GL_EXT_protected_textures_not_enabled.
jmp 0x101adcb9
mov bl, 1
jmp 0x101ae313
add eax, 0xffffda00
cmp eax, 2
mov dl, 1
jb 0x101adcc6
mov eax, str.Texture_filter_not_recognized.
jmp 0x101ae68b
cmp dword [edi + 0x1c], 3
jb 0x101ae81a
jne 0x101ae6a6
cmp dword [edi + 0x20], 1
ja 0x101ae6a6
add edi, 0x1d04
mov ecx, edi
push str.Extension_is_not_enabled.
jmp 0x101adcb9
mov dl, 1
jmp 0x101adcc6