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

Disassembly:
jmp 0x41cbd0
sub esp, 0x34
push edi
mov edi, ecx
fld dword [edi + 0x24]
fcomp dword [0x4b24c8]
fnstsw ax
test ah, 0x44
jnp 0x41d278
mov eax, dword [edi + 0x244]
test eax, eax
je 0x41d278
mov eax, dword [edi + 0x68]
test eax, eax
push ebx
push ebp
push esi
je 0x41cc54
mov eax, dword [edi + 0x19c]
xor esi, esi
test eax, eax
jle 0x41d275
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x54]
lea ebx, [ebx]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push ebx
push ebp
push eax
mov eax, dword [edi + 0x198]
push ecx
mov ecx, dword [eax + esi*4]
push edx
call fcn.00402018
mov eax, dword [edi + 0x19c]
inc esi
cmp esi, eax
jl 0x41cc20
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 0x41d25b
mov ecx, dword [edi + 0x3c]
mov esi, dword [ecx + ebx*4]
fld dword [esi + 0x34]
fcomp dword [0x4b24c8]
fnstsw ax
test ah, 0x41
jne 0x41d24b
mov eax, dword [esi + 0xe4]
mov ecx, dword [eax + 0x11c]
test ecx, ecx
je 0x41d24b
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 + 0x30]
push edx
fidiv dword [ecx + 4]
lea eax, [esp + 0x30]
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.00401415
fld dword [edi + 0x1ac]
fmul dword [esi + 0x48]
mov eax, dword [edi + 0x190]
lea ecx, [esp + 0x30]
push ecx
fmul dword [0x4b2b70]
lea edx, [esp + 0x30]
push edx
fstp dword [esp + 0x40]
fld dword [edi + 0x1b0]
fmul dword [esi + 0x50]
fmul dword [0x4b2b70]
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.00401415
mov eax, dword [esp + 0x78]
add esp, 0x28
test eax, eax
jl 0x41ce13
mov eax, dword [esp + 0x54]
test eax, eax
jl 0x41ce13
fld dword [esp + 0x38]
fadd dword [esp + 0x24]
fld st(0)
fchs
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 5
jp 0x41d249
fld dword [esp + 0x18]
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 5
jp 0x41d24b
fld dword [esp + 0x20]
fadd dword [esp + 0x10]
fld st(0)
fchs
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 5
jp 0x41d249
fld dword [esp + 0x1c]
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 5
jp 0x41d24b
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 [0x4b2b90]
je 0x41ce57
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 0x41ce61
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.00402103
mov edx, dword [esi + 0xf8]
mov ebp, eax
mov eax, dword [esi + 0xe4]
mov ecx, dword [eax + 0x9c]
cmp edx, dword [ecx + 0xc]
jl 0x41cf3b
mov dword [esi + 0xf8], 0
mov edx, dword [esi + 0xf8]
fld dword [0x4b24c4]
mov ecx, dword [eax + 0xc0]
add ebp, edx
test ecx, ecx
mov dword [esp + 0x34], 0x3f800000
je 0x41cf63
mov dword [esp + 0x34], 0xbf800000
mov ecx, dword [eax + 0xc4]
test ecx, ecx
je 0x41cf75
fstp st(0)
fld dword [0x4b2b8c]
mov ecx, dword [eax + 0x9c]
fld dword [0x4b24c4]
mov edx, dword [ecx + 8]
mov ebx, dword [edx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
cmp ecx, edx
mov dword [esp + 0x14], 0x3f800000
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
jle 0x41cfae
fild dword [esp + 0x20]
fidiv dword [esp + 0x24]
fstp dword [esp + 0x14]
jmp 0x41cfba
jge 0x41cfba
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 0x41d10a
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x17c]
test ecx, ecx
jne 0x41d0db
movzx ecx, byte [esi + 0xc4]
fld dword [0x4b24c4]
fsub dword [edi + 0x1e4]
movzx edx, byte [esi + 0xc5]
mov dword [esp + 0x24], ecx
movzx eax, byte [esi + 0xc6]
fild dword [esp + 0x24]
mov dword [esp + 0x24], edx
mov dword [esp + 0x40], eax
fmul dword [0x4b2b90]
fmul st(1)
fild dword [edi + 0x204]
fmul dword [0x4b2b90]
fmul dword [edi + 0x1e4]
faddp st(1)
fmul dword [esp + 0x10]
fstp dword [esp + 0x20]
fild dword [esp + 0x24]
fmul dword [0x4b2b90]
fmul st(1)
fild dword [edi + 0x208]
fmul dword [0x4b2b90]
fmul dword [edi + 0x1e4]
faddp st(1)
fmul dword [esp + 0x10]
fstp dword [esp + 0x24]
fild dword [esp + 0x40]
fmul dword [0x4b2b90]
fmulp st(1)
fild dword [edi + 0x20c]
fmul dword [0x4b2b90]
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 0x41d0a3
fld dword [esp + 0x20]
jmp 0x41d0a7
fld dword [esp + 0x24]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x41d0d5
fstp st(0)
fld dword [esp + 0x20]
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 0x41
jne 0x41d0cb
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
jmp 0x41d0e3
mov edx, dword [esp + 0x24]
mov dword [esp + 0x28], edx
jmp 0x41d0e3
fstp dword [esp + 0x28]
jmp 0x41d0e3
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x2c]
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]
mov edx, dword [ecx + 0x324]
jmp 0x41d16e
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 + 0x17c]
test eax, eax
jne 0x41d135
push 1
jmp 0x41d13a
push 0x303
push 0x302
call dword [sym.imp.opengl32.dll_glBlendFunc]
mov eax, dword [esi + 0xe4]
mov ecx, dword [eax + 0x9c]
mov edx, dword [ecx + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
mov ecx, dword [edi + 4]
je 0x41d168
mov edx, dword [ecx + 0x338]
jmp 0x41d16e
mov edx, dword [ecx + 0x310]
mov eax, dword [edx + ebp*4]
push eax
push 0xde1
call dword [sym.imp.opengl32.dll_glBindTexture]
mov esi, dword [esi + 0xe4]
fld dword [esi + 0x120]
push 7
fmul qword [0x4b2b80]
fidiv dword [ebx + 4]
fstp dword [esp + 0x24]
fld dword [esi + 0x124]
fmul qword [0x4b2b80]
fidiv dword [ebx + 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 0x41d24b
fstp st(0)
mov eax, dword [edi + 0x40]
inc ebx
cmp ebx, eax
mov dword [esp + 0x3c], ebx
jl 0x41cca7
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