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

Disassembly:
mov rax, rsp
movss dword [rax + 0x18], xmm2
push rbx
push rsi
push rdi
sub rsp, 0xe0
movss xmm4, dword [rsp + 0x120]
movaps xmm5, xmm2
mov rbx, qword [rcx + 0x48]
movaps xmm0, xmm4
movaps xmmword [rax - 0x38], xmm6
mov rsi, rdx
movss xmm6, dword [rsp + 0x128]
mov rdi, rcx
movaps xmmword [rax - 0x48], xmm7
xorps xmm2, xmm2
mov rax, qword [rbx + 0xb0]
movss xmm7, dword [rsp + 0x130]
comiss xmm6, xmm7
movss xmm1, dword [rax + 0x90]
mulss xmm1, dword [0x1400848a8]
movaps xmmword [rsp + 0x60], xmm12
movaps xmmword [rsp + 0x40], xmm14
xorps xmm14, xmm14
subss xmm0, xmm1
movaps xmmword [rsp + 0x30], xmm15
movaps xmm12, xmm1
movaps xmm15, xmm3
addss xmm12, xmm4
maxss xmm14, xmm0
jbe 0x14003bab2
movaps xmm0, xmm7
movss dword [rsp + 0x130], xmm6
movaps xmm7, xmm6
movaps xmm6, xmm0
ucomiss xmm6, xmm7
jp 0x14003babd
je 0x14003c27f
movaps xmm0, xmm7
movaps xmmword [rsp + 0xa0], xmm8
movss xmm8, dword [0x14008497c]
subss xmm0, xmm6
comiss xmm0, xmm8
jb 0x14003bafa
mov eax, dword [rsp + 0x138]
movaps xmm2, xmm5
mov dword [rsp + 0x28], eax
movss dword [rsp + 0x20], xmm4
call fcn.14003caa0
jmp 0x14003c276
comiss xmm2, xmm6
mov qword [rsp + 0xd8], r14
movaps xmmword [rsp + 0x90], xmm9
movaps xmmword [rsp + 0x50], xmm13
jbe 0x14003bb33
comiss xmm2, xmm7
jbe 0x14003bb2a
addss xmm6, xmm8
addss xmm7, xmm8
comiss xmm2, xmm6
ja 0x14003bb16
movss dword [rsp + 0x130], xmm7
comiss xmm6, xmm8
jbe 0x14003bb5e
movss xmm0, dword [0x14008498c]
comiss xmm7, xmm8
jbe 0x14003bb55
addss xmm6, xmm0
addss xmm7, xmm0
comiss xmm6, xmm8
ja 0x14003bb41
movss dword [rsp + 0x130], xmm7
xorps xmm0, xmm0
movaps xmm9, xmm7
ucomiss xmm0, xmm12
subss xmm9, xmm6
ja 0x14003bb7a
xorps xmm0, xmm0
sqrtss xmm0, xmm12
jmp 0x14003bb83
movaps xmm0, xmm12
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
movss xmm13, dword [0x1400848ac]
xorps xmm1, xmm1
cvtss2sd xmm1, xmm9
divss xmm13, xmm0
andps xmm1, xmmword [0x140084b40]
movaps xmm0, xmm9
mulsd xmm1, qword [0x1400848d8]
divss xmm0, xmm8
divsd xmm1, qword [0x1400848e8]
mulss xmm13, xmm0
cvtps2pd xmm0, xmm13
divsd xmm1, xmm0
cvttsd2si r14d, xmm1
test r14d, r14d
je 0x14003c25f
test rsi, rsi
jne 0x14003bbf4
lea r8, str.target
lea edx, [rsi + 5]
lea rcx, str.GPU_Arc
call fcn.1400475a0
jmp 0x14003c25f
cmp rdi, qword [rsi]
je 0x14003bc02
lea r8, str.Mismatched_renderer
jmp 0x14003bc4c
cmp qword [rsi + 0xb0], 0
je 0x14003bc3e
cmp rbx, rsi
je 0x14003bc3e
mov rax, qword [rdi + 0x58]
mov rcx, rdi
call qword [rax + 0x158]
mov rbx, qword [rsi + 0xb0]
mov ecx, dword [rbx + 0x40]
call qword [sym.imp.SDL2.dll_SDL_GetWindowFromID]
mov rdx, qword [rbx]
mov rcx, rax
call qword [sym.imp.SDL2.dll_SDL_GL_MakeCurrent]
mov qword [rdi + 0x48], rsi
cmp qword [rdi + 0x48], 0
jne 0x14003bc62
lea r8, str.NULL_context
mov edx, 3
lea rcx, str.GPU_Arc
call fcn.1400475a0
jmp 0x14003c25f
mov rdx, rsi
mov rcx, rdi
call fcn.140035140
test al, al
jne 0x14003bc8e
lea r8, str.Failed_to_bind_framebuffer.
mov edx, 1
lea rcx, str.GPU_Arc
call fcn.1400475a0
jmp 0x14003c25f
mov qword [rsp + 0x108], rbp
mov rdx, rsi
mov qword [rsp + 0x118], r13
mov rcx, rdi
mov qword [rsp + 0xd0], r15
movaps xmmword [rsp + 0x80], xmm10
movaps xmmword [rsp + 0x70], xmm11
call fcn.140005970
mov edx, 4
mov rcx, rdi
call fcn.140019550
mov rax, qword [rdi + 0x48]
mov rcx, qword [rax + 0xb0]
mov rbx, qword [rcx + 0x98]
movzx eax, word [rbx + 0x78]
lea edx, [rax + r14*2]
movzx eax, word [rbx + 0x7a]
cmp edx, eax
jl 0x14003bd08
mov rcx, rbx
call fcn.140035230
test al, al
jne 0x14003bd08
mov rax, qword [rdi + 0x58]
mov rcx, rdi
call qword [rax + 0x158]
mov eax, dword [rbx + 0x88]
lea ecx, [r14 + r14*2]
lea edx, [rax + rcx*2]
cmp edx, dword [rbx + 0x8c]
jb 0x14003bd36
mov rcx, rbx
call fcn.140035350
test al, al
jne 0x14003bd36
mov rax, qword [rdi + 0x58]
mov rcx, rdi
call qword [rax + 0x158]
cmp byte [rsi + 0xaa], 0
movzx eax, word [rbx + 0x78]
mov rdi, qword [rbx + 0x70]
mov r15, qword [rbx + 0x80]
lea ebp, [rax*8]
lea r13d, [rbp + 4]
je 0x14003be13
movss xmm1, dword [0x140084974]
xorps xmm0, xmm0
movzx eax, byte [rsi + 0x38]
xorps xmm8, xmm8
xorps xmm9, xmm9
xorps xmm10, xmm10
xorps xmm11, xmm11
cvtsi2ss xmm8, eax
movzx eax, byte [rsp + 0x138]
cvtsi2ss xmm0, eax
movzx eax, byte [rsi + 0x39]
cvtsi2ss xmm9, eax
movzx eax, byte [rsp + 0x139]
divss xmm8, xmm1
divss xmm9, xmm1
mulss xmm8, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, eax
movzx eax, byte [rsi + 0x3a]
cvtsi2ss xmm10, eax
movzx eax, byte [rsp + 0x13a]
mulss xmm9, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, eax
movzx eax, byte [rsi + 0x3b]
cvtsi2ss xmm11, eax
movzx eax, byte [rsp + 0x13b]
divss xmm10, xmm1
divss xmm11, xmm1
mulss xmm10, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, eax
divss xmm8, xmm1
mulss xmm11, xmm0
divss xmm9, xmm1
divss xmm11, xmm1
divss xmm10, xmm1
jmp 0x14003be73
movss xmm0, dword [0x140084974]
movzx eax, byte [rsp + 0x138]
movd xmm8, eax
movzx eax, byte [rsp + 0x139]
cvtdq2ps xmm8, xmm8
movd xmm9, eax
movzx eax, byte [rsp + 0x13a]
cvtdq2ps xmm9, xmm9
movd xmm10, eax
movzx eax, byte [rsp + 0x13b]
cvtdq2ps xmm10, xmm10
movd xmm11, eax
cvtdq2ps xmm11, xmm11
divss xmm8, xmm0
divss xmm11, xmm0
divss xmm9, xmm0
divss xmm10, xmm0
movaps xmm0, xmm13
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
movss dword [rsp + 0x128], xmm0
movaps xmm0, xmm13
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
mulss xmm6, dword [0x1400848a0]
movss dword [rsp + 0x100], xmm0
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
movss dword [rsp + 0x120], xmm0
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
movss xmm4, dword [rsp + 0x120]
lea r8d, [r13 + 8]
movss xmm13, dword [rsp + 0x110]
lea edx, [rbp + 8]
movaps xmm2, xmm0
lea esi, [r8 + 8]
movaps xmm3, xmm0
mulss xmm2, xmm14
movaps xmm0, xmm4
movaps xmm1, xmm4
mulss xmm0, xmm12
mulss xmm1, xmm14
addss xmm2, xmm15
addss xmm0, xmm13
addss xmm1, xmm13
movss dword [rdi + rbp*4 + 4], xmm2
movss dword [rdi + rbp*4], xmm1
movss dword [rdi + r13*4], xmm8
mov r13, qword [rsp + 0x118]
movss dword [rdi + rbp*4 + 0x14], xmm9
movss dword [rdi + rbp*4 + 0x18], xmm10
movss dword [rdi + rbp*4 + 0x1c], xmm11
mov ecx, dword [rbx + 0x88]
movzx eax, word [rbx + 0x78]
mov word [r15 + rcx*2], ax
inc dword [rbx + 0x88]
inc word [rbx + 0x78]
movss dword [rdi + rdx*4], xmm0
movaps xmm0, xmm3
mulss xmm0, xmm12
addss xmm0, xmm15
movss dword [rdi + rbp*4 + 0x24], xmm0
movss dword [rdi + rbp*4 + 0x34], xmm9
movss dword [rdi + rbp*4 + 0x38], xmm10
movss dword [rdi + rbp*4 + 0x3c], xmm11
lea ebp, [rdx + 8]
movss dword [rdi + r8*4], xmm8
mov ecx, dword [rbx + 0x88]
movzx eax, word [rbx + 0x78]
mov word [r15 + rcx*2], ax
inc dword [rbx + 0x88]
inc word [rbx + 0x78]
cmp r14d, 1
jle 0x14003c128
movss xmm7, dword [rsp + 0x128]
lea rdx, [rdi + 4]
mov eax, esi
lea rdx, [rdx + rsi*4]
mov r8d, ebp
sub r8, rax
lea eax, [r14 - 1]
mov r9d, eax
shl eax, 4
add ebp, eax
add esi, eax
nop word [rax + rax]
movaps xmm2, xmm4
movaps xmm0, xmm3
mulss xmm0, dword [rsp + 0x100]
mulss xmm4, dword [rsp + 0x100]
mulss xmm2, xmm7
subss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm7
movaps xmm3, xmm4
addss xmm3, xmm0
movaps xmm4, xmm2
movaps xmm0, xmm2
mulss xmm2, xmm12
mulss xmm0, xmm14
movaps xmm1, xmm3
addss xmm2, xmm13
mulss xmm1, xmm14
addss xmm0, xmm13
addss xmm1, xmm15
movss dword [rdx + r8*4 - 4], xmm0
movaps xmm0, xmm3
mulss xmm0, xmm12
movss dword [rdx + r8*4], xmm1
movss dword [rdx - 4], xmm8
movss dword [rdx], xmm9
addss xmm0, xmm15
movss dword [rdx + 4], xmm10
movss dword [rdx + 8], xmm11
mov ecx, dword [rbx + 0x88]
movzx eax, word [rbx + 0x78]
mov word [r15 + rcx*2], ax
inc dword [rbx + 0x88]
inc word [rbx + 0x78]
mov ecx, dword [rbx + 0x88]
movzx eax, word [rbx + 0x78]
sub ax, 2
mov word [r15 + rcx*2], ax
inc dword [rbx + 0x88]
movss dword [rdx + r8*4 + 0x1c], xmm2
movss dword [rdx + r8*4 + 0x20], xmm0
movss dword [rdx + 0x1c], xmm8
movss dword [rdx + 0x20], xmm9
movss dword [rdx + 0x24], xmm10
movss dword [rdx + 0x28], xmm11
add rdx, 0x40
mov ecx, dword [rbx + 0x88]
movzx eax, word [rbx + 0x78]
mov word [r15 + rcx*2], ax
inc dword [rbx + 0x88]
mov ecx, dword [rbx + 0x88]
inc word [rbx + 0x78]
movzx eax, word [rbx + 0x78]
sub ax, 2
mov word [r15 + rcx*2], ax
inc dword [rbx + 0x88]
mov ecx, dword [rbx + 0x88]
movzx eax, word [rbx + 0x78]
sub ax, 2
mov word [r15 + rcx*2], ax
inc dword [rbx + 0x88]
mov ecx, dword [rbx + 0x88]
movzx eax, word [rbx + 0x78]
dec ax
mov word [r15 + rcx*2], ax
inc dword [rbx + 0x88]
sub r9, 1
jne 0x14003bfd0
movss xmm7, dword [rsp + 0x130]
mulss xmm7, dword [0x1400848a0]
movaps xmm0, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
movaps xmm6, xmm0
movaps xmm0, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
movsxd rdx, esi
movaps xmm1, xmm6
movsxd r8, ebp
movaps xmm2, xmm0
mulss xmm1, xmm14
mulss xmm2, xmm14
addss xmm1, xmm13
mulss xmm0, xmm12
addss xmm2, xmm15
mulss xmm6, xmm12
addss xmm0, xmm15
movss dword [rdi + r8*4], xmm1
addss xmm6, xmm13
movss dword [rdi + r8*4 + 4], xmm2
movss dword [rdi + rdx*4 + 8], xmm10
movss dword [rdi + rdx*4 + 0xc], xmm11
movss dword [rdi + rdx*4], xmm8
movss dword [rdi + rdx*4 + 4], xmm9
mov ecx, dword [rbx + 0x88]
movzx eax, word [rbx + 0x78]
mov word [r15 + rcx*2], ax
inc dword [rbx + 0x88]
inc word [rbx + 0x78]
mov ecx, dword [rbx + 0x88]
movzx eax, word [rbx + 0x78]
sub ax, 2
mov word [r15 + rcx*2], ax
lea eax, [rbp + 9]
inc dword [rbx + 0x88]
mov rbp, qword [rsp + 0x108]
movss dword [rdi + r8*4 + 0x20], xmm6
movsxd rcx, eax
lea eax, [rsi + 9]
movss dword [rdi + rcx*4], xmm0
movss dword [rdi + rdx*4 + 0x20], xmm8
movsxd rcx, eax
lea eax, [rsi + 0xa]
movss dword [rdi + rcx*4], xmm9
movsxd rcx, eax
lea eax, [rsi + 0xb]
movss dword [rdi + rcx*4], xmm10
movaps xmm10, xmmword [rsp + 0x80]
movsxd rcx, eax
movss dword [rdi + rcx*4], xmm11
mov ecx, dword [rbx + 0x88]
movzx eax, word [rbx + 0x78]
movaps xmm11, xmmword [rsp + 0x70]
mov word [r15 + rcx*2], ax
inc dword [rbx + 0x88]
inc word [rbx + 0x78]
mov ecx, dword [rbx + 0x88]
movzx eax, word [rbx + 0x78]
sub ax, 2
mov word [r15 + rcx*2], ax
inc dword [rbx + 0x88]
mov r15, qword [rsp + 0xd0]
movaps xmm9, xmmword [rsp + 0x90]
mov r14, qword [rsp + 0xd8]
movaps xmm13, xmmword [rsp + 0x50]
movaps xmm8, xmmword [rsp + 0xa0]
movaps xmm6, xmmword [rsp + 0xc0]
movaps xmm7, xmmword [rsp + 0xb0]
movaps xmm12, xmmword [rsp + 0x60]
movaps xmm14, xmmword [rsp + 0x40]
movaps xmm15, xmmword [rsp + 0x30]
add rsp, 0xe0
pop rdi
pop rsi
pop rbx
ret