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

Disassembly:
push 0xffffffffffffffff
push 0x4d5e6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x18], esi
mov eax, dword [esi + 0x88]
test eax, eax
jle 0x458dc9
mov ebp, dword [esi + 0x80]
test ebp, ebp
je 0x458dc9
mov al, byte [esi + 0x74]
test al, al
je 0x458a18
mov eax, dword [esp + 0x9c]
push eax
call fcn.00458df0
jmp 0x458dc9
push ebx
mov ebx, dword [esp + 0xa0]
push edi
mov dword [esp + 0x14], 0
mov di, word [ebx]
mov dword [esp + 0x18], 0
imul di, word [esi + 0x86]
mov dword [esp + 0x1c], 0
mov cl, byte [esi + 0x1a]
mov dl, byte [esi + 0x19]
mov al, byte [esi + 0x18]
push ecx
push edx
push eax
mov dword [esp + 0xa8], 0
call dword [sym.imp.OPENGL32.dll_glColor3ub]
push 4
call dword [sym.imp.OPENGL32.dll_glBegin]
movsx eax, word [ebx]
movsx ecx, word [esi + 0x84]
sub ecx, eax
mov dword [esp + 0x24], 0
test ecx, ecx
jle 0x458dc1
movsx esi, di
shl esi, 4
mov dword [esp + 0x30], esi
jmp 0x458a95
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
mov ebx, eax
shl ebx, 4
movsx ecx, word [edx + 0x86]
add esi, ebp
lea edi, [ebx + ebp]
sub ecx, eax
add ebx, esi
test ecx, ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], 0
jle 0x458d90
mov al, byte [ebp + 0xc]
mov dword [esp + 0x10], 0
cmp al, 0xa
jne 0x458b69
cmp byte [edi + 0xc], 0xa
jne 0x458b69
cmp byte [esi + 0xc], 0xa
jne 0x458b69
push edi
push esi
lea edx, [esp + 0x3c]
push ebp
push edx
call fcn.00473330
add esp, 0x10
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa4], 1
call fcn.004051b0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
mov byte [esp + 0xa8], 0
call dword [sym.imp.OPENGL32.dll_glNormal3f]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 4]
mov eax, dword [ebp]
push ecx
push edx
push eax
call dword [sym.imp.OPENGL32.dll_glVertex3f]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.OPENGL32.dll_glVertex3f]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
mov eax, dword [edi]
push ecx
push edx
push eax
call dword [sym.imp.OPENGL32.dll_glVertex3f]
mov dword [esp + 0x10], 1
cmp byte [ebx + 0xc], 0xa
jne 0x458c0d
cmp byte [edi + 0xc], 0xa
jne 0x458c0d
cmp byte [esi + 0xc], 0xa
jne 0x458c0d
cmp word [esp + 0x10], 2
jge 0x458c0d
push ebx
push esi
lea ecx, [esp + 0x84]
push edi
push ecx
call fcn.00473330
add esp, 0x10
lea edx, [esp + 0x64]
push eax
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa4], 2
call fcn.004051b0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
mov byte [esp + 0xa8], 0
call dword [sym.imp.OPENGL32.dll_glNormal3f]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push eax
push ecx
push edx
call dword [sym.imp.OPENGL32.dll_glVertex3f]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
mov edx, dword [edi]
push eax
push ecx
push edx
call dword [sym.imp.OPENGL32.dll_glVertex3f]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push eax
push ecx
push edx
call dword [sym.imp.OPENGL32.dll_glVertex3f]
inc dword [esp + 0x10]
cmp byte [ebp + 0xc], 0xa
jne 0x458caf
cmp byte [edi + 0xc], 0xa
jne 0x458caf
cmp byte [ebx + 0xc], 0xa
jne 0x458d50
cmp word [esp + 0x10], 2
jge 0x458caf
push edi
push ebx
lea eax, [esp + 0x48]
push ebp
push eax
call fcn.00473330
add esp, 0x10
lea ecx, [esp + 0x58]
push eax
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa4], 3
call fcn.004051b0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
mov byte [esp + 0xa8], 0
call dword [sym.imp.OPENGL32.dll_glNormal3f]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
push edx
push eax
push ecx
call dword [sym.imp.OPENGL32.dll_glVertex3f]
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
push edx
push eax
push ecx
call dword [sym.imp.OPENGL32.dll_glVertex3f]
mov edx, dword [edi + 8]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push edx
push eax
push ecx
call dword [sym.imp.OPENGL32.dll_glVertex3f]
inc dword [esp + 0x10]
cmp byte [ebx + 0xc], 0xa
jne 0x458d50
cmp byte [ebp + 0xc], 0xa
jne 0x458d50
cmp byte [esi + 0xc], 0xa
jne 0x458d50
cmp word [esp + 0x10], 2
jge 0x458d50
push ebx
push esi
lea edx, [esp + 0x78]
push ebp
push edx
call fcn.00473330
add esp, 0x10
push eax
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa4], 4
call fcn.004051b0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
mov byte [esp + 0xa8], 0
call dword [sym.imp.OPENGL32.dll_glNormal3f]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
push ecx
push edx
push eax
call dword [sym.imp.OPENGL32.dll_glVertex3f]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 4]
mov eax, dword [ebp]
push ecx
push edx
push eax
call dword [sym.imp.OPENGL32.dll_glVertex3f]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.OPENGL32.dll_glVertex3f]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x28]
mov ax, word [ecx]
movsx ecx, ax
add edx, eax
mov eax, ecx
shl eax, 4
add ebp, eax
add edi, eax
add esi, eax
add ebx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], edx
movsx eax, word [eax + 0x86]
sub eax, ecx
movsx ecx, dx
cmp ecx, eax
jl 0x458ac2
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0xa4]
mov ecx, dword [esp + 0x24]
mov ebp, esi
mov ax, word [edx]
mov edx, dword [esp + 0x20]
add ecx, eax
movsx edx, word [edx + 0x84]
movsx eax, ax
mov dword [esp + 0x24], ecx
sub edx, eax
movsx ecx, cx
cmp ecx, edx
jl 0x458a91
call dword [sym.imp.OPENGL32.dll_glEnd]
pop edi
pop ebx
mov ecx, dword [esp + 0x8c]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x90
ret 4