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

Disassembly:
push 0xffffffffffffffff
push 0x4d5e2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
mov ebx, dword [esp + 0x98]
push ebp
push esi
push edi
mov di, word [ebx]
mov esi, ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], 0
imul di, word [esi + 0x86]
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0xa8]
mov ebp, dword [esi + 0x80]
mov dword [esp + 0x9c], 0
mov cl, byte [eax + 2]
mov dl, byte [eax + 1]
mov al, byte [eax]
push ecx
push edx
push eax
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 0x45899e
movsx ecx, di
lea ecx, [ecx + ecx*2]
shl ecx, 3
mov dword [esp + 0x30], ecx
jmp 0x45866f
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
lea ebx, [eax + eax*2]
lea esi, [ecx + ebp]
mov dword [esp + 0x28], 0
movsx ecx, word [edx + 0x86]
shl ebx, 3
sub ecx, eax
mov dword [esp + 0x2c], esi
lea edi, [ebx + ebp]
add ebx, esi
test ecx, ecx
jle 0x45896d
mov al, byte [ebp + 0xc]
mov dword [esp + 0x10], 0
cmp al, 0xa
jne 0x458745
cmp byte [edi + 0xc], 0xa
jne 0x458745
cmp byte [esi + 0xc], 0xa
jne 0x458745
push edi
push esi
lea edx, [esp + 0x3c]
push ebp
push edx
call fcn.00473480
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 [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 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 dword [esp + 0x10], 1
cmp byte [ebx + 0xc], 0xa
jne 0x4587e9
cmp byte [edi + 0xc], 0xa
jne 0x4587e9
cmp byte [esi + 0xc], 0xa
jne 0x4587e9
cmp word [esp + 0x10], 2
jge 0x4587e9
push ebx
push esi
lea ecx, [esp + 0x84]
push edi
push ecx
call fcn.00473480
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 0x45888b
cmp byte [edi + 0xc], 0xa
jne 0x45888b
cmp byte [ebx + 0xc], 0xa
jne 0x45892c
cmp word [esp + 0x10], 2
jge 0x45888b
push edi
push ebx
lea eax, [esp + 0x48]
push ebp
push eax
call fcn.00473480
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 0x45892c
cmp byte [ebp + 0xc], 0xa
jne 0x45892c
cmp byte [esi + 0xc], 0xa
jne 0x45892c
cmp word [esp + 0x10], 2
jge 0x45892c
push ebx
push esi
lea edx, [esp + 0x78]
push ebp
push edx
call fcn.00473480
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
lea eax, [ecx + ecx*2]
mov dword [esp + 0x28], edx
shl eax, 3
add ebp, eax
add edi, eax
add esi, eax
add ebx, eax
mov eax, dword [esp + 0x20]
movsx eax, word [eax + 0x86]
sub eax, ecx
movsx ecx, dx
cmp ecx, eax
jl 0x45869e
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 0x45866b
call dword [sym.imp.OPENGL32.dll_glEnd]
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret 8