Function at 0x4b8eb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 0x56a52c
push dword [ebp + 8]
call fcn.00504bca
mov edi, eax
add esp, 8
test edi, edi
je 0x4b915b
push edi
push 1
lea eax, [ebp - 0x28]
push 0xe
push eax
call fcn.005184d1
add esp, 0x10
cmp eax, 1
jb 0x4b9152
mov ebx, dword [ebp - 0x1e]
add ebx, 0xfffffff2
push ebx
call fcn.00511d0c
mov esi, eax
add esp, 4
test esi, esi
je 0x4b9152
push edi
push ebx
push 1
push esi
call fcn.005184d1
add esp, 0x10
cmp eax, ebx
jb 0x4b9137
mov ebx, dword [esi + 0x14]
test ebx, ebx
jne 0x4b8f43
mov eax, dword [esi + 8]
cdq
mov ebx, eax
movzx eax, word [esi + 0xe]
imul eax, dword [esi + 4]
xor ebx, edx
sub ebx, edx
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
imul ebx, eax
push ebx
call fcn.00511d0c
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x4b9137
push edi
push ebx
push 1
push eax
call fcn.005184d1
add esp, 0x10
cmp eax, ebx
jae 0x4b8f8b
push esi
call fcn.004f1251
push dword [ebp - 4]
call fcn.004f1251
push edi
call fcn.00504888
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call fcn.00504888
mov eax, dword [esi + 4]
inc eax
push 1
lea ecx, [eax + eax*2]
mov eax, dword [esi + 8]
and ecx, 0xfffffffc
imul eax, ecx
mov dword [ebp - 0x18], ecx
push eax
call fcn.004f1246
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x4b8fd5
push esi
call fcn.004f1251
push dword [ebp - 4]
call fcn.004f1251
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x10], 0
jne 0x4b9053
cmp word [esi + 0xe], 0x18
jne 0x4b9053
xor ecx, ecx
mov dword [ebp - 0xc], ecx
cmp dword [esi + 8], ecx
jle 0x4b9053
mov ebx, dword [ebp - 4]
add edi, 2
mov eax, dword [esi + 4]
mov edx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], edi
nop dword [eax]
xor edi, edi
test eax, eax
jle 0x4b9039
mov ecx, dword [ebp - 8]
sub ebx, dword [ebp - 0x14]
nop dword [eax]
movzx eax, byte [ebx + ecx]
lea edx, [edx + 3]
mov byte [ecx - 2], al
lea ecx, [ecx + 3]
movzx eax, byte [edx - 2]
inc edi
mov byte [ecx - 4], al
movzx eax, byte [edx - 3]
mov byte [ecx - 3], al
mov eax, dword [esi + 4]
cmp edi, eax
jl 0x4b9010
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
inc ecx
mov edi, dword [ebp - 0x18]
add edx, edi
add dword [ebp - 8], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
cmp ecx, dword [esi + 8]
jl 0x4b9000
mov edi, dword [ebp - 0x14]
push 4
push 0xcf5
call dword [sym.imp.OPENGL32.dll_glPixelStorei]
push 0
push 0xcf2
call dword [sym.imp.OPENGL32.dll_glPixelStorei]
push 0
push 0xcf3
call dword [sym.imp.OPENGL32.dll_glPixelStorei]
push 0
push 0xcf4
call dword [sym.imp.OPENGL32.dll_glPixelStorei]
mov ecx, dword [esi + 8]
mov eax, dword [esi + 4]
push edi
push 0x1401
push 0x1907
push 0
cmp ecx, 1
jne 0x4b90d5
push eax
push 3
push 0
push 0xde0
call dword [sym.imp.OPENGL32.dll_glTexImage1D]
push 0x2600
push 0x2800
push 0xde0
call dword [sym.imp.OPENGL32.dll_glTexParameteri]
push 0x2600
push 0x2801
push 0xde0
jmp 0x4b910f
push ecx
cmp eax, 1
je 0x4b90a0
push eax
push 3
push 0
push 0xde1
call dword [sym.imp.OPENGL32.dll_glTexImage2D]
push 0x2600
push 0x2800
push 0xde1
call dword [sym.imp.OPENGL32.dll_glTexParameteri]
push 0x2600
push 0x2801
push 0xde1
call dword [sym.imp.OPENGL32.dll_glTexParameteri]
push edi
call fcn.004f1251
push esi
call fcn.004f1251
push dword [ebp - 4]
call fcn.004f1251
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.004f1251
push edi
call fcn.00504888
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call fcn.00504888
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4