Function at 0x10008230
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10250da8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x2c], esi
mov ecx, dword [ebp + 8]
xor edi, edi
mov dword [esi], vtable.nme::OGLTexture.0
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x30], ecx
mov eax, dword [ecx]
mov edx, dword [eax + 0x4c]
mov dword [ebp - 4], edi
call edx
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x20], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x50]
call edx
mov ebx, dword [ebp + 0xc]
mov dword [esi + 0x24], eax
xor eax, eax
xor ecx, ecx
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
xor edx, edx
mov cl, bl
mov dword [esi + 0xc], edx
and cl, 1
movzx edx, cl
mov dword [esi + 0x10], edi
mov eax, dword [0x102d5558]
push edx
mov dword [esi + 0x14], eax
call fcn.10008080
add esp, 4
test al, al
je 0x100082c7
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
jmp 0x100082ea
mov eax, dword [esi + 0x20]
push eax
call fcn.10019620
mov ecx, dword [esi + 0x24]
add esp, 4
push ecx
mov dword [ebp - 0x14], eax
call fcn.10019620
mov edx, dword [ebp - 0x14]
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, eax
lea eax, [edx - 1]
test edx, eax
jne 0x100082ff
lea eax, [ecx - 1]
test ecx, eax
jne 0x100082ff
mov eax, 1
jmp 0x10008301
xor eax, eax
mov dword [esi + 0x2c], ecx
mov ecx, ebx
shr ecx, 1
mov byte [esi + 0x1c], al
mov dword [esi + 0x28], edx
test cl, 1
je 0x10008322
shr ebx, 2
test bl, 1
jne 0x10008322
mov eax, 1
jmp 0x10008324
xor eax, eax
mov byte [esi + 0x1f], al
test al, al
je 0x10008335
call fcn.100081e0
mov dword [ebp - 0x1c], eax
jmp 0x10008338
mov dword [ebp - 0x1c], edi
mov ecx, dword [esi + 0x30]
mov edx, dword [ecx]
mov eax, dword [edx + 0x54]
call eax
test eax, eax
je 0x10008361
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [esi + 0x20]
jne 0x1000835b
mov edx, dword [ebp - 0x18]
cmp edx, dword [esi + 0x24]
jne 0x1000835b
cmp dword [ebp - 0x1c], edi
je 0x10008361
mov byte [ebp + 0xb], 1
jmp 0x10008365
mov byte [ebp + 0xb], 0
mov ecx, dword [esi + 0x30]
mov eax, dword [ecx]
mov edx, dword [eax + 0x40]
mov dword [ebp + 0xc], edi
call edx
mov ecx, dword [esi + 0x30]
mov edx, dword [ecx]
mov ebx, eax
xor eax, eax
cmp ebx, 3
setne al
lea edi, [ebx - 3]
neg edi
sbb edi, edi
and edi, 0x67db
add edi, 0x1906
mov dword [ebp - 0x24], edi
lea eax, [eax + eax + 0x1906]
mov dword [ebp - 0x28], eax
mov eax, dword [edx + 0x6c]
mov dword [ebp - 0x10], 0x1401
call eax
mov ecx, dword [esi + 0x30]
mov edx, dword [ecx]
mov dword [ebp - 0x20], eax
mov eax, dword [edx + 0x54]
call eax
test eax, eax
jne 0x100083f3
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
je 0x1000865b
mov eax, ecx
sub eax, 0x11
je 0x100083e7
dec eax
je 0x100083db
mov dword [ebp - 0x10], ecx
jmp 0x1000865b
mov dword [ebp - 0x10], 0x8363
jmp 0x1000865b
mov dword [ebp - 0x10], 0x8033
jmp 0x1000865b
mov eax, dword [ebp - 0x20]
cmp eax, 0x11
jne 0x10008472
mov ecx, dword [esi + 0x28]
imul ecx, dword [esi + 0x2c]
add ecx, ecx
push ecx
mov dword [ebp - 0x10], 0x8033
call fcn.10231473
add esp, 4
cmp dword [esi + 0x24], 0
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], 0
jle 0x1000865b
mov ebx, dword [esi + 0x30]
mov edx, dword [ebx]
mov eax, dword [edx + 0x58]
mov ecx, ebx
call eax
imul eax, dword [ebp + 8]
mov edx, dword [ebx]
mov dword [ebp - 0x20], eax
mov eax, dword [edx + 0x54]
mov ecx, ebx
call eax
mov edx, dword [esi + 0x28]
mov ebx, dword [ebp + 8]
mov ecx, dword [esi + 0x20]
imul edx, ebx
add eax, dword [ebp - 0x20]
push ecx
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [eax + edx*2]
push ecx
call fcn.10008170
inc ebx
add esp, 0xc
mov dword [ebp + 8], ebx
cmp ebx, dword [esi + 0x24]
jl 0x10008428
jmp 0x1000865b
cmp eax, 0x12
jne 0x100084ee
mov edx, dword [esi + 0x28]
imul edx, dword [esi + 0x2c]
add edx, edx
push edx
mov dword [ebp - 0x10], 0x8363
call fcn.10231473
add esp, 4
cmp dword [esi + 0x24], 0
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], 0
jle 0x1000865b
mov ebx, dword [esi + 0x30]
mov eax, dword [ebx]
mov edx, dword [eax + 0x58]
mov ecx, ebx
call edx
imul eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x54]
mov ecx, ebx
call edx
mov edx, dword [esi + 0x28]
mov ebx, dword [ebp + 8]
mov ecx, dword [esi + 0x20]
imul edx, ebx
add eax, dword [ebp - 0x20]
push ecx
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [eax + edx*2]
push ecx
call fcn.10008100
inc ebx
add esp, 0xc
mov dword [ebp + 8], ebx
cmp ebx, dword [esi + 0x24]
jl 0x100084a4
jmp 0x1000865b
cmp byte [ebp + 0xb], 0
je 0x10008643
mov ecx, dword [esi + 0x30]
mov edx, dword [ecx]
mov eax, dword [edx + 0x40]
call eax
mov ecx, dword [esi + 0x28]
lea ebx, [eax - 3]
neg ebx
sbb ebx, ebx
imul ecx, dword [esi + 0x2c]
and ebx, 3
inc ebx
imul ecx, ebx
push ecx
call fcn.10231473
add esp, 4
cmp dword [esi + 0x24], 0
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], 0
jle 0x10008602
mov edi, dword [esi + 0x30]
mov edx, dword [edi]
mov eax, dword [edx + 0x58]
mov ecx, edi
call eax
imul eax, dword [ebp + 8]
mov edx, dword [edi]
mov dword [ebp - 0x20], eax
mov eax, dword [edx + 0x54]
mov ecx, edi
call eax
mov edi, dword [esi + 0x28]
imul edi, dword [ebp + 8]
add eax, dword [ebp - 0x20]
imul edi, ebx
add edi, dword [ebp + 0xc]
cmp dword [ebp - 0x1c], 0
je 0x100085bc
cmp dword [esi + 0x20], 0
mov dword [ebp - 0x20], 0
jle 0x100085d5
movzx ecx, byte [eax + 3]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx + ecx*4]
movzx edx, byte [eax]
imul edx, ecx
sar edx, 0x10
mov byte [edi], dl
movzx edx, byte [eax + 1]
imul edx, ecx
sar edx, 0x10
mov byte [edi + 1], dl
movzx edx, byte [eax + 2]
imul edx, ecx
sar edx, 0x10
mov byte [edi + 2], dl
mov cl, byte [eax + 3]
mov byte [edi + 3], cl
mov ecx, dword [ebp - 0x20]
inc ecx
add edi, 4
add eax, 4
mov dword [ebp - 0x20], ecx
cmp ecx, dword [esi + 0x20]
jl 0x10008573
jmp 0x100085d5
mov edx, dword [esi + 0x20]
imul edx, ebx
push edx
push eax
push edi
call fcn.10230070
mov eax, dword [esi + 0x20]
imul eax, ebx
add esp, 0xc
add edi, eax
mov eax, dword [esi + 0x20]
cmp dword [ebp - 0x14], eax
jle 0x100085ef
dec eax
imul eax, ebx
add eax, dword [ebp + 0xc]
push ebx
push eax
push edi
call fcn.10230070
add esp, 0xc
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [esi + 0x24]
jl 0x10008534
mov edi, dword [ebp - 0x24]
mov ecx, dword [esi + 0x24]
cmp dword [ebp - 0x18], ecx
je 0x1000865b
mov eax, dword [esi + 0x28]
imul eax, ecx
imul eax, ebx
add eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x20]
cmp dword [ebp - 0x14], eax
setne cl
add ecx, eax
mov eax, dword [esi + 0x28]
imul ecx, ebx
imul eax, ebx
push ecx
mov ecx, dword [ebp - 0x24]
mov edx, ecx
sub edx, eax
push edx
push ecx
call fcn.10230070
add esp, 0xc
jmp 0x1000865b
mov ebx, dword [esi + 0x30]
mov eax, dword [ebx]
mov edx, dword [eax + 0x58]
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x54]
mov ecx, ebx
call edx
mov dword [ebp + 0xc], eax
lea ebx, [esi + 0x18]
push ebx
push 1
mov dword [ebx], 0
call dword [sym.imp.OPENGL32.dll_glGenTextures]
mov eax, dword [ebx]
push eax
push 0xde1
call dword [sym.imp.OPENGL32.dll_glBindTexture]
mov al, byte [esi + 0x1c]
mov ebx, dword [sym.imp.OPENGL32.dll_glTexParameteri]
movzx ecx, al
neg ecx
sbb ecx, ecx
and ecx, 0xffffa7d2
add ecx, 0x812f
push ecx
push 0x2802
push 0xde1
mov byte [esi + 0x1d], al
mov byte [esi + 0x1e], 1
call ebx
movzx edx, byte [esi + 0x1d]
neg edx
sbb edx, edx
and edx, 0xffffa7d2
add edx, 0x812f
push edx
push 0x2803
push 0xde1
call ebx
push 0x2601
push 0x2801
push 0xde1
call ebx
push 0x2601
push 0x2800
push 0xde1
call ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
push ebx
push eax
mov eax, dword [ebp - 0x28]
push edi
push 0
push ecx
push edx
push eax
push 0
push 0xde1
call dword [sym.imp.OPENGL32.dll_glTexImage2D]
test ebx, ebx
je 0x10008738
mov edi, dword [esi + 0x30]
mov edx, dword [edi]
mov eax, dword [edx + 0x58]
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x54]
mov ecx, edi
call eax
cmp ebx, eax
je 0x10008738
push ebx
call fcn.1023138c
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8