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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
push esi
push edi
push 2
lea eax, [esp + 0x88]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp + 8]
xor esi, esi
xor edi, edi
mov dword [esp + 0x28], esi
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], esi
call fcn.004ccc30
xor ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x20]
cmp ecx, eax
je 0x4def93
call fcn.00408410
mov ecx, dword [esp + 0x18]
mov edi, dword [ecx]
mov esi, dword [ecx + 4]
mov eax, dword [ecx + 8]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x84]
call fcn.00408410
mov ecx, dword [esp + 0x14]
xor eax, eax
sub ecx, dword [esp + 0x1c]
sar ecx, 2
test ecx, ecx
je 0x4defcf
sub esi, edi
sar esi, 2
cmp esi, eax
jbe 0x4df5e9
mov edi, dword [edi + eax*4]
cmp dword [edi + 8], 2
je 0x4defd1
mov edi, dword [esp + 0x20]
inc eax
cmp eax, esi
jb 0x4defb5
xor edi, edi
lea ecx, [esp + 0x20]
call fcn.00408410
push 0
push 0x561304
push 0x5612c4
push 0
push edi
call fcn.005110f2
mov ecx, dword [ebp + 0xc]
add esp, 0x14
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x74], eax
mov ecx, dword [ecx + 0x1c]
mov dword [esp + 0x18], ecx
jne 0x4df0c4
call dword [sym.imp.OPENGL32.dll_glPushMatrix]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
movss xmm0, dword [ecx + 0x3c]
movss dword [esp + 0x30], xmm0
movss xmm0, dword [ecx + 0x4c]
movss dword [esp + 0x34], xmm0
movss xmm0, dword [ecx + 0x5c]
movss dword [esp + 0x38], xmm0
movss xmm0, dword [ecx + 0x6c]
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [ecx + 0x40]
movss dword [esp + 0x40], xmm0
movss xmm0, dword [ecx + 0x50]
movss dword [esp + 0x44], xmm0
movss xmm0, dword [ecx + 0x60]
movss dword [esp + 0x48], xmm0
movss xmm0, dword [ecx + 0x70]
movss dword [esp + 0x4c], xmm0
movss xmm0, dword [ecx + 0x44]
movss dword [esp + 0x50], xmm0
movss xmm0, dword [ecx + 0x54]
movss dword [esp + 0x54], xmm0
movss xmm0, dword [ecx + 0x64]
movss dword [esp + 0x58], xmm0
movss xmm0, dword [ecx + 0x74]
movss dword [esp + 0x5c], xmm0
movss xmm0, dword [ecx + 0x48]
movss dword [esp + 0x60], xmm0
movss xmm0, dword [ecx + 0x58]
movss dword [esp + 0x64], xmm0
movss xmm0, dword [ecx + 0x68]
movss dword [esp + 0x68], xmm0
movss xmm0, dword [ecx + 0x78]
jmp 0x4df1e8
mov edi, dword [sym.imp.OPENGL32.dll_glMatrixMode]
push 0x1701
call edi
mov esi, dword [sym.imp.OPENGL32.dll_glLoadIdentity]
call esi
mov ecx, dword [esp + 0x2c]
sub esp, 0x30
movsd xmm0, qword [0x54f7b8]
xorps xmm1, xmm1
mov eax, dword [ecx + 8]
movsd qword [esp + 0x28], xmm0
movups xmmword [esp + 0x18], xmm1
mov eax, dword [eax + 0x10]
movss xmm0, dword [eax + 0x168]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x10], xmm0
movss xmm0, dword [eax + 0x164]
cvtps2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
movsd qword [esp], xmm1
call dword [sym.imp.OPENGL32.dll_glOrtho]
push 0x1700
call edi
call esi
call dword [sym.imp.OPENGL32.dll_glPushMatrix]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
movss xmm0, dword [eax + 0x3c]
movss dword [esp + 0x30], xmm0
movss xmm0, dword [eax + 0x4c]
movss dword [esp + 0x34], xmm0
movss xmm0, dword [eax + 0x5c]
movss dword [esp + 0x38], xmm0
movss xmm0, dword [eax + 0x6c]
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [eax + 0x40]
movss dword [esp + 0x40], xmm0
movss xmm0, dword [eax + 0x50]
movss dword [esp + 0x44], xmm0
movss xmm0, dword [eax + 0x60]
movss dword [esp + 0x48], xmm0
movss xmm0, dword [eax + 0x70]
movss dword [esp + 0x4c], xmm0
movss xmm0, dword [eax + 0x44]
movss dword [esp + 0x50], xmm0
movss xmm0, dword [eax + 0x54]
movss dword [esp + 0x54], xmm0
movss xmm0, dword [eax + 0x64]
movss dword [esp + 0x58], xmm0
movss xmm0, dword [eax + 0x74]
movss dword [esp + 0x5c], xmm0
movss xmm0, dword [eax + 0x48]
movss dword [esp + 0x60], xmm0
movss xmm0, dword [eax + 0x58]
movss dword [esp + 0x64], xmm0
movss xmm0, dword [eax + 0x68]
movss dword [esp + 0x68], xmm0
movss xmm0, dword [eax + 0x78]
lea eax, [esp + 0x30]
movss dword [esp + 0x6c], xmm0
push eax
call dword [sym.imp.OPENGL32.dll_glMultMatrixf]
mov edi, dword [sym.imp.OPENGL32.dll_glEnable]
push 0xbe2
call edi
push 0x303
push 0x302
call dword [sym.imp.OPENGL32.dll_glBlendFunc]
push 0xbc0
call edi
push ecx
mov dword [esp], 0
push 0x204
call dword [sym.imp.OPENGL32.dll_glAlphaFunc]
mov eax, dword [ebp + 0xc]
sub esp, 0x10
movups xmm0, xmmword [eax + 0x50]
movups xmmword [esp], xmm0
call dword [sym.imp.OPENGL32.dll_glColor4f]
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x4df262
cmp byte [esi + 0x1c], 0
je 0x4df262
movups xmm0, xmmword [esi + 0x20]
sub esp, 0x10
movups xmmword [esp], xmm0
call dword [sym.imp.OPENGL32.dll_glColor4f]
push 0xde1
call edi
push 0x1b02
push 0x408
call dword [sym.imp.OPENGL32.dll_glPolygonMode]
push 0x8074
call dword [sym.imp.OPENGL32.dll_glEnableClientState]
mov eax, dword [ebp + 0xc]
add eax, 0x68
mov dword [esp + 0x14], eax
mov ecx, eax
mov edi, dword [eax + 0x14]
cmp edi, 0x10
jb 0x4df29a
mov ecx, dword [eax]
mov edx, dword [eax + 0x10]
push 0
push 0x527b0c
call fcn.00404ad0
add esp, 8
test al, al
je 0x4df375
test esi, esi
je 0x4df2eb
mov eax, dword [esi + 0x14]
cmp byte [eax + 0x18], 0
je 0x4df2eb
cmp dword [eax + 0x10], 0
je 0x4df2eb
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x4df2df
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4df2eb
mov eax, dword [eax + 0x10]
test eax, eax
je 0x4df2eb
push eax
push 0xde1
call dword [sym.imp.OPENGL32.dll_glBindTexture]
mov esi, dword [esp + 0x18]
mov eax, dword [sym.imp.glew32.dll___glewBindBuffer]
push dword [esi + 0x50]
mov eax, dword [eax]
push 0x8892
call eax
push 0
push 0
push 0x1406
push 3
call dword [sym.imp.OPENGL32.dll_glVertexPointer]
mov eax, dword [sym.imp.glew32.dll___glewBindBuffer]
push 0
push 0x8892
mov eax, dword [eax]
call eax
push 0x8078
call dword [sym.imp.OPENGL32.dll_glEnableClientState]
mov eax, dword [sym.imp.glew32.dll___glewBindBuffer]
push dword [esi + 0x58]
push 0x8892
mov eax, dword [eax]
call eax
push 0
push 0
push 0x1406
push 2
call dword [sym.imp.OPENGL32.dll_glTexCoordPointer]
mov eax, dword [sym.imp.glew32.dll___glewBindBuffer]
push dword [esi + 0x54]
push 0x8893
mov eax, dword [eax]
call eax
push 0
push 0x1405
push 6
push 4
call dword [sym.imp.OPENGL32.dll_glDrawElements]
jmp 0x4df545
cmp edi, 0x10
jb 0x4df384
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x78]
push 0
push eax
call fcn.004ccc30
mov eax, dword [esp + 0x7c]
xor edi, edi
sub eax, dword [esp + 0x78]
sar eax, 2
mov dword [esp + 0x18], eax
test eax, eax
je 0x4df53c
nop dword [eax]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x80]
mov edx, dword [eax + 4]
mov esi, edx
mov dword [esp + 0x1c], edx
mov eax, dword [edx + 4]
mov ch, byte [eax + 0xd]
test ch, ch
jne 0x4df3f7
mov ecx, dword [esp + 0x14]
mov cl, byte [ecx + edi]
mov byte [esp + 0x12], cl
mov ecx, eax
mov dl, byte [esp + 0x12]
nop dword [eax]
cmp byte [ecx + 0x10], dl
jge 0x4df3ea
mov ecx, dword [ecx + 8]
jmp 0x4df3ee
mov esi, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x4df3e0
mov ch, byte [eax + 0xd]
cmp byte [esi + 0xd], 0
jne 0x4df5df
mov edx, dword [esp + 0x14]
mov cl, byte [edx + edi]
mov edx, dword [esp + 0x1c]
cmp cl, byte [esi + 0x10]
jl 0x4df5df
cmp dword [esi + 0x14], 0
je 0x4df464
test ch, ch
jne 0x4df434
nop
cmp byte [eax + 0x10], cl
jge 0x4df42a
mov eax, dword [eax + 8]
jmp 0x4df42e
mov edx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x4df420
cmp byte [edx + 0xd], 0
jne 0x4df5df
cmp cl, byte [edx + 0x10]
jl 0x4df5df
mov eax, dword [edx + 0x14]
movq xmm0, qword [edx + 0x24]
push eax
push 0xde1
movq qword [esp + 0xa8], xmm0
call dword [sym.imp.OPENGL32.dll_glBindTexture]
cmp dword [esp + 0x18], edi
jbe 0x4df5e9
mov eax, dword [esp + 0x78]
push 0
push 0x561328
push 0x5612c4
push 0
push dword [eax + edi*4]
call fcn.005110f2
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4df531
cmp byte [esi + 0x1c], 0
je 0x4df531
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4df531
push dword [eax + 0x6c]
mov eax, dword [sym.imp.glew32.dll___glewBindBuffer]
push 0x8892
mov eax, dword [eax]
call eax
push 0
push 0
push 0x1406
push 3
call dword [sym.imp.OPENGL32.dll_glVertexPointer]
mov eax, dword [sym.imp.glew32.dll___glewBindBuffer]
push 0
push 0x8892
mov eax, dword [eax]
call eax
push 0x8078
call dword [sym.imp.OPENGL32.dll_glEnableClientState]
mov eax, dword [esi + 0x14]
push dword [eax + 0x78]
mov eax, dword [sym.imp.glew32.dll___glewBindBuffer]
push 0x8892
mov eax, dword [eax]
call eax
push 0
push 0
push 0x1406
push 2
call dword [sym.imp.OPENGL32.dll_glTexCoordPointer]
mov eax, dword [esi + 0x14]
push dword [eax + 0x70]
mov eax, dword [sym.imp.glew32.dll___glewBindBuffer]
push 0x8893
mov eax, dword [eax]
call eax
push 0
push 0x1405
push 6
push 4
call dword [sym.imp.OPENGL32.dll_glDrawElements]
inc edi
cmp edi, dword [esp + 0x18]
jb 0x4df3b0
lea ecx, [esp + 0x78]
call fcn.00408410
mov eax, dword [sym.imp.glew32.dll___glewBindBuffer]
push 0
push 0x8893
mov eax, dword [eax]
call eax
mov eax, dword [sym.imp.glew32.dll___glewBindBuffer]
push 0
push 0x8892
mov eax, dword [eax]
call eax
mov esi, dword [sym.imp.OPENGL32.dll_glDisableClientState]
push 0x8078
call esi
push 0x8074
call esi
push 0
push 0xde1
call dword [sym.imp.OPENGL32.dll_glBindTexture]
push 0xbc0
call dword [sym.imp.OPENGL32.dll_glDisable]
sub esp, 0x10
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x3f800000
call dword [sym.imp.OPENGL32.dll_glColor4f]
call dword [sym.imp.OPENGL32.dll_glPopMatrix]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0x74]
mov eax, dword [eax + 0x14]
movzx eax, byte [eax + 0x62]
push eax
call fcn.00411f30
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push str.invalid_map_K__T__key
call fcn.004e6eb2
call fcn.0040d520
int3