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

Disassembly:
jmp 0x41ad00
sub esp, 0x40
push esi
mov esi, ecx
fld dword [esi + 0x24]
fcomp dword [0x4b24c8]
fnstsw ax
test ah, 0x44
jnp 0x41ae3b
mov eax, dword [esi + 0x244]
test eax, eax
je 0x41ae3b
mov eax, dword [esi + 0x68]
test eax, eax
push ebx
push ebp
push edi
je 0x41ad7f
mov eax, dword [esi + 0x19c]
xor edi, edi
test eax, eax
jle 0x41ae38
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x5c]
lea ebx, [ebx]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov edx, dword [esi + 0x198]
push ebx
push ebp
push eax
push ecx
mov ecx, dword [edx + edi*4]
call fcn.00401c35
mov eax, dword [esi + 0x19c]
inc edi
cmp edi, eax
jl 0x41ad50
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x40
ret 0x10
mov edi, dword [sym.imp.opengl32.dll_glEnable]
push 0xbe2
call edi
push 0xde1
call edi
mov edi, dword [sym.imp.opengl32.dll_glTexParameteri]
push 0x2900
push 0x2802
push 0xde1
call edi
push 0x2900
push 0x2803
push 0xde1
call edi
call dword [sym.imp.opengl32.dll_glLoadIdentity]
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x54]
dec ecx
test eax, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x38], 0xffffffff
je 0x41adec
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x38], 1
mov ebp, dword [sym.imp.opengl32.dll_glTexCoord2f]
mov edx, ecx
mov eax, dword [esi + 0x54]
test eax, eax
mov dword [esp + 0x18], edx
je 0x41ae42
cmp edx, dword [esi + 0x40]
jl 0x41ae46
mov ebx, ecx
mov eax, dword [esi + 0x54]
test eax, eax
mov dword [esp + 0x18], ebx
je 0x41b161
cmp ebx, dword [esi + 0x40]
jl 0x41b169
call dword [sym.imp.opengl32.dll_glFlush]
mov esi, dword [sym.imp.opengl32.dll_glDisable]
push 0xbe2
call esi
push 0xde1
call esi
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x40
ret 0x10
test edx, edx
jl 0x41ae04
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + edx*4]
fld dword [edi + 0x34]
fcomp dword [0x4b24c8]
fnstsw ax
test ah, 0x41
jne 0x41b158
mov eax, dword [edi + 0xe4]
mov ebx, dword [eax + 0x114]
test ebx, ebx
je 0x41b158
mov ebx, dword [eax + 0x11c]
test ebx, ebx
je 0x41b158
movzx ecx, byte [edi + 0xc7]
mov dword [esp + 0x4c], ecx
fild dword [esp + 0x4c]
fmul dword [eax + 0x50]
mov eax, dword [esi + 0x6c]
test eax, eax
fmul dword [0x4b2b90]
je 0x41aec0
mov edx, dword [esi + 0x178]
mov eax, dword [esi + 0x70]
fld dword [edx + 0xe4]
fmul dword [eax + 0x1d0]
fmul st(1)
fstp dword [esp + 0x28]
fstp st(0)
jmp 0x41aeca
fmul dword [esi + 0x1d0]
fstp dword [esp + 0x28]
call dword [sym.imp.opengl32.dll_glLoadIdentity]
fild dword [esp + 0x58]
mov eax, dword [esi + 0x50]
push 0
sub esp, 8
test eax, eax
jne 0x41aef9
fadd dword [edi + 0x38]
fstp dword [esp + 4]
fild dword [esp + 0x60]
fadd dword [edi + 0x3c]
fstp dword [esp]
call dword [sym.imp.opengl32.dll_glTranslatef]
jmp 0x41af53
mov ebx, dword [sym.imp.opengl32.dll_glTranslatef]
fstp dword [esp + 4]
fild dword [esp + 0x60]
fstp dword [esp]
call ebx
mov ecx, dword [esi + 0x190]
fld dword [ecx + 0x168]
push 0x3f800000
push 0
fchs
push 0
push ecx
fstp dword [esp]
call dword [sym.imp.opengl32.dll_glRotatef]
mov eax, dword [esi + 0x190]
fld dword [eax + 0x154]
push 0
fadd dword [edi + 0x38]
sub esp, 8
fstp dword [esp + 4]
fld dword [eax + 0x150]
fadd dword [edi + 0x3c]
fstp dword [esp]
call ebx
mov edx, dword [edi + 0x40]
push 0x3f800000
push 0
push 0
push edx
call dword [sym.imp.opengl32.dll_glRotatef]
mov eax, dword [edi + 0x48]
mov ecx, dword [edi + 0x50]
push eax
push ecx
mov edx, eax
push edx
call dword [sym.imp.opengl32.dll_glScalef]
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x50]
mov edx, dword [edi + 0xe4]
push eax
mov eax, dword [edx + 0x9c]
push ecx
mov ecx, dword [esi + 4]
push eax
call fcn.00402103
mov ecx, dword [edi + 0xe4]
mov edx, dword [ecx + 0x9c]
mov ebx, dword [edi + 0xf8]
cmp ebx, dword [edx + 0xc]
jl 0x41afb5
mov dword [edi + 0xf8], 0
mov edx, dword [edi + 0xf8]
fld dword [0x4b24c4]
add eax, edx
mov dword [esp + 0x4c], eax
mov eax, dword [ecx + 0xc0]
test eax, eax
mov dword [esp + 0x2c], 0x3f800000
je 0x41afe1
mov dword [esp + 0x2c], 0xbf800000
mov eax, dword [ecx + 0xc4]
test eax, eax
je 0x41aff3
fstp st(0)
fld dword [0x4b2b8c]
mov eax, dword [ecx + 0x9c]
fld dword [0x4b24c4]
mov ecx, dword [eax + 8]
mov ebx, dword [ecx]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
cmp eax, ecx
mov dword [esp + 0x10], 0x3f800000
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
jle 0x41b02c
fild dword [esp + 0x30]
fidiv dword [esp + 0x34]
fstp dword [esp + 0x10]
jmp 0x41b038
jge 0x41b038
fstp st(0)
fild dword [esp + 0x34]
fidiv dword [esp + 0x30]
fmul dword [esp + 0x2c]
push 0x303
push 0x302
fstp dword [esp + 0x2c]
fld dword [esp + 0x18]
fmul st(1)
fstp dword [esp + 0x18]
fstp st(0)
call dword [sym.imp.opengl32.dll_glBlendFunc]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x41b07f
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x310]
mov ecx, dword [esp + 0x4c]
mov edx, dword [eax + ecx*4]
push edx
push 0xde1
call dword [sym.imp.opengl32.dll_glBindTexture]
mov eax, dword [esp + 0x28]
push eax
push 0
push 0
push 0
call dword [sym.imp.opengl32.dll_glColor4f]
mov edi, dword [edi + 0xe4]
fld dword [edi + 0x120]
push 7
fmul qword [0x4b2b80]
fidiv dword [ebx + 4]
fstp dword [esp + 0x2c]
fld dword [edi + 0x124]
fmul qword [0x4b2b80]
fidiv dword [ebx + 8]
fstp dword [esp + 0x38]
call dword [sym.imp.opengl32.dll_glBegin]
push 0
push 0
call ebp
fld dword [esp + 0x34]
fsub dword [esp + 0x10]
mov edi, dword [sym.imp.opengl32.dll_glVertex2f]
fstp dword [esp + 0x4c]
fld dword [esp + 0x28]
mov ebx, dword [esp + 0x4c]
fsub dword [esp + 0x24]
push ebx
fstp dword [esp + 0x34]
mov ecx, dword [esp + 0x34]
push ecx
call edi
push 0x3f800000
push 0
call ebp
fld dword [esp + 0x34]
fadd dword [esp + 0x10]
mov eax, dword [esp + 0x30]
fstp dword [esp + 0x34]
mov edx, dword [esp + 0x34]
push edx
push eax
call edi
push 0x3f800000
push 0x3f800000
call ebp
fld dword [esp + 0x28]
fadd dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
push ecx
fstp dword [esp + 0x34]
mov edx, dword [esp + 0x34]
push edx
call edi
push 0
push 0x3f800000
call ebp
mov eax, dword [esp + 0x30]
push ebx
push eax
call edi
call dword [sym.imp.opengl32.dll_glEnd]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add edx, dword [esp + 0x38]
jmp 0x41adf4
test ebx, ebx
jl 0x41ae1e
mov ecx, dword [esi + 0x3c]
mov edi, dword [ecx + ebx*4]
fld dword [edi + 0x34]
fcomp dword [0x4b24c8]
fnstsw ax
test ah, 0x41
jne 0x41b6db
mov eax, dword [edi + 0xe4]
mov ecx, dword [eax + 0x11c]
test ecx, ecx
je 0x41b6db
fld dword [eax + 0x124]
mov edx, dword [eax + 0x9c]
fld dword [eax + 0x120]
mov ecx, dword [edx + 8]
mov ecx, dword [ecx]
fadd st(0), st(0)
lea edx, [esp + 0x28]
push edx
fidiv dword [ecx + 4]
lea eax, [esp + 0x28]
push eax
push ecx
fstp dword [esp + 0x30]
mov edx, dword [esp + 0x30]
fadd st(0), st(0)
fidiv dword [ecx + 8]
fstp dword [esp + 0x34]
fld dword [edi + 0x40]
mov ecx, dword [esp + 0x34]
fchs
fstp dword [esp]
push ecx
push edx
call fcn.00401415
fld dword [esi + 0x1ac]
fmul dword [edi + 0x48]
mov eax, dword [esi + 0x190]
lea ecx, [esp + 0x34]
push ecx
fmul dword [0x4b2b70]
lea edx, [esp + 0x34]
push edx
fstp dword [esp + 0x64]
fld dword [esi + 0x1b0]
fmul dword [edi + 0x50]
fmul dword [0x4b2b70]
fstp dword [esp + 0x58]
fild dword [esp + 0x78]
fstp dword [esp + 0x68]
fild dword [esp + 0x7c]
fstp dword [esp + 0x5c]
fld dword [esp + 0x40]
fmul dword [edi + 0x48]
fsubr dword [edi + 0x3c]
fadd dword [eax + 0x150]
fstp dword [esp + 0x38]
mov edx, dword [esp + 0x38]
fld dword [esp + 0x44]
fmul dword [edi + 0x50]
fsubr dword [edi + 0x38]
fadd dword [eax + 0x154]
fstp dword [esp + 0x3c]
mov eax, dword [eax + 0x168]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
push edx
call fcn.00401415
mov eax, dword [esp + 0x84]
add esp, 0x28
test eax, eax
jl 0x41b2d8
mov eax, dword [esp + 0x60]
test eax, eax
jl 0x41b2d8
fld dword [esp + 0x4c]
fadd dword [esp + 0x48]
fld st(0)
fchs
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 5
jp 0x41b6d9
fld dword [esp + 0x1c]
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 5
jp 0x41b6db
fld dword [esp + 0x40]
fadd dword [esp + 0x3c]
fld st(0)
fchs
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 5
jp 0x41b6d9
fld dword [esp + 0x20]
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 5
jp 0x41b6db
movzx eax, byte [edi + 0xc7]
mov ecx, dword [edi + 0xe4]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x6c]
test eax, eax
fild dword [esp + 0x4c]
fmul dword [ecx + 0x50]
fmul dword [0x4b2b90]
je 0x41b31c
mov edx, dword [esi + 0x178]
mov eax, dword [esi + 0x70]
fld dword [edx + 0xe4]
fmul dword [eax + 0x1d0]
fmul st(1)
fstp dword [esp + 0x10]
fstp st(0)
jmp 0x41b326
fmul dword [esi + 0x1d0]
fstp dword [esp + 0x10]
fld dword [0x4b24c4]
movzx ecx, byte [edi + 0xc4]
fsub dword [esi + 0x1e4]
movzx edx, byte [edi + 0xc5]
fild dword [esi + 0x204]
mov dword [esp + 0x4c], ecx
fmul dword [0x4b2b90]
movzx eax, byte [edi + 0xc6]
fmul dword [esi + 0x1e4]
fild dword [esp + 0x4c]
mov dword [esp + 0x4c], edx
fmul dword [0x4b2b90]
fmul st(2)
faddp st(1)
fstp dword [esp + 0x34]
fild dword [esi + 0x208]
fmul dword [0x4b2b90]
fmul dword [esi + 0x1e4]
fild dword [esp + 0x4c]
mov dword [esp + 0x4c], eax
fmul dword [0x4b2b90]
fmul st(2)
faddp st(1)
fstp dword [esp + 0x30]
fild dword [esi + 0x20c]
fmul dword [0x4b2b90]
fmul dword [esi + 0x1e4]
fild dword [esp + 0x4c]
fmul dword [0x4b2b90]
fmul st(2)
faddp st(1)
fstp dword [esp + 0x2c]
fstp st(0)
call dword [sym.imp.opengl32.dll_glLoadIdentity]
mov eax, dword [esi + 0x50]
fild dword [esp + 0x58]
push 0
sub esp, 8
test eax, eax
jne 0x41b3f0
fadd dword [edi + 0x38]
fstp dword [esp + 4]
fild dword [esp + 0x60]
fadd dword [edi + 0x3c]
fstp dword [esp]
call dword [sym.imp.opengl32.dll_glTranslatef]
jmp 0x41b44a
mov ebx, dword [sym.imp.opengl32.dll_glTranslatef]
fstp dword [esp + 4]
fild dword [esp + 0x60]
fstp dword [esp]
call ebx
mov ecx, dword [esi + 0x190]
fld dword [ecx + 0x168]
push 0x3f800000
push 0
fchs
push 0
push ecx
fstp dword [esp]
call dword [sym.imp.opengl32.dll_glRotatef]
mov eax, dword [esi + 0x190]
fld dword [eax + 0x154]
push 0
fadd dword [edi + 0x38]
sub esp, 8
fstp dword [esp + 4]
fld dword [eax + 0x150]
fadd dword [edi + 0x3c]
fstp dword [esp]
call ebx
mov edx, dword [edi + 0x40]
push 0x3f800000
push 0
push 0
push edx
call dword [sym.imp.opengl32.dll_glRotatef]
mov eax, dword [edi + 0x48]
mov ecx, dword [edi + 0x50]
push eax
push ecx
mov edx, eax
push edx
call dword [sym.imp.opengl32.dll_glScalef]
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x50]
mov edx, dword [edi + 0xe4]
push eax
mov eax, dword [edx + 0x9c]
push ecx
mov ecx, dword [esi + 4]
push eax
call fcn.00402103
mov ecx, dword [edi + 0xe4]
mov edx, dword [ecx + 0x9c]
mov ebx, dword [edi + 0xf8]
cmp ebx, dword [edx + 0xc]
jl 0x41b4ac
mov dword [edi + 0xf8], 0
mov edx, dword [edi + 0xf8]
fld dword [0x4b24c4]
add eax, edx
mov dword [esp + 0x48], eax
mov eax, dword [ecx + 0xc0]
test eax, eax
mov dword [esp + 0x44], 0x3f800000
je 0x41b4d8
mov dword [esp + 0x44], 0xbf800000
mov eax, dword [ecx + 0xc4]
test eax, eax
je 0x41b4ea
fstp st(0)
fld dword [0x4b2b8c]
mov eax, dword [ecx + 0x9c]
fld dword [0x4b24c4]
mov edx, dword [eax + 8]
mov ebx, dword [edx]
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 8]
cmp eax, edx
mov dword [esp + 0x14], 0x3f800000
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
jle 0x41b523
fild dword [esp + 0x40]
fidiv dword [esp + 0x3c]
fstp dword [esp + 0x14]
jmp 0x41b52f
jge 0x41b52f
fstp st(0)
fild dword [esp + 0x3c]
fidiv dword [esp + 0x40]
fmul dword [esp + 0x44]
mov eax, dword [esi + 4]
mov edx, dword [eax + 0x188]
test edx, edx
fstp dword [esp + 0x4c]
fld dword [esp + 0x14]
fmul st(1)
fstp dword [esp + 0x14]
fstp st(0)
je 0x41b57e
mov eax, dword [ecx + 0x108]
test eax, eax
je 0x41b57e
fld dword [esp + 0x34]
fmul dword [esp + 0x10]
fstp dword [esp + 0x34]
fld dword [esp + 0x30]
fmul dword [esp + 0x10]
fstp dword [esp + 0x30]
fld dword [esp + 0x2c]
fmul dword [esp + 0x10]
fstp dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x38]
push edx
push eax
push ecx
call dword [sym.imp.opengl32.dll_glColor4f]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x41b60c
mov edx, dword [edi + 0xe4]
mov eax, dword [edx + 0x108]
test eax, eax
je 0x41b5e0
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x188]
test ecx, ecx
push 1
je 0x41b5c2
push 1
jmp 0x41b5c7
push 0x302
call dword [sym.imp.opengl32.dll_glBlendFunc]
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x324]
mov eax, dword [esp + 0x48]
mov ecx, dword [edx + eax*4]
push ecx
jmp 0x41b601
push 0x303
push 0x302
call dword [sym.imp.opengl32.dll_glBlendFunc]
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x310]
mov ecx, dword [esp + 0x48]
mov edx, dword [eax + ecx*4]
push edx
push 0xde1
call dword [sym.imp.opengl32.dll_glBindTexture]
mov edi, dword [edi + 0xe4]
fld dword [edi + 0x120]
push 7
fmul qword [0x4b2b80]
fidiv dword [ebx + 4]
fstp dword [esp + 0x40]
fld dword [edi + 0x124]
fmul qword [0x4b2b80]
fidiv dword [ebx + 8]
fstp dword [esp + 0x4c]
call dword [sym.imp.opengl32.dll_glBegin]
push 0
push 0
call ebp
fld dword [esp + 0x48]
fsub dword [esp + 0x14]
mov edi, dword [sym.imp.opengl32.dll_glVertex2f]
fstp dword [esp + 0x34]
fld dword [esp + 0x3c]
mov ebx, dword [esp + 0x34]
fsub dword [esp + 0x4c]
push ebx
fstp dword [esp + 0x44]
mov eax, dword [esp + 0x44]
push eax
call edi
push 0x3f800000
push 0
call ebp
fld dword [esp + 0x48]
fadd dword [esp + 0x14]
mov edx, dword [esp + 0x40]
fstp dword [esp + 0x48]
mov ecx, dword [esp + 0x48]
push ecx
push edx
call edi
push 0x3f800000
push 0x3f800000
call ebp
fld dword [esp + 0x3c]
fadd dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push eax
fstp dword [esp + 0x50]
mov ecx, dword [esp + 0x50]
push ecx
call edi
push 0
push 0x3f800000
call ebp
mov edx, dword [esp + 0x4c]
push ebx
push edx
call edi
call dword [sym.imp.opengl32.dll_glEnd]
mov ebx, dword [esp + 0x18]
add ebx, dword [esp + 0x38]
jmp 0x41ae06
fstp st(0)
add ebx, dword [esp + 0x38]
jmp 0x41ae06