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

Disassembly:
push 0xffffffffffffffff
push 0x4d5deb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebp
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
mov eax, dword [edi + 0x88]
test eax, eax
jle 0x458599
mov ebp, dword [edi + 0x80]
test ebp, ebp
je 0x458599
mov al, byte [edi + 0x74]
test al, al
je 0x4581e2
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x9c]
push eax
push ecx
mov ecx, edi
call fcn.004585c0
jmp 0x458599
push ebx
mov ebx, dword [esp + 0xa0]
push esi
mov dword [esp + 0x14], 0
mov si, word [ebx]
mov dword [esp + 0x18], 0
imul si, word [edi + 0x86]
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x9c], 0
mov dl, byte [eax + 2]
mov cl, byte [eax + 1]
push edx
mov dl, byte [eax]
push ecx
push edx
call dword [sym.imp.OPENGL32.dll_glColor3ub]
push 4
call dword [sym.imp.OPENGL32.dll_glBegin]
movsx eax, word [ebx]
movsx ecx, word [edi + 0x84]
sub ecx, eax
mov dword [esp + 0x24], 0
test ecx, ecx
jle 0x458591
movsx esi, si
shl esi, 4
mov dword [esp + 0x30], esi
jmp 0x458265
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 0x458560
mov al, byte [ebp + 0xc]
mov dword [esp + 0x10], 0
cmp al, 0xa
jne 0x458339
cmp byte [edi + 0xc], 0xa
jne 0x458339
cmp byte [esi + 0xc], 0xa
jne 0x458339
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 0x4583dd
cmp byte [edi + 0xc], 0xa
jne 0x4583dd
cmp byte [esi + 0xc], 0xa
jne 0x4583dd
cmp word [esp + 0x10], 2
jge 0x4583dd
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 0x45847f
cmp byte [edi + 0xc], 0xa
jne 0x45847f
cmp byte [ebx + 0xc], 0xa
jne 0x458520
cmp word [esp + 0x10], 2
jge 0x45847f
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 0x458520
cmp byte [ebp + 0xc], 0xa
jne 0x458520
cmp byte [esi + 0xc], 0xa
jne 0x458520
cmp word [esp + 0x10], 2
jge 0x458520
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 0x458292
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 0x458261
call dword [sym.imp.OPENGL32.dll_glEnd]
pop esi
pop ebx
mov ecx, dword [esp + 0x8c]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x90
ret 8