Function at 0x1003f580
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101352f3
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x1026a5dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x102c26dc]
mov eax, dword [0x102c26d4]
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x1003f5c6
inc dword [esi + 0xb0]
push dword [0x102c26d8]
push 0x5bf0
call fcn.100506a0
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x39]
add esp, 8
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x1003f5fb
push 0
mov ecx, eax
call fcn.1004ef70
jmp 0x1003f5fd
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x102c26dc], eax
call fcn.10056490
mov ebx, dword [0x102c26dc]
test esi, esi
movaps xmm0, xmmword [0x1025c8e0]
cmovne ebx, esi
mov dword [ebp - 0x28], 0x282e5610
mov dword [0x102c26dc], ebx
xor ecx, ecx
movups xmmword [ebp - 0x38], xmm0
mov word [ebp - 0x24], 0x100
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
lea eax, [ecx + 0x2e]
xor byte [ebp + ecx - 0x38], al
inc ecx
cmp ecx, 0x14
jb 0x1003f647
push ecx
lea eax, [ebp - 0x40]
mov byte [ebp - 0x23], 0
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x40], 0
call fcn.10050e30
mov esi, eax
add esp, 8
test esi, esi
je 0x1003f6a1
mov edx, dword [ebp - 0x40]
test edx, edx
je 0x1003f683
mov ecx, esi
call fcn.10065150
mov eax, dword [0x102c26dc]
test eax, eax
je 0x1003f692
dec dword [eax + 0xb0]
push dword [0x102c26d8]
push esi
call fcn.100506b0
add esp, 8
push 0x78
lea eax, [ebp - 0xb8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
movaps xmm0, xmmword [0x1025c5f0]
mov esi, 0xffff
add esp, 0xc
mov byte [ebp - 0xb0], 1
mov dword [ebp - 0x80], 0x7f7fffff
xor ecx, ecx
mov dword [ebp - 0x74], 0x3f800000
mov word [ebp - 0x70], si
mov dword [ebp - 0xa4], 1
mov dword [ebp - 0xa0], 1
mov byte [ebp - 0x9c], 1
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0x356e585c
mov dword [ebp - 0x24], 0x1002536
lea eax, [ecx + 0x2e]
xor byte [ebp + ecx - 0x38], al
inc ecx
cmp ecx, 0x16
jb 0x1003f708
movss xmm2, dword [0x1025b0f4]
lea eax, [ebp - 0xb8]
push ecx
mov ecx, dword [ebx + 0x48]
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 0x21], 0
push eax
call fcn.10072b00
mov ecx, dword [0x102c26dc]
movss xmm3, dword [0x1025b0fc]
push 0x10258808
push 0
push 0x4ba44
mov dword [ecx + 0x54], eax
mov ecx, dword [ebx + 0x48]
push 0x1026ab10
call fcn.10072c80
movss xmm3, dword [0x1025b0e8]
mov ecx, dword [ebx + 0x48]
push 0x10258808
push 0
push 0x4ba44
push 0x1026ab10
call fcn.10072c80
movss xmm3, dword [0x1025b110]
mov ecx, dword [ebx + 0x48]
push 0x10258808
push 0
push 0x4ba44
push 0x1026ab10
mov dword [0x102c26bc], eax
call fcn.10072c80
movss xmm3, dword [0x1025b144]
mov ecx, dword [ebx + 0x48]
push 0x10258808
push 0
push 0x4ba44
push 0x1026ab10
call fcn.10072c80
movss xmm3, dword [0x1025b114]
mov ecx, dword [ebx + 0x48]
push 0x10258808
push 0
push 0xf20
push 0x102b6558
call fcn.10072c80
movss xmm3, dword [0x1025b10c]
mov ecx, dword [ebx + 0x48]
push 0x10258808
push 0
push 0x4d4
push 0x1026a638
mov dword [0x102c25d4], eax
call fcn.10072c80
movss xmm3, dword [0x1025b138]
mov ecx, dword [ebx + 0x48]
push 0x10258808
push 0
push 0xf20
push 0x102b6558
call fcn.10072c80
movss xmm3, dword [0x1025b128]
mov ecx, dword [ebx + 0x48]
push 0x10258808
push 0
push 0xf20
push 0x102b6558
call fcn.10072c80
movss xmm3, dword [0x1025b108]
mov ecx, dword [ebx + 0x48]
push 0x10258808
push 0
push 0x4ba44
push 0x1026ab10
call fcn.10072c80
movss xmm3, dword [0x1025b11c]
push 0x10258808
push 0
push 0xf20
push 0x102b6558
mov ecx, dword [ebx + 0x48]
call fcn.10072c80
movaps xmm0, xmmword [0x1025c5f0]
xor ecx, ecx
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0x356e585c
mov dword [ebp - 0x24], 0x1002536
nop dword [eax]
lea eax, [ecx + 0x2e]
xor byte [ebp + ecx - 0x38], al
inc ecx
cmp ecx, 0x16
jb 0x1003f8b0
movss xmm2, dword [0x1025b10c]
lea eax, [ebp - 0xb8]
push ecx
mov ecx, dword [ebx + 0x48]
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 0x21], 0
push eax
call fcn.10072b00
movaps xmm0, xmmword [0x1025c5f0]
xor ecx, ecx
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0x356e585c
mov dword [ebp - 0x24], 0x1002536
lea eax, [ecx + 0x2e]
xor byte [ebp + ecx - 0x38], al
inc ecx
cmp ecx, 0x16
jb 0x1003f8f8
movss xmm2, dword [0x1025b104]
lea eax, [ebp - 0xb8]
push ecx
mov ecx, dword [ebx + 0x48]
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 0x21], 0
push eax
call fcn.10072b00
push 0x78
mov dword [0x102c26c0], eax
lea eax, [ebp - 0xb8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov word [ebp - 0x70], si
mov ecx, 0x1e
mov byte [ebp - 0xb0], 1
lea esi, [ebp - 0xb8]
mov dword [ebp - 0xa4], 3
lea edi, [ebp - 0x130]
mov dword [ebp - 0xa0], 1
mov dword [ebp - 0x80], 0x7f7fffff
lea eax, [ebp - 0x130]
mov dword [ebp - 0x74], 0x3f800000
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x48]
push eax
mov dword [ebp - 0x130], 0x102b7800
mov dword [ebp - 0x12c], 0x42ac
mov dword [ebp - 0x120], 0x42c80000
call fcn.10072960
movss xmm3, dword [0x1025b124]
push 0
push 0
push ecx
mov ecx, dword [ebx + 0x48]
push 0x10194360
mov dword [0x102c26b4], eax
call fcn.10072d70
mov dword [0x102c25cc], eax
mov eax, dword [0x102c26dc]
push ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x3798], 0
mov dword [eax + 0x37a0], 0x41000000
mov dword [eax + 0x37a4], 0x41000000
mov dword [eax + 0x37b0], 0x42000000
mov dword [eax + 0x37b4], 0x42000000
mov dword [eax + 0x37a8], 0x3f000000
mov dword [eax + 0x37b8], 0x3f000000
mov dword [eax + 0x37bc], 0x3f000000
mov dword [eax + 0x37d4], 0x40800000
mov dword [eax + 0x37d8], 0x40000000
mov dword [eax + 0x37dc], 0
mov dword [eax + 0x37e4], 0x41000000
mov dword [eax + 0x37e8], 0x40800000
mov dword [eax + 0x37ec], 0x40800000
mov dword [eax + 0x37f0], 0x40800000
mov dword [eax + 0x37fc], 0
mov dword [eax + 0x3800], 0
mov dword [eax + 0x3804], 0x41a80000
mov dword [eax + 0x3808], 0x40400000
mov dword [eax + 0x380c], 0x41400000
mov dword [eax + 0x3810], 0
mov dword [eax + 0x3814], 0x3dcccccd
mov dword [eax + 0x3818], 0
mov dword [eax + 0x3830], 0x3f000000
mov dword [eax + 0x3834], 0x3f000000
mov dword [eax + 0x3840], 0x41b00000
mov dword [eax + 0x3844], 0x41b00000
mov dword [eax + 0x3848], 0x40800000
mov dword [eax + 0x384c], 0x40800000
mov byte [eax + 0x3854], 1
mov dword [eax + 0x3858], 0x3fa00000
call fcn.10077040
add esp, 4
mov dword [ebp - 0x30], 0x4355590d
mov dword [ebp - 0x2c], 0x5b5b5a41
mov dword [ebp - 0x28], 0x90b0616
mov word [ebp - 0x24], 0x100
xor ecx, ecx
nop
lea eax, [ecx + 0x2e]
xor byte [ebp + ecx - 0x30], al
inc ecx
cmp ecx, 0xc
jb 0x1003fb30
mov esi, dword [sym.imp.OPENGL32.dll_glGetIntegerv]
lea eax, [ebp - 0x14]
push eax
push 0x821b
mov byte [ebp - 0x23], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
call esi
lea eax, [ebp - 0x18]
push eax
push 0x821c
call esi
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x1003fb9b
cmp dword [ebp - 0x18], eax
jne 0x1003fb9b
push 0x1f02
call dword [sym.imp.OPENGL32.dll_glGetString]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push str._d._d
push eax
call fcn.1004ee30
mov eax, dword [ebp - 0x14]
add esp, 0x10
lea ecx, [eax + eax*4]
mov eax, dword [ebp - 0x18]
lea eax, [eax + ecx*2]
mov ecx, dword [0x102c26dc]
lea eax, [eax + eax*4]
add eax, eax
mov dword [0x102c2b84], eax
mov dword [ecx + 0x70], str.imgui_impl_opengl3
cmp eax, 0x140
jb 0x1003fbc6
or dword [ecx + 0xc], 8
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x30]
lea ecx, [ecx + 1]
mov byte [ecx + 0x102c2b97], al
test al, al
jne 0x1003fbd0
mov edi, 0x102c2b98
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x1003fbe7
mov ax, word [0x10258660]
mov word [edi], ax
lea eax, [ebp - 0x20]
push eax
push 0x8069
call esi
cmp dword [0x102c2b84], 0x1c2
lea eax, [ebp - 0x1c]
push eax
push 0x821d
setae byte [0x102c2b59]
mov dword [ebp - 0x1c], 0
call esi
xor esi, esi
cmp dword [ebp - 0x1c], esi
jle 0x1003fc83
lea edi, [esi + 1]
mov eax, dword [0x102bd368]
push esi
push 0x1f03
call eax
test eax, eax
je 0x1003fc7d
mov ecx, str.GL_ARB_clip_control
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1003fc68
test dl, dl
je 0x1003fc64
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1003fc68
add eax, 2
add ecx, 2
test dl, dl
jne 0x1003fc48
xor ecx, ecx
jmp 0x1003fc6c
sbb ecx, ecx
or ecx, edi
movzx eax, byte [0x102c2b59]
test ecx, ecx
cmove eax, edi
mov byte [0x102c2b59], al
inc esi
cmp esi, dword [ebp - 0x1c]
jl 0x1003fc32
call fcn.1003bd20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100e8209
mov esp, ebp
pop ebp
ret