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

Disassembly:
fld dword [0x54fb38]
sub esp, 0x34
push edi
mov edi, ecx
fld dword [edi + 0x24]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x419b07
mov eax, dword [edi + 0x244]
test eax, eax
je 0x419b07
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x419425
mov eax, dword [edi + 0x178]
mov ecx, dword [eax + 0xf8]
test ecx, ecx
je 0x419b07
mov eax, dword [edi + 0x68]
test eax, eax
push ebx
push ebp
push esi
je 0x41948f
mov eax, dword [edi + 0x19c]
xor esi, esi
test eax, eax
jle 0x419b04
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x54]
test esi, esi
jl 0x419b10
cmp esi, dword [edi + 0x19c]
jge 0x419b10
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push ebx
push ebp
push ecx
mov ecx, dword [edi + 0x198]
mov ecx, dword [ecx + esi*4]
push edx
push eax
call fcn.004193e0
mov eax, dword [edi + 0x19c]
inc esi
cmp esi, eax
jl 0x419447
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x34
ret 0x14
mov esi, dword [sym.imp.opengl32.dll_glEnable]
push 0xbe2
call esi
push 0xde1
call esi
mov esi, dword [sym.imp.opengl32.dll_glTexParameteri]
push 0x2900
push 0x2802
push 0xde1
call esi
push 0x2900
push 0x2803
push 0xde1
call esi
call dword [sym.imp.opengl32.dll_glLoadIdentity]
mov eax, dword [edi + 0x40]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x3c], ebx
jle 0x419aea
test ebx, ebx
jl 0x419b10
cmp ebx, dword [edi + 0x40]
jge 0x419b10
mov edx, dword [edi + 0x3c]
mov esi, dword [edx + ebx*4]
fld dword [esi + 0x34]
fcomp dword [0x54fb38]
fnstsw ax
test ah, 0x41
jne 0x419ada
mov eax, dword [esi + 0xe4]
mov ecx, dword [eax + 0x11c]
test ecx, ecx
je 0x419ada
mov ecx, dword [eax + 0x9c]
mov edx, dword [ecx + 0xc]
add ecx, 4
test edx, edx
jle 0x419b10
fld dword [eax + 0x124]
mov ecx, dword [ecx + 4]
fld dword [eax + 0x120]
mov ecx, dword [ecx]
fadd st(0), st(0)
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x30]
fidiv dword [ecx + 4]
push eax
push ecx
fstp dword [esp + 0x38]
mov edx, dword [esp + 0x38]
fadd st(0), st(0)
fidiv dword [ecx + 8]
fstp dword [esp + 0x3c]
fld dword [esi + 0x40]
mov ecx, dword [esp + 0x3c]
fchs
fstp dword [esp]
push ecx
push edx
call fcn.0049ba90
fld dword [edi + 0x1ac]
fmul dword [esi + 0x48]
mov eax, dword [edi + 0x190]
lea ecx, [esp + 0x30]
push ecx
fmul dword [0x550df4]
lea edx, [esp + 0x30]
push edx
fstp dword [esp + 0x40]
fld dword [edi + 0x1b0]
fmul dword [esi + 0x50]
fmul dword [0x550df4]
fstp dword [esp + 0x2c]
fild dword [esp + 0x6c]
fstp dword [esp + 0x54]
fild dword [esp + 0x70]
fstp dword [esp + 0x3c]
fld dword [esp + 0x48]
fmul dword [esi + 0x48]
fsubr dword [esi + 0x3c]
fadd dword [eax + 0x150]
fstp dword [esp + 0x34]
mov edx, dword [esp + 0x34]
fld dword [esp + 0x4c]
fmul dword [esi + 0x50]
fsubr dword [esi + 0x38]
fadd dword [eax + 0x154]
fstp dword [esp + 0x38]
mov eax, dword [eax + 0x168]
mov ecx, dword [esp + 0x38]
push eax
push ecx
push edx
call fcn.0049ba90
mov eax, dword [esp + 0x78]
add esp, 0x28
test eax, eax
jl 0x41966d
mov eax, dword [esp + 0x54]
test eax, eax
jl 0x41966d
fld dword [esp + 0x38]
fadd dword [esp + 0x24]
fld st(0)
fchs
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 5
jp 0x419ad8
fld dword [esp + 0x18]
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 5
jp 0x419ada
fld dword [esp + 0x20]
fadd dword [esp + 0x10]
fld st(0)
fchs
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 5
jp 0x419ad8
fld dword [esp + 0x1c]
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 5
jp 0x419ada
movzx eax, byte [esi + 0xc7]
mov ecx, dword [esi + 0xe4]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x6c]
test eax, eax
fild dword [esp + 0x38]
fmul dword [ecx + 0x50]
fmul dword [0x54fea0]
je 0x4196b1
mov edx, dword [edi + 0x178]
mov eax, dword [edi + 0x70]
fld dword [edx + 0xe4]
fmul dword [eax + 0x1d0]
fmul st(1)
fstp dword [esp + 0x10]
fstp st(0)
jmp 0x4196bb
fmul dword [edi + 0x1d0]
fstp dword [esp + 0x10]
call dword [sym.imp.opengl32.dll_glLoadIdentity]
fild dword [esp + 0x4c]
mov ebx, dword [sym.imp.opengl32.dll_glTranslatef]
push 0
sub esp, 8
fstp dword [esp + 4]
fild dword [esp + 0x54]
fstp dword [esp]
call ebx
mov ecx, dword [edi + 0x190]
fld dword [ecx + 0x168]
mov ebp, dword [sym.imp.opengl32.dll_glRotatef]
push 0x3f800000
fchs
push 0
push 0
push ecx
fstp dword [esp]
call ebp
mov eax, dword [edi + 0x190]
fld dword [eax + 0x154]
push 0
fadd dword [esi + 0x38]
sub esp, 8
fstp dword [esp + 4]
fld dword [eax + 0x150]
fadd dword [esi + 0x3c]
fstp dword [esp]
call ebx
mov edx, dword [esi + 0x40]
push 0x3f800000
push 0
push 0
push edx
call ebp
fld dword [esp + 0x58]
fmul dword [esi + 0x48]
fstp dword [esp + 0x38]
mov eax, dword [esp + 0x38]
fld dword [esp + 0x58]
fmul dword [esi + 0x50]
push eax
push ecx
fstp dword [esp]
push eax
call dword [sym.imp.opengl32.dll_glScalef]
mov ecx, dword [esi + 0xe4]
mov eax, dword [edi + 0x50]
mov edx, dword [ecx + 0x9c]
mov ecx, dword [edi + 4]
push 0
push eax
push edx
call fcn.0049c110
mov edx, dword [esi + 0xf8]
mov ebx, eax
mov eax, dword [esi + 0xe4]
mov ecx, dword [eax + 0x9c]
cmp edx, dword [ecx + 0xc]
jl 0x419795
mov dword [esi + 0xf8], 0
mov edx, dword [esi + 0xf8]
fld dword [0x54fb34]
mov ecx, dword [eax + 0xc0]
add ebx, edx
test ecx, ecx
mov dword [esp + 0x34], 0x3f800000
je 0x4197bd
mov dword [esp + 0x34], 0xbf800000
mov ecx, dword [eax + 0xc4]
test ecx, ecx
je 0x4197cf
fstp st(0)
fld dword [0x550e20]
mov ecx, dword [eax + 0x9c]
mov edx, dword [ecx + 0xc]
add ecx, 4
test edx, edx
jle 0x419b0e
mov ecx, dword [ecx + 4]
fld dword [0x54fb34]
mov ebp, dword [ecx]
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 8]
cmp ecx, edx
mov dword [esp + 0x14], 0x3f800000
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
jle 0x419816
fild dword [esp + 0x20]
fidiv dword [esp + 0x24]
fstp dword [esp + 0x14]
jmp 0x419822
jge 0x419822
fstp st(0)
fild dword [esp + 0x24]
fidiv dword [esp + 0x20]
fmul dword [esp + 0x34]
mov ecx, dword [eax + 0x108]
test ecx, ecx
fstp dword [esp + 0x38]
fld dword [esp + 0x14]
fmul st(1)
fstp dword [esp + 0x14]
fstp st(0)
je 0x41997e
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x28c]
test eax, eax
jne 0x419943
movzx eax, byte [esi + 0xc4]
fld dword [0x54fb34]
fsub dword [edi + 0x1e4]
movzx ecx, byte [esi + 0xc5]
mov dword [esp + 0x24], eax
movzx edx, byte [esi + 0xc6]
fild dword [esp + 0x24]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x40], edx
fmul dword [0x54fea0]
fmul st(1)
fild dword [edi + 0x204]
fmul dword [0x54fea0]
fmul dword [edi + 0x1e4]
faddp st(1)
fmul dword [esp + 0x10]
fstp dword [esp + 0x20]
fild dword [esp + 0x24]
fmul dword [0x54fea0]
fmul st(1)
fild dword [edi + 0x208]
fmul dword [0x54fea0]
fmul dword [edi + 0x1e4]
faddp st(1)
fmul dword [esp + 0x10]
fstp dword [esp + 0x24]
fild dword [esp + 0x40]
fmul dword [0x54fea0]
fmulp st(1)
fild dword [edi + 0x20c]
fmul dword [0x54fea0]
fmul dword [edi + 0x1e4]
faddp st(1)
fmul dword [esp + 0x10]
fld dword [esp + 0x20]
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 0x41
jne 0x41990b
fld dword [esp + 0x20]
jmp 0x41990f
fld dword [esp + 0x24]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x41993d
fstp st(0)
fld dword [esp + 0x20]
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 0x41
jne 0x419933
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], eax
jmp 0x41994b
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ecx
jmp 0x41994b
fstp dword [esp + 0x28]
jmp 0x41994b
mov dword [esp + 0x28], 0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
push edx
push eax
push eax
push eax
call dword [sym.imp.opengl32.dll_glColor4f]
push 1
push 1
call dword [sym.imp.opengl32.dll_glBlendFunc]
mov ecx, dword [edi + 4]
push ebx
add ecx, 0x658
call fcn.00417770
mov eax, dword [eax]
push eax
jmp 0x419a01
mov ecx, dword [esp + 0x10]
push ecx
push 0x3f800000
push 0x3f800000
push 0x3f800000
call dword [sym.imp.opengl32.dll_glColor4f]
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x28c]
test eax, eax
jne 0x4199a9
push 1
jmp 0x4199ae
push 0x303
push 0x302
call dword [sym.imp.opengl32.dll_glBlendFunc]
mov eax, dword [esi + 0xe4]
mov eax, dword [eax + 0x9c]
mov ecx, dword [eax + 0xc]
add eax, 4
test ecx, ecx
jle 0x419b10
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
test eax, eax
mov ecx, dword [edi + 4]
push ebx
je 0x4199f3
add ecx, 0x66c
call fcn.00417770
mov eax, dword [eax]
push eax
jmp 0x419a01
add ecx, 0x644
call fcn.00417770
mov ecx, dword [eax]
push ecx
push 0xde1
call dword [sym.imp.opengl32.dll_glBindTexture]
mov esi, dword [esi + 0xe4]
fld dword [esi + 0x120]
push 7
fmul qword [0x550e18]
fidiv dword [ebp + 4]
fstp dword [esp + 0x24]
fld dword [esi + 0x124]
fmul qword [0x550e18]
fidiv dword [ebp + 8]
fstp dword [esp + 0x28]
call dword [sym.imp.opengl32.dll_glBegin]
mov ebp, dword [sym.imp.opengl32.dll_glTexCoord2f]
push 0
push 0
call ebp
fld dword [esp + 0x24]
fsub dword [esp + 0x14]
fstp dword [esp + 0x40]
fld dword [esp + 0x20]
mov esi, dword [esp + 0x40]
fsub dword [esp + 0x38]
push esi
fstp dword [esp + 0x14]
mov ebx, dword [esp + 0x14]
push ebx
call dword [sym.imp.opengl32.dll_glVertex2f]
push 0x3f800000
push 0
call ebp
fld dword [esp + 0x24]
fadd dword [esp + 0x14]
fstp dword [esp + 0x40]
mov ebp, dword [esp + 0x40]
push ebp
push ebx
mov ebx, dword [sym.imp.opengl32.dll_glVertex2f]
call ebx
push 0x3f800000
push 0x3f800000
call dword [sym.imp.opengl32.dll_glTexCoord2f]
fld dword [esp + 0x20]
fadd dword [esp + 0x38]
push ebp
fstp dword [esp + 0x44]
mov ebp, dword [esp + 0x44]
push ebp
call ebx
push 0
push 0x3f800000
call dword [sym.imp.opengl32.dll_glTexCoord2f]
push esi
push ebp
call ebx
call dword [sym.imp.opengl32.dll_glEnd]
mov ebx, dword [esp + 0x3c]
jmp 0x419ada
fstp st(0)
mov eax, dword [edi + 0x40]
inc ebx
cmp ebx, eax
mov dword [esp + 0x3c], ebx
jl 0x4194e2
call dword [sym.imp.opengl32.dll_glFlush]
mov esi, dword [sym.imp.opengl32.dll_glDisable]
push 0xbe2
call esi
push 0xde1
call esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x34
ret 0x14
fstp st(0)
call fcn.004fd76e
int3